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

WIP: Improve results and debuggability for quay-e2e job #59126

Closed
wants to merge 3 commits into from

Conversation

dgoodwin
Copy link
Contributor

  • Fail quay e2e test step when e2e tests fail
  • Enable resource watch observer on quay-quay-tests-master-ocp-418-quay-quay-e2e-tests-quay313-ocp418-lp-interop

This is important for prow and sippy to know the job encountered errors, today this step cannot fail.
Copy link
Contributor

openshift-ci bot commented Nov 22, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: dgoodwin
Once this PR has been reviewed and has the lgtm label, please assign lizhang19817 for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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

@dgoodwin dgoodwin changed the title demo touchups quay e2e WIP: Improve results and debuggability for quay-e2e job Nov 22, 2024
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 22, 2024
@dgoodwin
Copy link
Contributor Author

/pj-rehearse

@openshift-ci-robot
Copy link
Contributor

@dgoodwin: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@dgoodwin
Copy link
Contributor Author

/pj-rehearse cancel

@openshift-ci-robot
Copy link
Contributor

@dgoodwin: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@openshift-ci-robot
Copy link
Contributor

@dgoodwin: job(s): cancel either don't exist or were not found to be affected, and cannot be rehearsed

@openshift-ci-robot
Copy link
Contributor

[REHEARSALNOTIFIER]
@dgoodwin: the pj-rehearse plugin accommodates running rehearsal tests for the changes in this PR. Expand 'Interacting with pj-rehearse' for usage details. The following rehearsable tests have been affected by this change:

Test name Repo Type Reason
periodic-ci-quay-quay-tests-master-quay-osd-ocp-quay-e2e-tests-quay313-osd-ocp417 N/A periodic Registry content changed
periodic-ci-quay-quay-tests-master-ocp-416-quay-quay-e2e-tests-quay313-ocp416-lp-interop-fips N/A periodic Registry content changed
periodic-ci-quay-quay-tests-master-ocp-417-quay-quay-e2e-tests-quay313-ocp417-lp-interop N/A periodic Registry content changed
periodic-ci-quay-quay-tests-master-ocp-413-quay-quay-e2e-tests-quay313-ocp413 N/A periodic Registry content changed
periodic-ci-quay-quay-tests-master-quay-osd-ocp-quay-e2e-tests-quay312-osd-ocp417 N/A periodic Registry content changed
periodic-ci-quay-quay-tests-master-quay-rosa-ocp-quay-e2e-tests-quay312-rosa-ocp417 N/A periodic Registry content changed
periodic-ci-quay-quay-tests-master-quay-aro-ocp-quay-e2e-tests-quay312-aro-ocp417 N/A periodic Registry content changed
periodic-ci-quay-quay-tests-master-quay-e2e-tests-quay313-ocp416-proxy N/A periodic Registry content changed
periodic-ci-quay-quay-tests-master-quay-hypershift-quay-e2e-tests-quay313-hypershift-ocp417 N/A periodic Registry content changed
periodic-ci-quay-quay-tests-master-ocp-418-quay-quay-e2e-tests-quay311-ocp418 N/A periodic Registry content changed
periodic-ci-quay-quay-tests-master-ocp-418-quay-quay-e2e-tests-quay312-ocp418 N/A periodic Registry content changed
periodic-ci-quay-quay-tests-master-ocp-418-quay-quay-e2e-tests-quay313-aws-s3-rds-postgresql15-ocp418 N/A periodic Registry content changed
periodic-ci-quay-quay-tests-master-ocp-418-quay-quay-e2e-tests-quay313-ocp418-aws-s3 N/A periodic Registry content changed
periodic-ci-quay-quay-tests-master-quay-hypershift-quay-e2e-tests-quay312-hypershift-ocp417 N/A periodic Registry content changed
periodic-ci-quay-quay-tests-master-quay-rosa-ocp-quay-e2e-tests-quay311-rosa-ocp417 N/A periodic Registry content changed
periodic-ci-quay-quay-tests-master-ocp-412-quay-quay-e2e-tests-quay313-ocp412 N/A periodic Registry content changed
periodic-ci-quay-quay-tests-master-ocp-418-quay-quay-e2e-tests-quay313-ocp418-lp-interop N/A periodic Ci-operator config changed
periodic-ci-quay-quay-tests-master-ocp-418-quay-quay-e2e-tests-quay313-ocp418-lp-interop-fips N/A periodic Registry content changed
periodic-ci-quay-quay-tests-master-quay-hypershift-quay-e2e-tests-quay311-hypershift-ocp417 N/A periodic Registry content changed
periodic-ci-quay-quay-tests-master-ocp-415-quay-nightly-quay-e2e-tests-quay313-nightly-ocp415 N/A periodic Registry content changed
periodic-ci-quay-quay-tests-master-ocp-416-quay-quay-e2e-tests-quay313-ocp416-lp-interop N/A periodic Registry content changed
periodic-ci-quay-quay-tests-master-quay-aro-ocp-quay-e2e-tests-quay311-aro-ocp417 N/A periodic Registry content changed
periodic-ci-quay-quay-tests-master-ocp-418-quay-quay-e2e-tests-quay313-ocp418-azure N/A periodic Registry content changed
periodic-ci-quay-quay-tests-master-ocp-415-quay-quay-e2e-tests-quay313-ocp415-lp-interop N/A periodic Registry content changed
periodic-ci-quay-quay-tests-master-ocp-417-quay-quay-e2e-tests-quay312-ocp417-lp-interop-fips N/A periodic Registry content changed

A total of 36 jobs have been affected by this change. The above listing is non-exhaustive and limited to 25 jobs.

A full list of affected jobs can be found here

Interacting with pj-rehearse

Comment: /pj-rehearse to run up to 5 rehearsals
Comment: /pj-rehearse skip to opt-out of rehearsals
Comment: /pj-rehearse {test-name}, with each test separated by a space, to run one or more specific rehearsals
Comment: /pj-rehearse more to run up to 10 rehearsals
Comment: /pj-rehearse max to run up to 25 rehearsals
Comment: /pj-rehearse auto-ack to run up to 5 rehearsals, and add the rehearsals-ack label on success
Comment: /pj-rehearse abort to abort all active rehearsals
Comment: /pj-rehearse network-access-allowed to allow rehearsals of tests that have the restrict_network_access field set to false. This must be executed by an openshift org member who is not the PR author

Once you are satisfied with the results of the rehearsals, comment: /pj-rehearse ack to unblock merge. When the rehearsals-ack label is present on your PR, merge will no longer be blocked by rehearsals.
If you would like the rehearsals-ack label removed, comment: /pj-rehearse reject to re-block merging.

@dgoodwin
Copy link
Contributor Author

/pj-rehearse periodic-ci-quay-quay-tests-master-ocp-418-quay-quay-e2e-tests-quay313-ocp418-lp-interop

@openshift-ci-robot
Copy link
Contributor

@dgoodwin: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

Copy link
Contributor

openshift-ci bot commented Nov 22, 2024

@dgoodwin: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/rehearse/periodic-ci-quay-quay-tests-master-ocp-418-quay-quay-e2e-tests-quay313-ocp418-lp-interop 1964164 link unknown /pj-rehearse periodic-ci-quay-quay-tests-master-ocp-418-quay-quay-e2e-tests-quay313-ocp418-lp-interop

Full PR test history. Your PR dashboard.

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-sigs/prow repository. I understand the commands that are listed here.

@dgoodwin
Copy link
Contributor Author

This PR demonstrates a couple concepts I wanted to share for the interop QE jobs.

Many seem to have test steps that cannot fail (return non-zero), this is a critical problem that needs to be addressed for all tooling right from prow on down to sippy. None of the tooling can properly understand the job until this is resolved.

The second is something I think could be a dramatic improvement for investigating and categorizing failures as either infrastructure or a product or test bug. I started digging into some job failures and found that some of the tools I would normally use are not present because these tests are not run through origin. (big future concept around that mentioned below)

But we do have an interesting tool called the resource watch observer that runs origin's "monitortests" as well. This enables a long running process throughout the life of the job, including product installation. It watches for interesting things happening in the cluster, monitors for network disruption to a number of different network stacks in the cluster (tested by requests coming from the CI build farm), and creates a git repo with commits that represent many of the most important kube api objects in the cluster as they change, and when.

Enabling this observer is demonstrated and is quite simple. Then you end up with an artifact directory like this: https://gcsweb-ci.apps.ci.l2s4.p1.openshiftapps.com/gcs/test-platform-results/pr-logs/pull/openshift_release/59126/rehearse-59126-periodic-ci-quay-quay-tests-master-ocp-418-quay-quay-e2e-tests-quay313-ocp418-lp-interop/1860029073342861312/artifacts/quay-e2e-tests-quay313-ocp418-lp-interop/observers-resource-watch/artifacts/

The tar is the interesting part, extracting this you will find:

  • a number of html charts showing a timeline of those interesting things happening, this is incredibly powerful for determine what was going on in the cluster at the time a failure occurred. covers many things, alerts, disruption, kube events, operator state, node reboots, etc.
  • the git repo/ directory with the history of key resources in the cluster as they change over time

Both of these I think would be very powerful for interop jobs.

There is a big project underway for components and layered products to be able to define their tests in their own repos, but be run via origin. (enhancement openshift/enhancements#1676) This would require go tests, but will eventually allow for dramatically better tooling to be used consistently. This is a ways out and I gather many of these jobs are not using go tests at this time, but if any one product might be interested in being an early adopter we could get those discussions going sooner.

@openshift-bot
Copy link
Contributor

Issues in openshift/release go stale after 30d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 15d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@openshift-ci openshift-ci bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Dec 25, 2024
@openshift-bot
Copy link
Contributor

Stale issue in openshift/release rot after 15d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle rotten.
Rotten issues close after an additional 15d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle rotten
/remove-lifecycle stale

@openshift-ci openshift-ci bot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Jan 9, 2025
@openshift-bot
Copy link
Contributor

Rotten issues in openshift/release close after 15d of inactivity.

Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.

/close

@openshift-ci openshift-ci bot closed this Jan 26, 2025
Copy link
Contributor

openshift-ci bot commented Jan 26, 2025

@openshift-bot: Closed this PR.

In response to this:

Rotten issues in openshift/release close after 15d of inactivity.

Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.

/close

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-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants