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

fix build uncorrect status #801

Merged
merged 1 commit into from
May 13, 2019
Merged

fix build uncorrect status #801

merged 1 commit into from
May 13, 2019

Conversation

zouyee
Copy link
Contributor

@zouyee zouyee commented Apr 26, 2019

Fixes knative/build#599

Proposed Changes

  • adjust object timestamp.

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

See the contribution guide
for more details.

Release Notes

NONE

@googlebot googlebot added the cla: yes Trying to make the CLA bot happy with ppl from different companies work on one commit label Apr 26, 2019
@tekton-robot tekton-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Apr 26, 2019
@abayer
Copy link
Contributor

abayer commented Apr 26, 2019

/ok-to-test

@tekton-robot tekton-robot removed the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Apr 26, 2019
@dlorenc
Copy link
Contributor

dlorenc commented May 3, 2019

Thanks for the PR! I left one comment about grammar in the logging message, otherwise this looks good to me. Would you also mind adding a bit more to the commit message explaining the change and how we get into this state?

@zouyee
Copy link
Contributor Author

zouyee commented May 8, 2019

@dlorenc got it.

@@ -167,6 +167,10 @@ func (c *Reconciler) Reconcile(ctx context.Context, key string) error {
pr := original.DeepCopy()
if !pr.HasStarted() {
pr.Status.InitializeConditions()
if pr.Status.StartTime.Sub(pr.CreationTimestamp.Time) < 0 {
c.Logger.Warnf("Now PipelineRun %s createTimestamp abnormal higher than startTime which create at %s, start at %s", pr.GetRunKey(), pr.CreationTimestamp, pr.Status.StartTime)
Copy link
Contributor

Choose a reason for hiding this comment

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

grammar nit: could you change this logging statement to something like:

PipelineRun creationTimestamp %s is after the pipelineRun started %s. Setting them equal.

@dlorenc
Copy link
Contributor

dlorenc commented May 8, 2019

@dlorenc got it.

Sorry, somehow I never sent the comment itself. Just sent!

Signed-off-by: Zou Nengren <[email protected]>
@tekton-robot tekton-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels May 9, 2019
@dlorenc
Copy link
Contributor

dlorenc commented May 13, 2019

/lgtm /approve

Thanks!

Copy link
Member

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

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

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label May 13, 2019
@tekton-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: vdemeester, zouyee

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 May 13, 2019
@tekton-robot tekton-robot merged commit 75d6dab into tektoncd:master May 13, 2019
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. cla: yes Trying to make the CLA bot happy with ppl from different companies work on one commit lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Build reported as a timeout when it actually succeeded
6 participants