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

integration-test: Remove runtime toolchain deps #706

Merged
merged 4 commits into from
Aug 1, 2023
Merged

integration-test: Remove runtime toolchain deps #706

merged 4 commits into from
Aug 1, 2023

Conversation

tamird
Copy link
Member

@tamird tamird commented Jul 31, 2023

Move the use of clang and llvm-objcopy from run-time to build-time. This
allows the integration tests to run on VMs with simpler userlands.

Create a new CI job to build the integration tests separately from
running them. Ship them from that job to the runner job using github
actions artifacts.

@netlify
Copy link

netlify bot commented Jul 31, 2023

Deploy Preview for aya-rs-docs ready!

Name Link
🔨 Latest commit dca5e6c
🔍 Latest deploy log https://app.netlify.com/sites/aya-rs-docs/deploys/64c932c0fae69e0008fb2677
😎 Deploy Preview https://deploy-preview-706--aya-rs-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@mergify mergify bot added the test A PR that improves test cases or CI label Jul 31, 2023
@tamird tamird force-pushed the reloc-tests branch 6 times, most recently from d49aa54 to 98a7567 Compare July 31, 2023 21:12
@tamird
Copy link
Member Author

tamird commented Jul 31, 2023

This happens to reduce CI time as well because of better caching; previously the integration tests weren't enjoying the benefits of Swatinem/rust-cache. On a hydrated cache this takes total CI from 14m22s to 8m31s.

Copy link
Member

@ajwerner ajwerner left a comment

Choose a reason for hiding this comment

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

Works for me. Let's see if others have opinions on the testing layout.

@tamird tamird force-pushed the reloc-tests branch 5 times, most recently from 3f47543 to f97a4b8 Compare August 1, 2023 01:39
@tamird
Copy link
Member Author

tamird commented Aug 1, 2023

Turns out the tests weren't running (because github artifacts strip the execute bit). They're running now, adding about 90 seconds.

@ajwerner
Copy link
Member

ajwerner commented Aug 1, 2023

They're running now, adding about 90 seconds.

Could parallelize the building and running in the two profiles to regain some speed I reckon.

Copy link
Member

@dave-tucker dave-tucker left a comment

Choose a reason for hiding this comment

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

Some nits/questions but overall LGTM

.github/workflows/ci.yml Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
test/integration-test/bpf/reloc.bpf.c Show resolved Hide resolved
test/integration-test/bpf/reloc.bpf.c Show resolved Hide resolved
@tamird tamird force-pushed the reloc-tests branch 5 times, most recently from ff83359 to 44cb1c9 Compare August 1, 2023 15:08
@mergify mergify bot added the aya This is about aya (userspace) label Aug 1, 2023
Move the use of clang and llvm-objcopy from run-time to build-time. This
allows the integration tests to run on VMs with simpler userlands.

Create a new CI job to build the integration tests separately from
running them. Ship them from that job to the runner job using github
actions artifacts.
@tamird tamird merged commit 3692e53 into main Aug 1, 2023
21 checks passed
@tamird tamird deleted the reloc-tests branch August 1, 2023 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aya This is about aya (userspace) test A PR that improves test cases or CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants