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 flaky failure in export_integration_test.py (Cherry-pick of #21756) #21821

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

WorkerPants
Copy link
Member

src/python/pants/backend/python/goals/export_integration_test.py was failing for me consistently in a PR of mine and on main locally. Not sure why it passes elsewhere.

See this failure for example: https://github.com/pantsbuild/pants/actions/runs/12306576175/job/34349676205?pr=21745#step:10:478

The test is checking whether a venv activation script has a certain prompt with both a resolve name and the Python version. The test also checks whether the quote character starting that string begins with a double-quote character.

On my system for main and in the PR on CI, that quote character became a single quote instead so the test fails.

Use a regex and allow either quote character.

@WorkerPants WorkerPants added this to the 2.23.x milestone Jan 9, 2025
@WorkerPants WorkerPants added the category:internal CI, fixes for not-yet-released features, etc. label Jan 9, 2025
@huonw huonw merged commit 9766a14 into 2.23.x Jan 10, 2025
25 checks passed
@huonw huonw deleted the cherry-pick-21756-to-2.23.x branch January 10, 2025 05:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:internal CI, fixes for not-yet-released features, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants