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

.cirrus.yml: fix a warning #1616

Merged
merged 1 commit into from
May 25, 2023
Merged

Conversation

kolyshkin
Copy link
Contributor

@kolyshkin kolyshkin commented May 24, 2023

Cirrus CI emits a bunch of warnings like this one:

task "success" depends on task "fedora-38 vfs", but their only_if conditions are different

To fix, use "skip" instead of "only_if". The difference between the two is described at
https://cirrus-ci.org/guide/writing-tasks/#conditional-task-execution

This was probably a copy-paste leftover from another repo, which uses CI:DOCS
magic to skip some tests. In this repo, it is not used, so remove the condition.

Copy link
Collaborator

@flouthoc flouthoc left a comment

Choose a reason for hiding this comment

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

LGTM

@TomSweeneyRedHat
Copy link
Member

@cevich PTAL
LGTM, but want a head nod from Chris

@cevich
Copy link
Member

cevich commented May 24, 2023

Oof, this is confusing: None of the other testing tasks have this condition on them. WDYT about just removing it entirely?

@kolyshkin
Copy link
Contributor Author

Oof, this is confusing: None of the other testing tasks have this condition on them. WDYT about just removing it entirely?

I barely remember this was made so some (expensive) tests can be skipped if only documentation changes are being made.

Found this in a neighbor repo:

https://github.com/containers/podman/blob/47ac6c4cbe1fea2f78b1f72937b43a8c6be28420/CONTRIBUTING.md?plain=1#L180C1-L182

I guess, yes, if this test skipping feature is not needed here, we can remove it entirely.

@cevich
Copy link
Member

cevich commented May 25, 2023

Yeah, this and several other magic strings are used extensively in the podman and a few other repos. But in this repo, I count a total of 7 (closed) PRs using it, out of thousands. So I think it's safe to just remove it. That way no maintainer will ever question it's apparently partial implementation. Thanks for the effort though, trying to clean up all those annoying annotations. I appreciate the help.

Cirrus CI emits a bunch of warnings like this one:

> task "success" depends on task "fedora-38 vfs", but their only_if conditions are different

This was probably copied from another repo, which uses CI:DOCS magic to
skip some tests. In this repo, it is not used, so remove the condition.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
@kolyshkin
Copy link
Contributor Author

Yeah, this and several other magic strings are used extensively in the podman and a few other repos. But in this repo, I count a total of 7 (closed) PRs using it, out of thousands. So I think it's safe to just remove it. That way no maintainer will ever question it's apparently partial implementation. Thanks for the effort though, trying to clean up all those annoying annotations. I appreciate the help.

updated; ptal

@kolyshkin
Copy link
Contributor Author

kolyshkin commented May 25, 2023

CI failures seem to be unrelated

Copy link
Member

@cevich cevich left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks again.

@cevich
Copy link
Member

cevich commented May 25, 2023

I just hit "re-run" on all the failures.

@cevich cevich merged commit d08f831 into containers:main May 25, 2023
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.

4 participants