Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.

kola: add RequiresInternetAccess register flag #967

Merged
merged 1 commit into from
Jan 22, 2019

Conversation

rfairley
Copy link
Contributor

Tests with this flag set will not be run when running on a platform
that does not provide the networking setup required for Internet.
Currently, the only platform where this is the case is "qemu".

This avoids needing to manually exclude platforms using
ExcludePlatforms: for this case.

Fixes: #572


A few notes:

  • I looked at the tests that were already excluding "qemu". For the tests that did this, I replaced the ExcludePlatforms: []string{"qemu"} with the internet flag, apart from the following:

    • coreos.ignition.v2_2.security.tls (kola/tests/ignition/security.go)
    • coreos.ignition.v1.ssh.key (kola/tests/ignition/ssh.go)
    • coreos.ignition.v2.ssh.key (kola/tests/ignition/ssh.go)

    These tests look to exclude QEMU for reasons other than requiring Internet access. (security/TLS flakes (3957a90), and SSH tests above not applicable for QEMU).

  • Added a debug log message to indicate that the test was excluded because Internet is not available. Think it could be helpful, but can understand if having that message would be noisier than we'd like.

  • Tested this running kola run on a built QEMU image of CL (built in the CL SDK version 1995.0.0).

@rfairley
Copy link
Contributor Author

↑ Force pushed a change I committed but didn't push earlier

Copy link
Contributor

@arithx arithx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally LGTM, could go either way on my comment

kola/harness.go Outdated Show resolved Hide resolved
@rfairley
Copy link
Contributor Author

↑ Added the list register.PlatformsNoInternet in, and gave a run to make sure the right tests are still excluded. Let me know if anything needs adjusting.

kola/tests/ignition/empty.go Outdated Show resolved Hide resolved
@rfairley rfairley force-pushed the rfairley-internet-flag branch 2 times, most recently from a0f1150 to 40e7287 Compare January 22, 2019 17:04
Tests with this flag set will not be run when running on a platform
that does not provide the networking setup required for Internet.
Currently, the only platform where this is the case is `"qemu"`.

This avoids needing to manually exclude plaforms using
`ExcludePlatforms:` for this case.

Fixes: coreos#572
@rfairley
Copy link
Contributor Author

Good to merge from my end.

@arithx arithx merged commit 634ed08 into coreos:master Jan 22, 2019
@rfairley rfairley deleted the rfairley-internet-flag branch January 22, 2019 19:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants