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

Instrument the kaniko test for logstream. #4774

Merged
merged 1 commit into from
Apr 20, 2022

Conversation

mattmoor
Copy link
Member

@mattmoor mattmoor commented Apr 19, 2022

We see this flaking a fair amount downstream, and this will make it easier to cross correlate our logs to see what's happening in the reconciler as things go awry.

This also fixes a place where we were improperly using a constant in pipelinerun_test.go.

/kind cleanup

Submitter Checklist

As the author of this PR, please check off the items in this checklist:

  • Docs included if any changes are user facing
  • Tests included if any functionality added or changed
  • Follows the commit message standard
  • Meets the Tekton contributor standards (including
    functionality, content, code)
  • Release notes block below has been filled in
    (if there are no user facing changes, use release note "NONE")

Release Notes

NONE

We see this flaking a fair amount downstream, and this will make it easier to cross correlate our logs to see what's happening in the reconciler as things go awry.

This also fixes a place where we were improperly using a constant in `pipelinerun_test.go`.
@tekton-robot tekton-robot added release-note-none Denotes a PR that doesnt merit a release note. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Apr 19, 2022
@mattmoor
Copy link
Member Author

One subtlety worth calling out: We always run logstream, but we need to name test resources using the helpers.ObjectNameForTest so that it can infer from the resource names, which tagged log lines from the controller to inline into each test's log context. That's why none of the changed lines mentioned logstream, but that's the net effect of the change 🤣

@mattmoor
Copy link
Member Author

cc @afrittoli @vdemeester

@abayer
Copy link
Contributor

abayer commented Apr 19, 2022

/lgtm

Is there a good reason not to just update all the e2e tests to use helpers.ObjectNameForTest? Assuming there isn’t, I’ll get a PR up to do that across the board.

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Apr 19, 2022
@mattmoor
Copy link
Member Author

@abayer That's what we do in Knative, I've just been chipping away as we hit flakes where I wish I had it. Doing it everywhere would be awesome 🤩

@abayer
Copy link
Contributor

abayer commented Apr 19, 2022

@mattmoor Consider it done!

EDIT: Ok, not done instantly, 'cos there's a lot of spaghetti to unravel, but I'll work on it. =)

@tekton-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: vdemeester

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

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 20, 2022
@tekton-robot tekton-robot merged commit 65899e1 into tektoncd:main Apr 20, 2022
@mattmoor mattmoor deleted the kaniko-logstream branch April 20, 2022 14:31
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. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm Indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesnt merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants