Skip to content

Mark Dependency status as Unknown when the dependency object's generation is not equal#1926

Merged
knative-prow-robot merged 3 commits into
knative:masterfrom
capri-xiyue:master
Sep 19, 2019
Merged

Mark Dependency status as Unknown when the dependency object's generation is not equal#1926
knative-prow-robot merged 3 commits into
knative:masterfrom
capri-xiyue:master

Conversation

@capri-xiyue
Copy link
Copy Markdown
Contributor

Fixes #1911

Proposed Changes

  • Mark Dependency status as Unknown when the dependency object’s ObjectMetadata.Generation and Status.ObservedGeneration are not equal during the trigger reconcile process
  • Added unit tests

Release Note

None

…Metadata.Generation and Status.ObservedGeneration are not equal during the trigger reconcile process
@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label Sep 18, 2019
@knative-prow-robot knative-prow-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Sep 18, 2019
@capri-xiyue
Copy link
Copy Markdown
Contributor Author

/assign @Harwayne

Comment thread pkg/reconciler/trigger/trigger.go Outdated
logging.FromContext(ctx).Error("The ObjectMeta Generation of dependency is not equal to the observedGeneration of status",
zap.Any("ObjectMeta Generation of dependency", dependency.GetGeneration()),
zap.Any("ObservedGeneration of status", dependency.Status.ObservedGeneration))
t.Status.MarkDependencyUnknown("GenerationNotEqual", "The ObjectMeta Generation of dependency %q is not equal to the ObservedGeneration of status %q", dependency.GetGeneration(), dependency.Status.ObservedGeneration)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

👍

@matzew
Copy link
Copy Markdown
Member

matzew commented Sep 19, 2019

/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 19, 2019
Copy link
Copy Markdown
Contributor

@Harwayne Harwayne left a comment

Choose a reason for hiding this comment

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

Just a few small comments.

Comment thread pkg/reconciler/trigger/trigger.go Outdated
Comment thread pkg/reconciler/trigger/trigger.go Outdated
Comment thread pkg/reconciler/trigger/trigger.go Outdated
Comment thread pkg/reconciler/trigger/trigger.go Outdated
@knative-prow-robot knative-prow-robot removed the lgtm Indicates that a PR is ready to be merged. label Sep 19, 2019
@knative-metrics-robot
Copy link
Copy Markdown

The following is the coverage report on pkg/.
Say /test pull-knative-eventing-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/reconciler/trigger/trigger.go 84.8% 85.2% 0.4

Copy link
Copy Markdown
Contributor

@Harwayne Harwayne left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 19, 2019
@knative-prow-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: capri-xiyue, Harwayne

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details 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

@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 19, 2019
@knative-prow-robot knative-prow-robot merged commit 8b54bc6 into knative:master Sep 19, 2019
mgencur added a commit to openshift-knative/eventing that referenced this pull request Nov 14, 2022
Exporting too many traces may lead to test suite timeouts and the root
cause should be common and visible with fewer event traces.

Co-authored-by: Martin Gencur <mgencur@redhat.com>
mgencur added a commit to mgencur/eventing that referenced this pull request Nov 16, 2022
Exporting too many traces may lead to test suite timeouts and the root
cause should be common and visible with fewer event traces.

Co-authored-by: Martin Gencur <mgencur@redhat.com>
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 Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

6 participants