-
-
Notifications
You must be signed in to change notification settings - Fork 314
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
Prototype a 'rerun' script #2511
Comments
Some additional reference:
Rerun links are generated by the parameters passed in, in fact more than 1 rerun link is created. Rerun link is a convenience to prepopulate the parameters used in a job, and allow the user to change some parameters to suit the needs of the 'next run'. They are created by 2 mechanisms:
Example link (when clicked on, sets up a prepopulated Grinder job that can then be further edited and then launched):
|
Hey, I can work on it. |
Future enhancement suggestion:
|
Yes, that is even better @llxia ... that was why we called this a prototype... wanted to see what it looked like to take SHAs and rerun link info and try to run again. Having it autogenerate and attach as an artifact (and be present in local or automated runs) is sweet. |
Closing this as completed since #2531 was merged. We will revisit enhancements under a separate feature enhancement (likely in TKG repo). |
User story:
As a developer, I want to recreate a test failure that was reported 2 months ago. I know which JDK binary was being tested, and I have downloaded and installed that binary locally on my machine. I want to set up the same set of test material that was used 2 months ago. I have the SHA.txt file from that test run from 2 months ago. How do I setup the correct test material so that I can rerun the test that failed locally?
Related to the reproducible tests epic, it would be good to write a script that can read and parse a 'rerun in Grinder link' and/or the contents of a SHA.txt file, set the appropriate env vars based on those 2 types of inputs, and then 'rerun' the test target (defined in the 'rerun in Grinder link').
A good starting point for this work, is to first try to run a test target locally (instructions for how to do that can be found here). Once can run locally, try changing some variables and see what happens when you next compile and run.
Example:
rerun.sh --help
rerun.sh --link someRerunURL [--shas someSHAtxtFile]
example:
rerun.sh --link
https://ci.adoptopenjdk.net/job/Grinder/parambuild/?SDK_RESOURCE=nightly&TARGET=jdk_imageio_0&TEST_FLAG=&UPSTREAM_TEST_JOB_NAME=&DOCKER_REQUIRED=false&ACTIVE_NODE_TIMEOUT=&VENDOR_TEST_DIRS=&EXTRA_DOCKER_ARGS=-v+%24%7BTEST_JDK_HOME%7D%3A%2Fopt%2Fjava%2Fopenjdk&TKG_OWNER_BRANCH=AdoptOpenJDK%3Amaster&TEST_PARALLELIZATION_PARAMS=&PLATFORM=x86-64_linux
--shas /tmp/SHA.txt (edited)where a SHA.txt file is an optional input to the rerun.sh script but if present, would set some environment variables to specify which specific test repos we want to use
The text was updated successfully, but these errors were encountered: