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

Prow integration test job report to github #20498

Merged
merged 1 commit into from
Jan 15, 2021

Conversation

chaodaiG
Copy link
Contributor

The integration test introduced in #20451 works as expected, make it reporting to github before make it required for presubmit

The integration test introduced in kubernetes#20451 works as expected, make it reporting to github before make it required for presubmit
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jan 15, 2021
@chaodaiG
Copy link
Contributor Author

/cc @alvaroaleman

@k8s-ci-robot k8s-ci-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. area/config Issues or PRs related to code in /config area/jobs sig/testing Categorizes an issue or PR as relevant to SIG Testing. labels Jan 15, 2021
@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 15, 2021
@@ -102,7 +102,6 @@ presubmits:
- master
always_run: false
decorate: true
skip_report: true
Copy link
Member

Choose a reason for hiding this comment

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

skip_report: true is completely independent from the optional setting btw

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 15, 2021
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: alvaroaleman, chaodaiG

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

@k8s-ci-robot k8s-ci-robot merged commit 2260f5e into kubernetes:master Jan 15, 2021
@k8s-ci-robot k8s-ci-robot added this to the v1.21 milestone Jan 15, 2021
@k8s-ci-robot
Copy link
Contributor

@chaodaiG: Updated the job-config configmap in namespace default at cluster test-infra-trusted using the following files:

  • key test-infra-presubmits.yaml using file config/jobs/kubernetes/test-infra/test-infra-presubmits.yaml

In response to this:

The integration test introduced in #20451 works as expected, make it reporting to github before make it required for presubmit

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.

@spiffxp
Copy link
Member

spiffxp commented Jan 19, 2021

FYI: this caused a couple of PR's to get stuck. They passed their tests, then this context was made required, then the PR was approved... but the new context was never automatically triggered. I'm manually triggering now.

How could we have added this in a less disruptive way?

@alvaroaleman
Copy link
Member

alvaroaleman commented Jan 19, 2021

@spiffxp by finally deploying the status reconciler:

It was written to solve this exact problem automatically. It is in use by Openshift for O(years) and we are not aware of any issues.

@spiffxp
Copy link
Member

spiffxp commented Jan 19, 2021

It's present at https://github.com/kubernetes/test-infra/blob/master/config/prow/cluster/statusreconciler_deployment.yaml

And appears to be deployed

$ k --context=gke_k8s-prow_us-central1-f_prow get pods -l app=statusreconciler
NAME                                READY   STATUS    RESTARTS   AGE
statusreconciler-84c7757876-wtc85   1/1     Running   0          121m

It's documented as handling this case

a new blocking presubmit exists and should be triggered for every trusted pull request in flight

But it appears it didn't?

@alvaroaleman
Copy link
Member

@spiffxp actually the change that should have triggered that is #20501
If I got the timings right, it is the first bunch of results in https://cloudlogging.app.goo.gl/712ifCvvwd4hVUYK6

It just shows that it didn't do anything 🙃

@chaodaiG
Copy link
Contributor Author

Not 100% sure, but have a hypothesis. I think statusreconciler figures out a new required prowjob by looking up previously stored data in memory, which tends to be lost when the pod is restarted, for example autobump. The PR makes this job required #20501 was merged almost right before prow bump #20497, so this could be the reason why statusreconciler didn't figure out this new job

@alvaroaleman
Copy link
Member

That would indeed explain it. I've created a PR to include the config git revision in the config itself, so the statusreconciler can add that to its log, which would allow us to actually debug a situations like this, right now its just guessing: #20527

@chaodaiG chaodaiG deleted the report-integration-test branch January 21, 2021 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/config Issues or PRs related to code in /config area/jobs cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. sig/testing Categorizes an issue or PR as relevant to SIG Testing. 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.

4 participants