action #118351
closed[openQA] clone a job but read schedule from custom git branch
Description
We have openqa-clone-custom-git-refspec
that works great for testing code on custom branches and running jobs on OSD/O3.
Would be nice to have a similar option or feature to clone a job but pointing to a custom json or yaml gitref repo schedule, to test changes on variables and settings.
Updated by livdywan about 2 years ago
Are you aware that you can specify the schedule via the SCHEDULE variable? Can you perhaps give a more concrete example?
Updated by amanzini about 2 years ago
concrete example:
- I modified a JSON schedule in my branch https://gitlab.suse.de/amanzini/osd-sle15-security/-/tree/poo116176 , by altering some variables.
- Now I want to clone an OSD job, but running my schedule instead of the original.
Can I use the SCHEDULE env var in the clone command with a custom gitref ?
Updated by livdywan about 2 years ago
- Project changed from openQA Project (public) to openQA Tests (public)
I guess what you want is to override YAML_SCHEDULE
from a branch? That's not an openQA feature but it's implemented in the test distribution.
Updated by livdywan about 2 years ago
- Related to action #116176: [security][fips] test fails in windows_network_setup added
Updated by amanzini about 2 years ago
- Subject changed from [openQA] clone a job but reading schedule from custom git branch to [openQA] clone a job but read schedule from custom git branch
Updated by okurz about 2 years ago
- Category set to Enhancement to existing tests
Updated by szarate about 2 years ago
- Project changed from openQA Tests (public) to openQA Project (public)
- Category changed from Enhancement to existing tests to Feature requests
I guess what you want is to override YAML_SCHEDULE from a branch? That's not an openQA feature but it's implemented in the test distribution.
There's #77071 but that's for that conversation
Andrea, I think that in this case, you're better off by commiting the altered schedule in your fork, as already mentioned, or look how to implement it yourself for the time being.
Oli, if you don't see a valid feature request, please reject the ticket, the tests don't have anything to do with this. The link should suffice when analizing #77071
Updated by okurz about 2 years ago
- Category changed from Feature requests to Support
- Status changed from New to Feedback
- Assignee set to okurz
- Target version set to Ready
Reading the ticket again I wonder where this needs any new feature at all. Andrea, you can overwrite any test variable on cloning also when cloning within one instance. So assuming that a YAML schedule file is available in a repo it's also possible to specify and use that schedule. If of course you are adding a new schedule file then specify your repo to clone and additionally point to your new schedule within. Does this work for you?
Updated by amanzini about 2 years ago
- Status changed from Feedback to Resolved
yes, assuming that I can point YAML_SCHEDULE to a file in my own branch, I guess that can work; probably this feature needs only to be better documented. Thanks!