Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: Enforce no Internet in qemu unless flagged #1514

Merged
merged 1 commit into from
Jul 8, 2020

Conversation

cgwalters
Copy link
Member

In #1478 we
discussed Internet access and tests, adding a flag to disable
tests which are flagged as requiring it.

This flips things around and enforces no Internet access for
qemu tests by default unless the test is flagged as requiring
it.

Unsurprisingly it turns out several tests are missing the flag.
(And we also don't presently have a way to flag external tests
as requiring Internet, which is another issue)

@openshift-ci-robot
Copy link

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@cgwalters
Copy link
Member Author

draft/WIP until #1478 merges and we also fix the tests.

@cgwalters
Copy link
Member Author

Also we can extend this to non-qemu - e.g. in AWS we can create a restricted VPC or so.

In coreos#1478 we
discussed Internet access and tests, adding a flag to disable
tests which are flagged as requiring it.

This flips things around and *enforces* no Internet access for
qemu tests by default unless the test is flagged as requiring
it.

Unsurprisingly it turns out several tests are missing the flag.

Another issue here is that external tests don't have a way
to influcence flags.  Continuing our "mimic Debian autopkgtest where
applicable" trend, support a `needs-internet` tag, which works
for external tests since they can provide flags.
@cgwalters cgwalters marked this pull request as ready for review July 2, 2020 17:46
@cgwalters
Copy link
Member Author

OK, lifting WIP on this!

@jlebon
Copy link
Member

jlebon commented Jul 3, 2020

/lgtm

@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cgwalters, jlebon

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit a2ed003 into coreos:master Jul 8, 2020
jlebon added a commit to jlebon/coreos-assembler that referenced this pull request Jul 16, 2020
Regression from coreos#1514. `kola spawn` is for users, so just always enable
Internet access there. In the future we could have `--no-net` control
this knob too if the need arises.

This is needed by the rpm-ostree CI which uses `kola` to bring up nodes.
openshift-merge-robot pushed a commit that referenced this pull request Jul 16, 2020
Regression from #1514. `kola spawn` is for users, so just always enable
Internet access there. In the future we could have `--no-net` control
this knob too if the need arises.

This is needed by the rpm-ostree CI which uses `kola` to bring up nodes.
cgwalters added a commit to cgwalters/coreos-assembler that referenced this pull request Jul 17, 2020
Since it turns out I broke the ostree tests after
coreos#1514
cgwalters added a commit to cgwalters/coreos-assembler that referenced this pull request Jul 17, 2020
Since it turns out I broke the ostree tests after
coreos#1514
openshift-merge-robot pushed a commit that referenced this pull request Jul 17, 2020
Since it turns out I broke the ostree tests after
#1514
kelvinfan001 pushed a commit to kelvinfan001/coreos-assembler that referenced this pull request Jul 17, 2020
Regression from coreos#1514. `kola spawn` is for users, so just always enable
Internet access there. In the future we could have `--no-net` control
this knob too if the need arises.

This is needed by the rpm-ostree CI which uses `kola` to bring up nodes.
kelvinfan001 pushed a commit to kelvinfan001/coreos-assembler that referenced this pull request Jul 17, 2020
Since it turns out I broke the ostree tests after
coreos#1514
kelvinfan001 pushed a commit to kelvinfan001/coreos-assembler that referenced this pull request Jul 17, 2020
Regression from coreos#1514. `kola spawn` is for users, so just always enable
Internet access there. In the future we could have `--no-net` control
this knob too if the need arises.

This is needed by the rpm-ostree CI which uses `kola` to bring up nodes.
kelvinfan001 pushed a commit to kelvinfan001/coreos-assembler that referenced this pull request Jul 17, 2020
Since it turns out I broke the ostree tests after
coreos#1514
kelvinfan001 pushed a commit to kelvinfan001/coreos-assembler that referenced this pull request Jul 17, 2020
Regression from coreos#1514. `kola spawn` is for users, so just always enable
Internet access there. In the future we could have `--no-net` control
this knob too if the need arises.

This is needed by the rpm-ostree CI which uses `kola` to bring up nodes.
kelvinfan001 pushed a commit to kelvinfan001/coreos-assembler that referenced this pull request Jul 17, 2020
Since it turns out I broke the ostree tests after
coreos#1514
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants