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

Switch many tests to use PythonRuleRunner. #18712

Merged
merged 1 commit into from
Apr 11, 2023

Conversation

benjyw
Copy link
Contributor

@benjyw benjyw commented Apr 11, 2023

This is a step towards getting rid of the IC-setting hack introduced in #18627.

This is a very mechanical change that replaced uses of RuleRunner with
PythonRuleRunner. There is also one change to a test timeout.

This is not exhaustive - there are other tests that will need similar treatment
before we can rid of the hack.

@benjyw benjyw added the category:internal CI, fixes for not-yet-released features, etc. label Apr 11, 2023
@benjyw benjyw requested review from Eric-Arellano and kaos April 11, 2023 01:08
This is a step towards getting rid of the
IC-setting hack introduced in pantsbuild#18627.
@benjyw benjyw force-pushed the update_ics_in_tests2 branch from 9359526 to d30b6a4 Compare April 11, 2023 01:10
Copy link
Member

@kaos kaos left a comment

Choose a reason for hiding this comment

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

How do you identify which tests needs this change?

@benjyw
Copy link
Contributor Author

benjyw commented Apr 11, 2023

By turning off the hack and seeing which tests fail.

@benjyw benjyw merged commit 2a13bc8 into pantsbuild:main Apr 11, 2023
@benjyw benjyw deleted the update_ics_in_tests2 branch April 11, 2023 15:11
huonw added a commit to huonw/pants that referenced this pull request Apr 30, 2023
huonw added a commit that referenced this pull request Apr 30, 2023
#18859)

This cherry-picks a bunch of test timeout increases from main to 2.16.x,
to reduce the number of spurious re-attempts required for other
cherry-picks.

Fully cherry-picked: #18847, #18857

Partially cherry-picked (just the timeout increases): #18627, #18712.

Motivation: when cherry-picking, #18832 required 8 re-attempts, #18839
required 5 and #18850 got to 13, almost all due to tests timing out.
Various other cherry-picks likely required many re-attempts too.

---------

Co-authored-by: Asher Foa <asher@toolchain.com>
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.

2 participants