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: move cross compile tests to their own jobs #3887

Merged
merged 2 commits into from
Feb 26, 2024

Conversation

davidhewitt
Copy link
Member

The slowest part of the merge queue is caused by the cross-compile tests. I believe that they also have their own chunky download which is currently not cached. PyO3/maturin#1953

By moving these into their own jobs, they should be able to be cached trivially and overall be pretty fast to run.

@davidhewitt davidhewitt added the CI-skip-changelog Skip checking changelog entry label Feb 23, 2024
@@ -488,6 +488,111 @@ jobs:
- run: python3 -m pip install --upgrade pip && pip install nox
- run: python3 -m nox -s check-feature-powerset

test-cross-compilation:
needs: [fmt]
# if: ${{ contains(github.event.pull_request.labels.*.name, 'CI-build-full') || (github.event_name != 'pull_request' }}
Copy link
Member

Choose a reason for hiding this comment

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

This for testing this without attaching CI-build-full, right?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yep exactly, I didn't want to burn through CPUs while testing this out 😂

Copy link
Member Author

Choose a reason for hiding this comment

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

Ok, the jobs are now working so I've pushed a second commit to set these if conditions up properly.

@davidhewitt davidhewitt force-pushed the cross-compile-job branch 7 times, most recently from aa5a764 to 93ba995 Compare February 25, 2024 07:03
Copy link
Member

@messense messense left a comment

Choose a reason for hiding this comment

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

LGTM

@messense messense added this pull request to the merge queue Feb 26, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 26, 2024
@davidhewitt davidhewitt added this pull request to the merge queue Feb 26, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 26, 2024
@davidhewitt davidhewitt added this pull request to the merge queue Feb 26, 2024
Merged via the queue into PyO3:main with commit cd1c0db Feb 26, 2024
42 checks passed
@davidhewitt davidhewitt deleted the cross-compile-job branch February 26, 2024 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI-skip-changelog Skip checking changelog entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants