Skip to content

Conversation

@cgwalters
Copy link
Member

So we can use -E in CI, see
coreos/coreos-assembler#1252

@cgwalters
Copy link
Member Author

(Totally didn't test this)

@jlebon
Copy link
Member

jlebon commented Mar 19, 2020

Ahh yup, you're right we need to enhance this step here for coreos/fedora-coreos-config#305.

Hmm, how about instead of this, we automatically pass --exttest src/config/tests/kola if we find that the directory exists? In general, I want to establish conventions to make it dead easy to do the right thing.

@jlebon
Copy link
Member

jlebon commented Mar 19, 2020

I can pick this up if you'd like!

@cgwalters
Copy link
Member Author

we automatically pass --exttest src/config/tests/kola

Oh definitely we should do that yep. But this approach is needed for the ostree case...unless we define conventions for that.

@jlebon
Copy link
Member

jlebon commented Mar 19, 2020

Yeah, I think that makes sense. I.e. let's define tests/kola as the external tests dir. For config dirs like fedora-coreos-config, we check for this via ${cosaDir}/src/config/tests/kola. For the project being built, we just check tests/kola (i.e. the workspace). This matches e.g. make: true blindly building the code in the workspace.

For things that break that convention or for tests stored elsewhere, we can add an exttests: [] arg that override the default list? But that can come later.

@cgwalters
Copy link
Member Author

Oh I like that yep!

cgwalters added a commit to cgwalters/coreos-assembler that referenced this pull request Mar 19, 2020
cgwalters added a commit to cgwalters/coreos-assembler that referenced this pull request Mar 19, 2020
@cgwalters
Copy link
Member Author

@cgwalters
Copy link
Member Author

And reworked this per above discussion.

cgwalters added a commit to cgwalters/coreos-assembler that referenced this pull request Mar 19, 2020
openshift-merge-robot pushed a commit to coreos/coreos-assembler that referenced this pull request Mar 19, 2020
@cgwalters cgwalters changed the title fcosKola: Add argv parameter fcosKola: Automatically pick up tests/kola Mar 19, 2020
@jlebon
Copy link
Member

jlebon commented Mar 20, 2020

I just did a minor fixup to this to avoid another round-trip. (Changed WORKSPACE to env.WORKSPACE and just spelled out the --exttest switch to be more explicit.)

Thanks!

@jlebon jlebon merged commit be2b202 into coreos:master Mar 20, 2020
@cgwalters
Copy link
Member Author

I pushed 55bb2ae

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants