-
-
Notifications
You must be signed in to change notification settings - Fork 249
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
Add Smoke tests for build & packaging #2397
Conversation
Signed-off-by: Shelley Lambert <slambert@gmail.com>
Signed-off-by: Shelley Lambert <slambert@gmail.com>
Signed-off-by: Shelley Lambert <slambert@gmail.com>
Signed-off-by: Shelley Lambert <slambert@gmail.com>
Signed-off-by: Shelley Lambert <slambert@gmail.com>
Signed-off-by: Shelley Lambert <slambert@gmail.com>
Still to do:
|
Would these tests be used alongside our existing suite? |
The intent of these tests is to check that no one has made breaking changes (to what gets packaged for release). This smoke set will grow to have several more checks, and could also include installer testing. They could get used alongside (or triggered at the same time) depending on when the existing set runs. How/where is the existing suite triggered? Part of PR testing? part of a pipeline run? or both? (yes, I can look to answer this myself ;) ) |
They're executed as part of the Compile pr tester on all build PR's (see https://github.com/AdoptOpenJDK/openjdk-build/tree/master/pipelines/build/prTester#Compile). You can also execute it locally: cd pipelines
./gradlew --info test |
These smoke tests are meant to verify the build artifact that gets created (actually call java executable after its unpacked onto a machine), so they are not suitable to add to the Compile PR tester workflow. I will look at the various points in our pipeline where they would be better applied, and note that they can even still exist as a standalone job rather than a step or a stage in the build pipeline. (refering to the diagram at AdoptOpenJDK/TSC#158 (comment) they could be the first subtest run after sign step and before any other tests run, and definitely before publish). |
@smlambert - Did you want to continue with this PR or are you happy to park it given our refactoring efforts? |
@karianna Getting this PR in should be the single top-priority of this project. |
In that case @smlambert - if you're happy with it can you take it out of draft and we can review and try to land. |
re: #2397 (comment) adoptium/TKG#142 has landed, I can update the SmokeTestsForBuildAndPackaging test job to not use my TKG branch now. The SmokeTestsForBuildAndPackaging job is running as a standalone, and should also get tied into the overall build pipeline (so that it can block further testing and publishing of build artifacts). |
Signed-off-by: Shelley Lambert <slambert@gmail.com>
Signed-off-by: Shelley Lambert <slambert@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - I have a preference for one assert per test but it's not as hill I'm going to die on :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does any documentation in this repo need updating to inform/educate users of these changes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On the basis that this is just the test cases being added which are called without requiring changes to the main build pipelines, I see no reason not to merge this [*]
[*] - Other than the fact things are a little unstable today as a result of the fallout from merging #2132
Yes, still to do:
There will be PRs to follow this one:
|
Co-authored-by: Andreas Ahlenstorf <andreas@ahlenstorf.ch> Co-authored-by: Adam Farley <adfarley@redhat.com> Co-authored-by: Shelley Lambert <slambert@gmail.com>
@M-Davies - per your question regarding doc, I will plan to add doc in the follow-up PR where this gets tied into the build pipeline itself (so the doc can describe that these tests will block other testing and publishing of artifacts). Currently anyone can trigger the SmokeTestsForBuildandPackaging job, against any build produced at the project (just as you would any Grinder). Given there are 2 approvals on this, I will merge it and begin on the subsequent PR so that we automatically rather than manually launch the test job. |
Tests from @aahlenst and @adamfarley moved from openjdk-tests repo PRs
Test job: https://ci.adoptopenjdk.net/view/work-in-progress/job/SmokeTestsForBuildandPackaging/