Skip to content

regression with buildkit 0.8.3 #399

Closed

Description

@aluzzardi

As reported by @TomChv, it appears there's a regression with buildkit 0.8.3.

9:35PM FTL system | failed to up environment: buildkit solve: TestECR.creds.secret: 2 errors in empty disjunction:
TestECR.creds.secret: conflicting values "XXX" and "XXX":
    /config/cue.mod/pkg/dagger.io/aws/ecr/ecr.cue:17:12
    /config/ecr.cue:32:9
TestECR.creds.secret: conflicting values string and bytes (mismatched types string and bytes):
    /config/cue.mod/pkg/dagger.io/aws/aws.cue:63:3
    /config/cue.mod/pkg/dagger.io/aws/ecr/ecr.cue:13:7
    /config/cue.mod/pkg/dagger.io/aws/ecr/ecr.cue:17:12
    /config/cue.mod/pkg/dagger.io/dagger/dagger.cue:19:2
    /config/cue.mod/pkg/dagger.io/dagger/dagger.cue:19:11
    /config/ecr.cue:32:9

Activity

  1. added
    kind/bug
    on Apr 30, 2021
  2. aluzzardi commented on May 4, 2021

    @aluzzardi
    ContributorAuthor

    I managed to trace the root cause: every pipeline that contains a cache mount will be re-executed when referred.

    Can be reproduced with the ECR test, creds.secret is a reference of creds.out and they end up with a different LLB digest:

    1:07PM DBG TestECR.creds.out | #13 Exec ["/bin/bash", "--noprofile", "--norc", "-eo", "pipefail", "/entrypoint.sh"]
    1:07PM DBG TestECR.creds.out | #13 sha256:e4fa59481d400f41efd9106694a9e461859f8b989a67ead7c542e8660f80a9a2
    1:07PM DBG TestECR.creds.out | #13 DONE 1.5s
    
    1:07PM DBG TestECR.creds.secret | #14 Exec ["/bin/bash", "--noprofile", "--norc", "-eo", "pipefail", "/entrypoint.sh"]
    1:07PM DBG TestECR.creds.secret | #14 sha256:f9b76ef95f9a71fd610e065bf378c8210538a095cec7efa0107d7b873a2ec433
    1:07PM DBG TestECR.creds.secret | #14 DONE 1.1s
    
  3. aluzzardi commented on May 4, 2021

    @aluzzardi
    ContributorAuthor

    This doesn't look like a buildkit bug -- actually, it looks like we were relying on a bug previously.

  4. TomChv commented on May 4, 2021

    @TomChv
    Member

    Yep, the v0.8.3 of buildkit fixed the bug that allowed dagger to works correctly.
    You can check that issue for more information.

  5. added this to the beta milestone on May 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions