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

CI - deflake Isolated pytest Ubuntu #6593

Merged
merged 3 commits into from
May 10, 2024

Conversation

pavoljuhas
Copy link
Collaborator

Problem: test_isolated_packages may run clashing parallel builds
of a local cirq_core wheel.

Solution: Run pip-install with the --no-clean option so parallel
builds do not delete active files.

Also invoke isolated_packages_test.py with --enable-slow-tests in CI
to include non-slow tests if ever added to that file.

Problem: `test_isolated_packages` may run clashing parallel builds
of a local `cirq_core` wheel.

Solution: Run pip-install with the `--no-clean` option so parallel
builds do not delete active files.
Include standard tests as well if ever added to that file.
@pavoljuhas pavoljuhas requested review from vtomole, cduck and a team as code owners May 10, 2024 01:38
@pavoljuhas pavoljuhas requested a review from viathor May 10, 2024 01:38
@CirqBot CirqBot added the Size: XS <10 lines changed label May 10, 2024
@pavoljuhas pavoljuhas enabled auto-merge (squash) May 10, 2024 22:22
@pavoljuhas pavoljuhas merged commit 3160056 into quantumlib:main May 10, 2024
31 of 32 checks passed
@pavoljuhas pavoljuhas deleted the deflake-test_isolated_packages branch May 10, 2024 23:24
pavoljuhas added a commit to pavoljuhas/Cirq that referenced this pull request May 15, 2024
pavoljuhas added a commit to pavoljuhas/Cirq that referenced this pull request May 16, 2024
pavoljuhas added a commit that referenced this pull request May 16, 2024
Problem: `test_isolated_packages.py` is still flaky and can fail on
parallel builds of a local `cirq_core` wheel.

Solution: Use per-worker copy of the cirq-core sources so that parallel
builds do not have conflicting build files.

Follow-up to #6593
jselig-rigetti pushed a commit to jselig-rigetti/Cirq that referenced this pull request May 28, 2024
Problem: `test_isolated_packages` may run clashing parallel builds
of a local `cirq_core` wheel.

Solution: Run pip-install with the `--no-clean` option so parallel
builds do not delete active files.

Also invoke isolated_packages_test.py with `--enable-slow-tests` in CI
to include non-slow tests if ever added to that file.
jselig-rigetti pushed a commit to jselig-rigetti/Cirq that referenced this pull request May 28, 2024
Problem: `test_isolated_packages.py` is still flaky and can fail on
parallel builds of a local `cirq_core` wheel.

Solution: Use per-worker copy of the cirq-core sources so that parallel
builds do not have conflicting build files.

Follow-up to quantumlib#6593
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Size: XS <10 lines changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants