Skip to content

Bump pysmi version to 1.6.2#22648

Merged
Pierre-L42 merged 20 commits into
masterfrom
pierre.lin/bump-pysmi
Feb 25, 2026
Merged

Bump pysmi version to 1.6.2#22648
Pierre-L42 merged 20 commits into
masterfrom
pierre.lin/bump-pysmi

Conversation

@Pierre-L42

@Pierre-L42 Pierre-L42 commented Feb 16, 2026

Copy link
Copy Markdown
Member

What does this PR do?

This PR bumps pysmi library to 1.6.2 and updates the code to match this version.

Motivation

https://datadoghq.atlassian.net/jira/software/c/projects/AGENT/boards/469?issueType=30619%2C30620%2C12458&selectedIssue=AGENT-15590

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • Add the qa/skip-qa label if the PR doesn't need to be tested during QA.
  • If you need to backport this PR to another branch, you can add the backport/<branch-name> label to the PR and it will automatically open a backport PR once this one is merged

Copy link
Copy Markdown
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@datadog-datadog-prod-us1

This comment has been minimized.

@codecov

codecov Bot commented Feb 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.24%. Comparing base (aee78b5) to head (3462c89).
⚠️ Report is 24 commits behind head on master.

Additional details and impacted files
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

github-actions Bot commented Feb 18, 2026

Copy link
Copy Markdown
Contributor

⚠️ Recommendation: Add qa/skip-qa label

This PR does not modify any files shipped with the agent.

To help streamline the release process, please consider adding the qa/skip-qa label if these changes do not require QA testing.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 11a59b13ac

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

)

compiled_mibs = {k: v for k, v in mibs_status.items() if v == 'compiled'}
compiled_mibs = {k: v for k, v in mibs_status.items() if str(v) in ('compiled', 'untouched', 'borrowed')}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is suspicious 👀 why do we need this change?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reverted this change as it seems to work without it on the first 20 MIBs of ndm-traps-db, I'll run tomorrow on all the MIBs and let you know if there are any changes with the generated file

from pysmi.searcher import AnyFileSearcher
from pysmi.writer import FileWriter

# pysmi's HttpReader decodes HTTP response as UTF-8 only; MIBs with non-UTF-8 bytes

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this a new issue with the version bump or was it already present?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a new issue with the bump

TCheruy
TCheruy previously approved these changes Feb 24, 2026

@NouemanKHAL NouemanKHAL left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As the PR contains a signifant code change + the version bump, I think it needs to be reflected in the changelog.
Could you please add a changelog entry?

@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Major version bump
The changelog type changed or removed was used in this Pull Request, so the next release will bump major version. Please make sure this is a breaking change, or use the fixed or added type instead.

@temporal-github-worker-1 temporal-github-worker-1 Bot dismissed TCheruy’s stale review February 25, 2026 10:14

Review from TCheruy is dismissed. Related teams and files:

  • ndm-core
    • datadog_checks_dev/datadog_checks/dev/tooling/commands/meta/snmp/generate_traps_db.py
@Pierre-L42 Pierre-L42 added this pull request to the merge queue Feb 25, 2026
Merged via the queue into master with commit e280aa0 Feb 25, 2026
305 of 307 checks passed
@Pierre-L42 Pierre-L42 deleted the pierre.lin/bump-pysmi branch February 25, 2026 12:30
steveny91 pushed a commit that referenced this pull request Feb 26, 2026
* Bump pysmi version to 1.6.2 and update code

* Create custom HTTP reader class to handle non-UTF-8 characters in MIB files

* Add tests for the trans_oper logic

* ddev test --fmt

* Fix lints

* Fix issue with enum

* Remove borrowed or untouched MIBs

* Remove print

* Fixes

* Remove debug print

* Fix

* Remove useless

* Remove useless

* Replace - by _

* Add back custom HTTP reader

* ddev test --fmt datadog_checks_dev

* Add changelog

* Address reviews

* ddev test --fmt

* Fix test
coignetp pushed a commit that referenced this pull request Feb 27, 2026
* Bump pysmi version to 1.6.2 and update code

* Create custom HTTP reader class to handle non-UTF-8 characters in MIB files

* Add tests for the trans_oper logic

* ddev test --fmt

* Fix lints

* Fix issue with enum

* Remove borrowed or untouched MIBs

* Remove print

* Fixes

* Remove debug print

* Fix

* Remove useless

* Remove useless

* Replace - by _

* Add back custom HTTP reader

* ddev test --fmt datadog_checks_dev

* Add changelog

* Address reviews

* ddev test --fmt

* Fix test
lukepatrick pushed a commit to lukepatrick/integrations-core that referenced this pull request Mar 17, 2026
* Bump pysmi version to 1.6.2 and update code

* Create custom HTTP reader class to handle non-UTF-8 characters in MIB files

* Add tests for the trans_oper logic

* ddev test --fmt

* Fix lints

* Fix issue with enum

* Remove borrowed or untouched MIBs

* Remove print

* Fixes

* Remove debug print

* Fix

* Remove useless

* Remove useless

* Replace - by _

* Add back custom HTTP reader

* ddev test --fmt datadog_checks_dev

* Add changelog

* Address reviews

* ddev test --fmt

* Fix test

Signed-off-by: lukepatrick <lukephilips@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants