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: special-case CI colon-IMG and colon-DOCS only in subject #7376

Conversation

edsantiago
Copy link
Member

@edsantiago edsantiago commented Aug 19, 2020

As of a few minutes ago (relative to this commit), Cirrus
defines the CIRRUS_CHANGE_TITLE envariable as "First line
of CIRRUS_CHANGE_MESSAGE"[1]. Replace all conditionals
accordingly.

[1] cirruslabs/cirrus-ci-docs@f8d2530

Reasoning: up until this PR, the presence of CI:IMG
or CI:DOCS in the body of the commit message would trigger
those magic CI code flows. This violates POLA, and actually
led to a bad PR (#7317) being merged because CI never ran.

Fixes: #7374

Signed-off-by: Ed Santiago [email protected]

@edsantiago edsantiago changed the title Cirrus: special-case CI:IMG and :DOCS only in subject Cirrus: special-case CI colon-IMG and colon-DOCS only in subject Aug 19, 2020
@edsantiago edsantiago force-pushed the cirrus_specialcase_only_title branch from 63071d1 to 09a2e59 Compare August 19, 2020 16:34
As of a few minutes ago (relative to this commit), Cirrus
defines the CIRRUS_CHANGE_TITLE envariable as "First line
of CIRRUS_CHANGE_MESSAGE"[1]. Replace all conditionals
accordingly.

 [1] cirruslabs/cirrus-ci-docs@f8d2530

Reasoning: up until this PR, the presence of CI:IMG
or CI:DOCS *in the body* of the commit message would trigger
those magic CI code flows. This violates POLA, and actually
led to a bad PR (containers#7317) being merged because CI never ran.

Fixes: containers#7374

Signed-off-by: Ed Santiago <[email protected]>
@edsantiago edsantiago force-pushed the cirrus_specialcase_only_title branch from 09a2e59 to 71adbcc Compare August 19, 2020 17:32
@edsantiago
Copy link
Member Author

@cevich PTAL. Seems to be working: I deliberately included those magic strings in the PR description, but actual-CI ran.

Copy link
Member

@vrothberg vrothberg left a comment

Choose a reason for hiding this comment

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

LGTM

@rhatdan
Copy link
Member

rhatdan commented Aug 20, 2020

@cevich PTAL and merge
/approve

@openshift-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: edsantiago, rhatdan

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-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 20, 2020
@cevich
Copy link
Member

cevich commented Aug 20, 2020

@edsantiago excellent work and I'm glad you found such a simple fix.

@cevich
Copy link
Member

cevich commented Aug 20, 2020

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 20, 2020
@openshift-merge-robot openshift-merge-robot merged commit 516196f into containers:master Aug 20, 2020
@edsantiago edsantiago deleted the cirrus_specialcase_only_title branch August 20, 2020 19:06
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 24, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CI - colon-img should only trigger if present in git subject
6 participants