Skip to content

chore: add bzlmod test matrix #749

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

Merged
merged 1 commit into from
Jan 4, 2023
Merged

Conversation

kormide
Copy link
Member

@kormide kormide commented Jan 3, 2023

In support of: #644

This adds a test matrix vector that exercises bzlmod for all unit and e2e tests. This way we can test that all of our e2es work under bzlmod and can keep the WORKSPACE/bzlmod apis in sync.

Currently this will fail because we need to add MODULE.bazel files to each e2e and actually fix the bzlmod api. The module files should be ignored during non-bzlmod test runs.

I can either ignore failing tests for now, or we can keep this PR open until all are fixed.

@kormide kormide marked this pull request as ready for review January 3, 2023 18:56
@kormide
Copy link
Member Author

kormide commented Jan 3, 2023

It might be best for me to manually ignore the failing tests for now so that as I update the bzlmod api I can un-ignore them, rather than leaving this testing until the end.

Copy link
Member

@alexeagle alexeagle left a comment

Choose a reason for hiding this comment

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

I guess we would remove e2e/bzlmod and add WORKSPACE.bzlmod files to existing e2e/examples so they are testable under both? In this PR?

@kormide
Copy link
Member Author

kormide commented Jan 3, 2023

I guess we would remove e2e/bzlmod and add WORKSPACE.bzlmod files to existing e2e/examples so they are testable under both? In this PR?

My assumption was that we would keep the WORKSPACE file and that bazel will ignore MODULE.bazel when --enable_bzlmod is not set. I hope it would also ignore WORKSPACE.bzlmod.

Yeah, with this we wouldn't need e2e/bzlmod, but I don't want to delete it until we have the other e2es exercising under bzlmod.

Verified

This commit was signed with the committer’s verified signature.
renovate-bot Mend Renovate
@kormide
Copy link
Member Author

kormide commented Jan 3, 2023

Excluded the failing tests so that I can include them individually as I update the bzlmod api.

@kormide kormide merged commit 4b98698 into aspect-build:main Jan 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants