-
Notifications
You must be signed in to change notification settings - Fork 4
Add support for download reproducers by TestRun ID #33
Add support for download reproducers by TestRun ID #33
Conversation
2469e31
to
441e807
Compare
@roxell if you are able to look over this PR when you have the opportunity that would be great. I changed the input from the planned "job_url" input to the testrun ID since I discovered downloading the build reproducer requires the metadata file (which is accessible via the testrun). |
This should probably be in its own script with its own parameters and then just call the common parts in squadutilslib to make it easier since the imput variables are so different or what do you think? |
505d6fe
to
f279421
Compare
@roxell I have created a new script I also updated Let me know what you think. Also - I noticed the flake8 check only checks the |
f279421
to
b7112f1
Compare
d75c649
to
f704014
Compare
Latest pushes add support for fetching tux plan reproducers. Currently, the "test" side does not work as the new TuxSuite patch does not appear to expose the download URL for the tux plan test reproducer in the same way as the other test reproducer URLs. I have followed up on this with the Tux team. |
Add get_reproducer_from_testrun to allow downloading and returning of a reproducer from a given testrun ID. This function downloads the reproducer for the given testrun to a provided filename. The optional `local` flag can be provided to download the tuxmake or tuxrun reproducer command rather than the tuxsuite reproducer command. This function will be used in a script to download the reproducer file for a build or test from a TestRun, which is useful for reproducing builds and tests. Update get_reproducer to use the get_reproducer_from_testrun function to download the reproducer from the testrun. Signed-off-by: Katie Worton <[email protected]>
f704014
to
505e051
Compare
The Tux team followed up by added an endpoint to download the tux plan reproducers for tests. I have updated my patch to perform this download and have tested that it works. @roxell I have added support for fetching tux plan reproducers - if you could have a look over this patch again that would be great. |
When I ran the command "./squad-create-reproducer-from-testrun --testrun 21531365 --plan --filename 21531365.json" I didn't expect to see any output in the console. |
505e051
to
864ac92
Compare
@roxell - I have now pushed an update which means the reproducer is only printed when |
864ac92
to
646ee80
Compare
we do not need the yaml file to be exeutable... |
This is true - I think in both cases my only concern would be the number of code paths to maintain. |
da2be2d
to
8458589
Compare
I have removed the feature of fetching TuxTest reproducers to improve maintainability (since it is unnecessary if we download TuxPlans) and updated things so plans don't get marked as executable. I have updated the commit message and README to reflect these changes. @roxell let me know what you think of these changes 👍 |
squad-create-reproducer-from-testrun
Outdated
filename = args.filename | ||
|
||
try: | ||
reproducer, is_test_reproducer = get_reproducer_from_testrun( |
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.
when is is_test_reproducer used?
Can't that be dropped?
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.
Have now dropped this 👍
Add support for downloading reproducers by testrun ID in the squad-create-reproducers script. This allows the user to provide the --testrun parameter to download the build or test reproducer from a specific testrun, using the get_reproducer_from_testrun function from squadutilslib. The --local flag can be provided to fetch TuxRun reproducer, otherwise the TuxPlan reproducer will be downloaded by default. Signed-off-by: Katie Worton <[email protected]>
8458589
to
f0ff779
Compare
Add support in squadutilslib and squad-create-reproducer for downloading the build or test reproducer by TestRun ID as an alternative to searching for the latest test reproducer in a given group and project.