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

[CI:BUILD] Cirrus: Fix GraphQL ownerRepository:null error #17383

Merged
merged 2 commits into from
Feb 7, 2023

Conversation

cevich
Copy link
Member

@cevich cevich commented Feb 6, 2023

A semantic change to a Cirrus-CI GraphQL API parameter caused a
unit-test to fail (as it should have) with the error:

Query result did not pass filter '.data.ownerRepository.cronSettings':
'{"data":{"ownerRepository":null}}'

As per Cirrus-support, a change was introduced in schema affecting certain
fields that were incorrectly marked Nullable. They indicated the platform
field was set incorrectly, and should use the value github.

  • Fix the platform field's value to github instead of LINUX.
  • Change the unit-test to only execute as part of the 'main' cirrus-cron
    job so it cannot impact PRs.

Does this PR introduce a user-facing change?

None

This reverts commit 6b3073f.

Signed-off-by: Chris Evich <[email protected]>
@openshift-ci openshift-ci bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. release-note-none labels Feb 6, 2023
@cevich cevich force-pushed the revert_emergency_fix branch 2 times, most recently from aa2a033 to 96f029a Compare February 6, 2023 19:14
@cevich
Copy link
Member Author

cevich commented Feb 6, 2023

@cevich cevich changed the title [WIP] [CI:BUILD] Cirrus: Fix GraphQL ownerRepository:null error [CI:BUILD] Cirrus: Fix GraphQL ownerRepository:null error Feb 6, 2023
@cevich cevich force-pushed the revert_emergency_fix branch from 96f029a to 92c7b5c Compare February 6, 2023 20:01
@cevich cevich marked this pull request as ready for review February 6, 2023 20:01
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 6, 2023
cevich referenced this pull request Feb 6, 2023
make hack/markdown-preprocess parallel-safe
A semantic change to a Cirrus-CI GraphQL API parameter caused a
unit-test to fail (as it should have) with the error:

```
Query result did not pass filter '.data.ownerRepository.cronSettings':
'{"data":{"ownerRepository":null}}'
```

As per Cirrus-support, a change was introduced in schema affecting certain
fields that were incorrectly marked Nullable.  They indicated the `platform`
field was set incorrectly, and should use the value `github`.

* Fix the platform field's value to `github` instead of `LINUX`.
* Change the unit-test to only execute as part of the 'main' cirrus-cron
  job so it cannot impact PRs.

Signed-off-by: Chris Evich <[email protected]>
@cevich cevich force-pushed the revert_emergency_fix branch from 92c7b5c to 50f72fe Compare February 6, 2023 20:57
@cevich
Copy link
Member Author

cevich commented Feb 7, 2023

@containers/podman-maintainers PTAL. This fixes the underlying problem & test which lead to the big CI-SNAFU on Monday. Without this PR merged, all our cirrus-cron monitoring jobs fail.

Copy link
Member

@Luap99 Luap99 left a comment

Choose a reason for hiding this comment

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

LGTM

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

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Feb 7, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 7, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cevich, vrothberg

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 openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 7, 2023
@openshift-merge-robot openshift-merge-robot merged commit 93a3668 into containers:main Feb 7, 2023
cevich added a commit to cevich/podman that referenced this pull request Feb 7, 2023
These tests don't need to run for every PR, and the thing they're
testing never runs on any branch except `main`.  Stop them from
running on this branch.  In case someone decides to try and use them,
also fix the errant API call which triggered the original problem.

Ref: containers#17383

Signed-off-by: Chris Evich <[email protected]>
@lsm5
Copy link
Member

lsm5 commented Feb 8, 2023

/cherry-pick v4.4

@openshift-cherrypick-robot
Copy link
Collaborator

@lsm5: #17383 failed to apply on top of branch "v4.4":

Applying: Revert "Cirrus: Emergency fix to un-stuck PRs"
Using index info to reconstruct a base tree...
M	contrib/cirrus/prebuild.sh
Falling back to patching base and 3-way merge...
Auto-merging contrib/cirrus/prebuild.sh
CONFLICT (content): Merge conflict in contrib/cirrus/prebuild.sh
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 Revert "Cirrus: Emergency fix to un-stuck PRs"
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

In response to this:

/cherry-pick v4.4

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.

@lsm5
Copy link
Member

lsm5 commented Feb 8, 2023

ah I see it's cherrypicked already. my bad.

@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 11, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 11, 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. release-note-none
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants