Bump pysmi version to 1.6.2#22648
Conversation
This comment has been minimized.
This comment has been minimized.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files🚀 New features to boost your workflow:
|
c46c3f1 to
27ac901
Compare
b899a05 to
11a59b1
Compare
|
This PR does not modify any files shipped with the agent. To help streamline the release process, please consider adding the |
There was a problem hiding this comment.
💡 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')} |
There was a problem hiding this comment.
This is suspicious 👀 why do we need this change?
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
is this a new issue with the version bump or was it already present?
There was a problem hiding this comment.
It's a new issue with the bump
NouemanKHAL
left a comment
There was a problem hiding this comment.
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?
|
|
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
* 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
* 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
* 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>

What does this PR do?
This PR bumps
pysmilibrary 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)
qa/skip-qalabel if the PR doesn't need to be tested during QA.backport/<branch-name>label to the PR and it will automatically open a backport PR once this one is merged