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

smoke test latest cmx versions #4026

Merged
merged 22 commits into from
Oct 11, 2023
Merged

smoke test latest cmx versions #4026

merged 22 commits into from
Oct 11, 2023

Conversation

cbodonnell
Copy link
Contributor

@cbodonnell cbodonnell commented Sep 5, 2023

What this PR does / why we need it:

This PR adds the remaining CMX distributions to our on-PR testing and also adds logic so that we will automatically inherit new CMX distros and versions that are added.

One larger change was to move all of the "compatibility tests" over to a separate re-usable workflow. This will make it easier for us to create two separate pipelines for stable vs alpha CMX distros. For example, we are excluding AKS for the moment because it is still alpha, but this could allow us to run those tests on AKS in a non-blocking way.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Steps to reproduce

Does this PR introduce a user-facing change?

NONE

Does this PR require documentation?

NONE

@cbodonnell cbodonnell force-pushed the cbo/test-latest-cmx-versions branch 5 times, most recently from 6099129 to 0c27815 Compare September 27, 2023 15:08
@@ -0,0 +1,802 @@
name: compatibility-tests
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Moved all of the "compatibility tests" over to this re-usable workflow so that we can potentially have a dual pipeline that runs Stable vs Alpha distros (AKS for example). This way we can test in a non-blocking way by making the alpha run of this workflow a non-required job.

Copy link
Member

Choose a reason for hiding this comment

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

wouldn't it make more sense to have the CMX action mark a version as alpha or stable and then we could keep all these tests in build-test.yaml and then decide if a test should fail or not based on that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

make sense - any ideas how we could make tests conditionally pass or fail if we went this route? i see continue-on-error, but that seems like it would still mark the job as failed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@cbodonnell cbodonnell marked this pull request as ready for review October 3, 2023 20:46
});

Object.keys(latestMinorVersions[distroName]).forEach((minorVersion) => {
let stage = 'stable';
Copy link
Member

Choose a reason for hiding this comment

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

ideally, this should come from https://api.replicated.com/vendor/v3/cluster/versions

Copy link
Contributor Author

Choose a reason for hiding this comment

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

that would be nice. maybe we can put that in as a feature request? i think there's maybe some value to the client determining their own definition of "stable", but agree that for this use-case it would make it easier. also trying to think ahead for if we make this a re-usable action. users should probably be able to pass an include or exclude to determine the versions they want or don't want, respectively. a conversation for later though...

sgalsaleh
sgalsaleh previously approved these changes Oct 10, 2023
@cbodonnell cbodonnell merged commit d673a3e into main Oct 11, 2023
240 of 241 checks passed
@cbodonnell cbodonnell deleted the cbo/test-latest-cmx-versions branch October 11, 2023 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants