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

Don't run the E2E tests on installer documentation #1191

Merged
merged 1 commit into from
Aug 15, 2018
Merged

Don't run the E2E tests on installer documentation #1191

merged 1 commit into from
Aug 15, 2018

Conversation

crawford
Copy link
Contributor

No description provided.

@openshift-ci-robot openshift-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Aug 14, 2018
@@ -35,6 +35,7 @@ presubmits:
- dockerless-build-temporary
rerun_command: "/test e2e-aws"
always_run: true
run_if_changed: "^((?!Documentation).)*$"
Copy link
Member

@wking wking Aug 14, 2018

Choose a reason for hiding this comment

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

Maybe just:

run_if_changed: '^(Documentation/)'

? [edit: err, never mind. For some reason I saw ^ and thought "inverse" (like [^...]) instead of "anchor at the start of the string" :p]

@@ -35,6 +35,8 @@ presubmits:
- dockerless-build-temporary
rerun_command: "/test e2e-aws"
always_run: true
Copy link
Member

Choose a reason for hiding this comment

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

You need to drop this to avoid:

# test that the prow config is parseable
time="2018-08-14T23:10:51Z" level=fatal msg="Error loading config." error="job pull-ci-origin-installer-e2e-aws is set to always run but also declares run_if_changed targets, which are mutually exclusive" 

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was wondering about that. The documentation for prow features an example that does exactly this.

@@ -34,7 +34,7 @@ presubmits:
- master
- dockerless-build-temporary
rerun_command: "/test e2e-aws"
always_run: true
run_if_changed: "^([^D]|D(D|oD|ocD|ocuD|ocum(D|e(D|n(D|t(D|aD|atD|atiD|atioD)))))*([^Do]|o[^Dc]|oc[^Du]|ocu[^Dm]|ocum([^De]|e([^Dn]|n([^Dt]|t([^Da]|a[^Dt]|at[^Di]|ati[^Do]|atio[^Dn]))))))*(D(D|oD|ocD|ocuD|ocum(D|e(D|n(D|t(D|aD|atD|atiD|atioD)))))*(o|oc|ocu|ocum(e(n(t(a|at|ati|atio)?)?)?)?)?)?$"
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: Is it possible to add a comment of this?

@yifan-gu
Copy link
Contributor

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 15, 2018
@openshift-merge-robot openshift-merge-robot merged commit 6f623b1 into openshift:master Aug 15, 2018
@openshift-ci-robot
Copy link
Contributor

@crawford: Updated the job-config configmap using the following files:

  • key openshift-installer-presubmits.yaml using file ci-operator/jobs/openshift/installer/openshift-installer-presubmits.yaml

In response to this:

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

always_run: true
# The abomination below is equivilent to `^((?!Documentation).)*$`. Since
# Go doesn't support negative lookaheads, we are stuck with the following.
run_if_changed: "^([^D]|D(D|oD|ocD|ocuD|ocum(D|e(D|n(D|t(D|aD|atD|atiD|atioD)))))*([^Do]|o[^Dc]|oc[^Du]|ocu[^Dm]|ocum([^De]|e([^Dn]|n([^Dt]|t([^Da]|a[^Dt]|at[^Di]|ati[^Do]|atio[^Dn]))))))*(D(D|oD|ocD|ocuD|ocum(D|e(D|n(D|t(D|aD|atD|atiD|atioD)))))*(o|oc|ocu|ocum(e(n(t(a|at|ati|atio)?)?)?)?)?)?$"
Copy link
Contributor

Choose a reason for hiding this comment

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

How often does your repository change top-level directories? Seems like you could have called those out in a much more simple manner.

Copy link
Member

@wking wking Aug 20, 2018

Choose a reason for hiding this comment

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

How often does your repository change top-level directories?

We have a top-level change in flight now with openshift/installer#120 ;). But we'll need CI changes in other places to adapt to that anyway, so I wouldn't mind switching to a whitelist approach here too. I'm also fine with the blacklist approach.

@crawford crawford deleted the e2e branch August 20, 2018 23:22
derekhiggins pushed a commit to derekhiggins/release that referenced this pull request Oct 24, 2023
* Support lease expiry option

This was added to metal3-dev-env in [0]. Expose the setting for
dev-scripts too.

0: metal3-io/metal3-dev-env#599

* Bump to current metal3-dev-env
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants