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

fix failing test due to conda changes #60

Merged
merged 6 commits into from
Mar 16, 2024
Merged

fix failing test due to conda changes #60

merged 6 commits into from
Mar 16, 2024

Conversation

mcg1969
Copy link
Collaborator

@mcg1969 mcg1969 commented Mar 16, 2024

  • get_info_dict no longer takes an argument. We never needed to set it anyway, since we were passing its default value.
  • our method for using verbose logging to confirm the use of our user agent string was broken. this one took a bit more effort to fix; but in short, we now need to be able to parse a dictionary embedded in the log.
  • libmamba's treatment of the local:: channel seems to be different
  • added the most recent version of conda to the test matrix; pruned a couple of intermediate versions
  • I've separated the windows and unix uploads because I'm aware that once Renovate updates us to v4 for the artifact actions, we'll need to do that. (Or block said upgrade). v4 of the artifact actions don't support merging uploads together.

@mcg1969 mcg1969 changed the title fix failing test due to deprecated call fix failing test due to conda changes Mar 16, 2024
@mcg1969 mcg1969 force-pushed the testfix branch 10 times, most recently from 79b0415 to e98dcc0 Compare March 16, 2024 19:01
Copy link
Member

@jezdez jezdez left a comment

Choose a reason for hiding this comment

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

Sad to see these changes needed, but they were probably inevitable. I'll look into #62 next week if you agree that would be useful. For conda-libmamba-solver we follow that tactic and auto-create issues if the periodic tests fail.

@@ -56,29 +54,39 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
cversion: ['4.11.0', '4.14.0', '23.7.3', '23.5.2', '23.3.1', '23.1.0', '22.11.1']
cversion: ['4.11.0', '4.14.0', '22.11.1', '23.3.1', '23.7.3', '23.10.0', '24.1.2']
Copy link
Member

Choose a reason for hiding this comment

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

That reminds me that we should maybe consider running the tests with the canary builds we create for conda on merging into main (but don't fail), I opened #62

Comment on lines +98 to +101
# Unfortunately conda has evolved how it logs request headers
# So this regular expression attempts to match multiple forms
# > User-Agent: conda/...
# .... {'User-Agent': 'conda/...', ...}
Copy link
Member

Choose a reason for hiding this comment

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

Reminder to myself that this sounds like a plugin opportunity (been thinking about a general purpose logging plugin hook, to configure an own handler)

@jezdez jezdez merged commit cfb6aa1 into main Mar 16, 2024
25 checks passed
@jezdez jezdez deleted the testfix branch March 16, 2024 23:07
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.

2 participants