Use custom script to invoke registry extended test suite#729
Conversation
|
run hack/generate.sh and include those changes. |
There was a problem hiding this comment.
should not need merge_junit anymore. i'm trying to get it removed here:
https://github.com/openshift/origin/pull/16068/files
|
and for something like this that isn't going to break anyone else, we can just test it live. i'm guessing you do not have access to create jobs on the jenkins server, however? |
|
What's the developer workflow to do this from an Origin checkout? |
|
@stevekuznetsov there isn't a good one. and i'm not happy about it, but go see openshift/origin#16846 for that discussion. |
There was a problem hiding this comment.
I think we will fail to detect $OS_ROOT correctly since the script that runs is not under the Origin tree. I may have made that work in the past but I can't remember. You should test that this script, when saved in some part of the filesystem NOT in the Origin tree, works as expected.
There was a problem hiding this comment.
Can I at least assume that $OS_ROOT is set?
There was a problem hiding this comment.
No, nothing sets it
There was a problem hiding this comment.
@miminar i'm holding merging/creating this based on @stevekuznetsov's response, but if i'm wrong let's talk tomorrow and i can set it up for you and we can see what happens.
There was a problem hiding this comment.
So the "$(pwd)" holds the truth. I've made "${OS_ROOT}" guessing a bit more robust in this script just in case...
ae35ec7 to
a39fff5
Compare
|
Comments addressed (hopefully).
OK, let's test it live. |
a39fff5 to
32cf232
Compare
|
I've created new test_pull_request_origin_extended_image_registry_custom jenkins job to try out the changes. I'll update this PR once I get it working. Update: tested & updated |
The `test/extended/core.sh` script does not allow to properly focus only the desired tests to run. This script contains the necessary bits from the `core.sh` scripts to setup the environment and run just the registry tests. Signed-off-by: Michal Minář <miminar@redhat.com>
Signed-off-by: Michal Minář <miminar@redhat.com>
32cf232 to
7b9a497
Compare
|
Any other comments? |
|
@miminar in light of openshift/origin#16919 is this still necessary? |
|
also i only see one [registry] test? (registry.go) Are all the registry tests in that one file? (there's also signature.go but that is all disabled) |
Registry tests often begin with The problem with the current regexp
The focus of this job could be rewritten to |
|
@miminar how about we just consistently tag all our registry tests with [registry] or [image] and then you can set the focus to [registry] (or [image]) and be done with it? |
| title: "run extended tests" | ||
| repository: "origin" | ||
| script: |- | ||
| for pth in ${OS_ROOT:-} "$(pwd)" "$(dirname ${BASH_SOURCE})" "/data/src/github.com/openshift/origin"; do |
There was a problem hiding this comment.
In the test env you can be certain Origin is at /data/src/github.com/openshift/origin
I'd prefer |
sure, you can have as many tags as you like.
yes. |
|
Closing in favor of openshift/origin#16967 |
Automatic merge from submit-queue (batch tested with PRs 16912, 16931, 16939, 16967, 16978). extended: annotated registry tests To make them easily focus-able in CI. Obsoletes openshift-eng/aos-cd-jobs#729
The
test/extended/core.shscript does not allow to properly focus only the desired tests to run.This script contains the necessary bits from the
core.shscripts to setup the environment and run just the registry tests.Once openshift/origin#16846 merges, the registry tests won't be runnable using the extended test scripts because most of them are run serially.