Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Constrain ciscoconfparse on Python 3.7 #2771

Merged
merged 5 commits into from Nov 29, 2023

Conversation

lunkwill42
Copy link
Member

@lunkwill42 lunkwill42 commented Nov 29, 2023

This adds a constraints.txt file where constraints on third party libraries can be specified.

The initial version of this file constrains ciscoconfparse specifically on Python versions less than 3.8 to be a version below the failing 1.8 version.

Documentation and build scripts are updated to include the new constraints file.

An existing "constraint" existed in the test environment requirements, because early ciscoconfparse releases in the 1.7 series did not declare dependencies (these versions were later yanked from PyPI). This constraint is likely why our test suite never discovered this problem on Python 3.7.

Closes #2770

ciscoconfparse 1.8 does not work on Python 3.7.  This
adds a new constraints.txt file to ensure ciscoconfparse is constrained
to < 1.8 under Python 3.7.
Several versions of ciscoconfparse 1.7 were yanked from PyPI due to
missing dependencies.  These have since been fixed.

However, this constraint ensured that our test suite did not catch
issues with ciscoconfparse 1.8 under Python 3.7.  Removing the now
unnecessary constraint.
@lunkwill42 lunkwill42 self-assigned this Nov 29, 2023
@lunkwill42 lunkwill42 requested a review from hmpf November 29, 2023 12:09
@lunkwill42 lunkwill42 changed the base branch from master to 5.8.x November 29, 2023 12:09
Copy link

sonarcloud bot commented Nov 29, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot E 5 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

Copy link

codecov bot commented Nov 29, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (d96ff4d) 56.20% compared to head (a016d52) 56.20%.

Additional details and impacted files
@@            Coverage Diff             @@
##            5.8.x    #2771      +/-   ##
==========================================
- Coverage   56.20%   56.20%   -0.01%     
==========================================
  Files         567      567              
  Lines       41277    41277              
==========================================
- Hits        23201    23200       -1     
- Misses      18076    18077       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

Test results

     12 files       12 suites   11m 53s ⏱️
3 296 tests 3 296 ✔️ 0 💤 0
9 363 runs  9 363 ✔️ 0 💤 0

Results for commit a016d52.

@lunkwill42
Copy link
Member Author

Security Hotspot E 5 Security Hotspots

No idea what this is all about, none of this code was touched or involved in this PR...

@lunkwill42 lunkwill42 merged commit 3530375 into Uninett:5.8.x Nov 29, 2023
11 of 13 checks passed
@lunkwill42 lunkwill42 deleted the bugfix/constrain-ciscoconfparse branch November 29, 2023 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] NAV 5.8.0 will not run under Python 3.7 under some systems, due to incompatible ciscoconfparse version
2 participants