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

intermittent cache? failures running ko apply #1174

Closed
bobcallaway opened this issue Nov 6, 2023 · 10 comments
Closed

intermittent cache? failures running ko apply #1174

bobcallaway opened this issue Nov 6, 2023 · 10 comments
Assignees

Comments

@bobcallaway
Copy link

Error: error processing import paths in "config/trillian/updatetree/200-updatetree-job.yaml": error resolving image references: error getting matching image from index: Image("sha256:22cda3953e236576e5d113fc6a9290b27e179fbe5937efb1fdc16d81ddfb6120"): open ~/ko/img/blobs/sha256/2a0679608f5a6374fbe886e22ef1dc4b5578165a97db9132a128c0aa92a72155: no such file or directory

Here's an example of where we've gotten a failure when using ko apply to a kind cluster within a GHA run. It is flaky, as I can re-run it and it may or may not succeed.

https://github.com/sigstore/scaffolding/actions/runs/6764519896/job/18404319467?pr=819

perhaps worth noting: we are setting KOCACHE in for this action, as well as attempting a restore via actions/cache

@jonjohnsonjr jonjohnsonjr self-assigned this Nov 6, 2023
@jonjohnsonjr
Copy link
Collaborator

This should be falling back to the registry, so I've messed something up here. If you add a -v flag to get verbose logs, it might help point out exactly what's wrong, but I'll see if I can figure it out either way.

@jonjohnsonjr
Copy link
Collaborator

Wild guess: #1175

@bobcallaway
Copy link
Author

@jonjohnsonjr
Copy link
Collaborator

Apologies for the laziness here, but can you add:

  with:
    version: tip

To your setup-ko to see if that was the issue? If not I'll try to get a local repro and actually debug it.

@bobcallaway
Copy link
Author

https://github.com/sigstore/scaffolding/actions/runs/6775027890/job/18414014648 still failing, though a slightly different error message

@bobcallaway
Copy link
Author

it did run clean on the first attempt though

@bobcallaway
Copy link
Author

friendly ping - any updates on this? It's failing pretty regularly on runs: https://github.com/sigstore/scaffolding/actions/runs/6817870310

@imjasonh
Copy link
Member

You seem to still be installing the latest release of ko, and not building from head to get Jon's fix: https://github.com/sigstore/scaffolding/actions/runs/6817870310/workflow#L76

    - uses: ko-build/setup-ko@ace48d793556083a76f1e3e6068850c1f4a369aa # v0.6
      with:
        version: tip

@bobcallaway
Copy link
Author

You seem to still be installing the latest release of ko, and not building from head to get Jon's fix: https://github.com/sigstore/scaffolding/actions/runs/6817870310/workflow#L76

    - uses: ko-build/setup-ko@ace48d793556083a76f1e3e6068850c1f4a369aa # v0.6
      with:
        version: tip

you're right, the link i gave this morning was not running from tip - however https://github.com/sigstore/scaffolding/actions/runs/6775027890/job/18414014648 is and it still fails :/

@bobcallaway
Copy link
Author

after upgrading to tip, i'm not seeing this anymore, so i'm cool if you want to close this as fixed. do you know when you'll cut the next release?

thanks @jonjohnsonjr for the patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants