Make rehearsals of hidden jobs have skip_report: true
#346
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Rehearsals of hidden jobs are also hidden jobs, but they are "special"
by being hidden jobs on a repository that should not have hidden
jobs (openshift/release). This causes problems because the config makes
jobs on
openshift/release
to have URLs in GH to the public Deck/Spyglassinstance, but that instance does not have access to the underlying private
storage so it cannot show the rehearsal's logs and artifacts.
(see the
ci/rehearse/openshift-priv/ci-experiment-origin/master/e2e-cmd
rehearsal on openshift/release#6536 for an example)
Additionally, whoever triggers a rehearsal of a hidden job is unlikely to
have access to the Deck instance that shows hidden jobs, so they would not
be able to access the logs even if the URL were correct.
Therefore, we make such jobs skip reporting to GH to avoid confusion
Note: "hidden" means the Deck concept of hidden jobs
Additionally, I discovered the current tests panic when they fail because
diff.Object*Diff
(deprecated anyway) do not handle unexported fields, so I ported the tests tocmp.Diff
. Also, spotted some dead code in those tests and removed it./cc @openshift/openshift-team-developer-productivity-platform