Skip to content

Test flake in TestPolicyBasedRestrictionOfBuildCreateAndCloneByStrategy #5410

Closed

Description

@smarterclayton
I1026 20:07:52.886170   28086 controller.go:84] Updated all DeploymentConfigs for trigger on ImageStream integration/builderimage
I1026 20:07:52.888302   28086 image_change_controller.go:47] Build image change controller detected ImageStream change 
I1026 20:07:52.987682   28086 controller.go:84] Updated all DeploymentConfigs for trigger on ImageStream integration/builderimage
I1026 20:07:53.006215   28086 helper.go:376] UpdateTrackingTags: stream=integration/builderimage, updatedTag=latest, updatedImage.dockerImageReference=test/builderimage:latest, updatedImage.image=image-id
--- FAIL: TestPolicyBasedRestrictionOfBuildCreateAndCloneByStrategy-16 (7.14s)
    build_admission_test.go:171: Couldn't create ImageStreamMapping: imageStream "builderimage" cannot be updated: the object has been modified; please apply your changes to the latest version and try again

Activity

  1. added
    kind/test-flake
    on Oct 27, 2015
  2. assigned and unassigned on Oct 27, 2015
  3. deads2k commented on Oct 27, 2015

    @deads2k
    Contributor

    @csrwng This test looks like the admission control one for builds.

  4. deads2k commented on Oct 27, 2015

    @deads2k
    Contributor

    you could consider using patch instead of replace, it will retry on changes as long as they are non-conflicting changes.

  5. csrwng commented on Oct 27, 2015

    @csrwng
    Contributor

    @deads2k the test is not updating the ImageStream directly, it's doing so indirectly by trying to add the imagestreamtag... I guess I can add the retry logic in the test.

  6. deads2k commented on Oct 27, 2015

    @deads2k
    Contributor

    @deads2k the test is not updating the ImageStream directly, it's doing so indirectly by trying to add the imagestreamtag... I guess I can add the retry logic in the test.

    Should the imagestreammapping.REST be retrying a couple times for you or would that be incorrect? It seems like you'd be safe to retry as long as the update did not mutate anything related to your tag, right?

  7. smarterclayton commented on Oct 27, 2015

    @smarterclayton
    ContributorAuthor

    We added a retry in image stream import - maybe it was in the controller, not in ISM

  8. deads2k commented on Oct 28, 2015

    @deads2k
    Contributor

    looks like a dupe of #5421

  9. soltysh commented on Oct 29, 2015

    @soltysh
    Contributor

    #5421 was resolved with #5455 please close.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

component/buildkind/test-flakepriority/P2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions