Skip to content

Make PingSource v1beta1 the stored version and add a migration tool#3951

Merged
knative-prow-robot merged 24 commits into
knative:masterfrom
aavarghese:pingmigration
Sep 2, 2020
Merged

Make PingSource v1beta1 the stored version and add a migration tool#3951
knative-prow-robot merged 24 commits into
knative:masterfrom
aavarghese:pingmigration

Conversation

@aavarghese
Copy link
Copy Markdown
Contributor

Signed-off-by: Ansu Varghese avarghese@us.ibm.com

#3886

Signed-off-by: Ansu Varghese <avarghese@us.ibm.com>
Signed-off-by: Ansu Varghese <avarghese@us.ibm.com>
@knative-prow-robot knative-prow-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Aug 27, 2020
@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label Aug 27, 2020
@knative-prow-robot knative-prow-robot added needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. area/test-and-release Test infrastructure, tests or release labels Aug 27, 2020
@knative-prow-robot
Copy link
Copy Markdown
Contributor

Hi @aavarghese. Thanks for your PR.

I'm waiting for a knative member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

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/test-infra repository.

Signed-off-by: Ansu Varghese <avarghese@us.ibm.com>
@knative-prow-robot knative-prow-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 27, 2020
Signed-off-by: Ansu Varghese <avarghese@us.ibm.com>
@lionelvillard
Copy link
Copy Markdown
Contributor

/ok-to-test

@knative-prow-robot knative-prow-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Aug 27, 2020
Comment thread config/pre-install/v0.18.0/pingsource.yaml Outdated
@knative-prow-robot knative-prow-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 29, 2020
Copy link
Copy Markdown
Member

@aliok aliok left a comment

Choose a reason for hiding this comment

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

Didn't see the WIP and added some comments.
Let me have another look later.

Comment thread config/core/resources/pingsource.yaml Outdated
Comment thread config/pre-install/v0.18.0/pingsource.yaml Outdated
Signed-off-by: Ansu Varghese <avarghese@us.ibm.com>
Signed-off-by: Ansu Varghese <avarghese@us.ibm.com>
@knative-prow-robot knative-prow-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 31, 2020
@aavarghese
Copy link
Copy Markdown
Contributor Author

/retest

Signed-off-by: Ansu Varghese <avarghese@us.ibm.com>
Signed-off-by: Ansu Varghese <avarghese@us.ibm.com>
Signed-off-by: Ansu Varghese <avarghese@us.ibm.com>
@knative-prow-robot knative-prow-robot removed the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Aug 31, 2020
Signed-off-by: Ansu Varghese <avarghese@us.ibm.com>
Signed-off-by: Ansu Varghese <avarghese@us.ibm.com>
Signed-off-by: Ansu Varghese <avarghese@us.ibm.com>
Signed-off-by: Ansu Varghese <avarghese@us.ibm.com>
Signed-off-by: Ansu Varghese <avarghese@us.ibm.com>
Copy link
Copy Markdown
Member

@mattmoor mattmoor left a comment

Choose a reason for hiding this comment

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

Produced via:
gofmt -s -w $(find -path './vendor' -prune -o -path './third_party' -prune -o -name '*.pb.go' -prune -o -type f -name '*.go' -print)
goimports -w $(find -name '*.go' | grep -v vendor | grep -v third_party | grep -v .pb.go | grep -v wire_gen.go)


Unable to apply comments to the following files:

  • pkg/reconciler/pingsource/resources/receive_adapter_test.go
  • pkg/reconciler/testing/pingsource.go

Signed-off-by: Ansu Varghese <avarghese@us.ibm.com>
@aavarghese
Copy link
Copy Markdown
Contributor Author

/retest

Signed-off-by: Ansu Varghese <avarghese@us.ibm.com>
Comment thread config/pre-install/v0.18.0/storage-version-migration.yaml
Comment thread test/conformance/main_test.go
Signed-off-by: Ansu Varghese <avarghese@us.ibm.com>
@aavarghese aavarghese changed the title [WIP] Make PingSource v1beta1 the stored version and add a migration tool Make PingSource v1beta1 the stored version and add a migration tool Sep 1, 2020
@knative-prow-robot knative-prow-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 1, 2020
@aliok
Copy link
Copy Markdown
Member

aliok commented Sep 1, 2020

/assign

Comment on lines -114 to -116
// The webhook does not allow for invalid schedules to be posted.
// TODO: remove MarkSchedule
source.Status.MarkSchedule()
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.

Why is this deleted? I don't have a lot of context, sorry if I am asking something silly.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@aliok For pingsource v1beta1 lifecycle, the PingSourceConditionValidSchedule
condition was removed, along with others (#3607). MarkSchedule() in v1alpha2 also has a comment // TODO: this is a bad method name, change it. . Don't know what the plan is here cc: @lionelvillard

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

yes this is a good change! The schedule is validated by the webhook so no need for a condition.

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.

All good, thanks

Signed-off-by: Ansu Varghese <avarghese@us.ibm.com>
@knative-metrics-robot
Copy link
Copy Markdown

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

File Old Coverage New Coverage Delta
pkg/reconciler/pingsource/pingsource.go 70.0% 69.4% -0.6

@knative-test-reporter-robot
Copy link
Copy Markdown

The following jobs failed:

Test name Triggers Retries
pull-knative-eventing-conformance-tests 0/3

Failed non-flaky tests preventing automatic retry of pull-knative-eventing-conformance-tests:

test/conformance.TestBrokerV1Beta1ControlPlane/MTChannelBasedBroker-eventing.knative.dev/v1beta1/Ready_Trigger_V1Beta1_includes_status.subscriber_Uri
test/conformance.TestBrokerV1Beta1ControlPlane/MTChannelBasedBroker-eventing.knative.dev/v1beta1
test/conformance.TestBrokerV1Beta1ControlPlane

@lionelvillard
Copy link
Copy Markdown
Contributor

/test pull-knative-eventing-conformance-tests

@aavarghese
Copy link
Copy Markdown
Contributor Author

Tests have all passed. Submitting for final reviews/approvals....

@lionelvillard
Copy link
Copy Markdown
Contributor

/approve

@aliok for LGTM

@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 1, 2020
Copy link
Copy Markdown
Member

@aliok aliok 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

Thanks!

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

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: aavarghese, aliok, lionelvillard

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

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. area/test-and-release Test infrastructure, tests or release cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants