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 issue 3945 #3946

Merged
merged 1 commit into from
Aug 27, 2020
Merged

fix issue 3945 #3946

merged 1 commit into from
Aug 27, 2020

Conversation

vaikas
Copy link
Contributor

@vaikas vaikas commented Aug 27, 2020

Fixes #3945

Proposed Changes

  • Check the length of the branches and if they change, realloc the array of BranchStatuses. Otherwise, if branches are added, panic happens.

Release Note

- 🐛 Fix bug
If you create a Parallel, then later add branches to it, caused a panic.

Docs

@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 the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Aug 27, 2020
@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: vaikas

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

@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 27, 2020
@lionelvillard
Copy link
Member

/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 27, 2020
@knative-test-reporter-robot

The following jobs failed:

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

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

test/e2e.TestSingleBinaryEventForChannelV1Beta1/InMemoryChannel-messaging.knative.dev/v1beta1
test/e2e.TestSingleBinaryEventForChannelV1Beta1

@vaikas
Copy link
Contributor Author

vaikas commented Aug 27, 2020

Failed with:

=== CONT  TestSingleBinaryEventForChannelV1Beta1/InMemoryChannel-messaging.knative.dev/v1beta1
    creation.go:153: Failed to create subscription "e2e-singleevent-subscription-binary": conversion webhook for messaging.knative.dev/v1, Kind=Subscription failed: Post https://eventing-webhook.knative-eventing-8eex0grbyp.svc:443/resource-conversion?timeout=30s: EOF
    creation.go:148: Creating v1beta1 subscription e2e-singleevent-subscription-binary for channel &TypeMeta{Kind:InMemoryChannel,APIVersion:messaging.knative.dev/v1beta1,}-e2e-singleevent-channel-binary
    creation.go:153: Failed to create subscription "e2e-singleevent-subscription-binary": subscriptions.messaging.knative.dev "e2e-singleevent-subscription-binary" already exists
    tracker.go:152: Waiting for all KResources to become ready
Failed to get /: name is required    operation.go:94: Failed to get all KResources ready failed waiting for {TypeMeta:{Kind:Subscription APIVersion:messaging.knative.dev/v1beta1} ObjectMeta:{Name: GenerateName: Namespace: SelfLink: UID: ResourceVersion: Generation:0 CreationTimestamp:0001-01-01 00:00:00 +0000 UTC DeletionTimestamp:<nil> DeletionGracePeriodSeconds:<nil> Labels:map[] Annotations:map[] OwnerReferences:[] Finalizers:[] ClusterName: ManagedFields:[]}} to become ready: name is required
    operation.go:115: Failed to get all test resources ready: failed waiting for {TypeMeta:{Kind:Subscription APIVersion:messaging.knative.dev/v1beta1} ObjectMeta:{Name: GenerateName: Namespace: SelfLink: UID: ResourceVersion: Generation:0 CreationTimestamp:0001-01-01 00:00:00 +0000 UTC DeletionTimestamp:<nil> DeletionGracePeriodSeconds:<nil> Labels:map[] Annotations:map[] OwnerReferences:[] Finalizers:[] ClusterName: ManagedFields:[]}} to become ready: name is required
        knative.dev/eventing/test/lib.(*Client).WaitForAllTestResourcesReadyOrFail
        	/home/prow/go/src/knative.dev/eventing/test/lib/operation.go:115
        knative.dev/eventing/test/e2e/helpers.SingleEventForChannelTestHelper.func1
        	/home/prow/go/src/knative.dev/eventing/test/e2e/helpers/channel_single_event_helper.go:94
        knative.dev/eventing/test/lib.(*ComponentsTestRunner).RunTests.func1
        	/home/prow/go/src/knative.dev/eventing/test/lib/test_runner.go:72
        testing.tRunner
        	/root/.gvm/gos/go1.14.6/src/testing/testing.go:1039
        runtime.goexit
        	/root/.gvm/gos/go1.14.6/src/runtime/asm_amd64.s:1373

Created #3949 to track that issue.

/test pull-knative-eventing-integration-tests

@knative-prow-robot knative-prow-robot merged commit 168fdcf into knative:master Aug 27, 2020
@vaikas vaikas deleted the issue-3945 branch August 27, 2020 21:30
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
Development

Successfully merging this pull request may close these issues.

Updating parallel by adding a branch causes a panic.
5 participants