Remove unsupported cacheTo export from devcontainer prebuild workflow#119
Merged
Conversation
Agent-Logs-Url: https://github.com/coder3101/protols/sessions/ef3cae0b-8bd1-4ab8-ab35-b4e440cae7c3 Co-authored-by: coder3101 <22212259+coder3101@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix failing GitHub Actions job in protols repository
Remove unsupported May 7, 2026
cacheTo export from devcontainer prebuild workflow
coder3101
approved these changes
May 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
Pre-build Dev Containerworkflow fails on GitHub-hosted runners becausedevcontainers/ci@v0.3is configured to export build cache (cacheTo) using a Docker driver that does not support cache export in this environment. This PR removes that unsupported export path while preserving existing image push gating behavior.Root issue addressed
cacheTotodevcontainers/ciin.github/workflows/prebuild_devcontainer.yml, eliminating thedocker buildx ... --cache-to ...failure mode.Behavior intentionally preserved
imageName,cacheFrom,push: filter,refFilterForPush, andeventFilterForPushunchanged.Scope
.devcontainer/devcontainer.jsonor application code.Original prompt
Fix the failing GitHub Actions job in repository
coder3101/protols.Context:
.github/workflows/prebuild_devcontainer.yml.devcontainer/devcontainer.jsonfad97eb5bad997453197cdcf58e48277970e6e39Observed failure from the job logs:
devcontainers/ci@v0.3and the underlying build command includesdocker buildx build --load --cache-to ghcr.io/coder3101/protols/devcontainer ...ERROR: failed to build: Cache export is not supported for the docker driver. Switch to a different driver, or turn on the containerd image store, and try again.Likely root cause:
cacheTo: ghcr.io/${{ github.repository }}/devcontainer, which causes the action to request cache export on a driver that does not support it in this environment.Requested fix:
.github/workflows/prebuild_devcontainer.yml.cacheToentirely. If appropriate, keepcacheFromonly if it remains supported and useful.Acceptance criteria:
push: filter,refFilterForPush, andeventFilterForPushbehavior.Please create a pull request with the fix.
The following is the prior conversation context from the user's chat exploration (may be truncated):
User: Please find a solution for this failing job. Use the logs, job definition, and any referenced files where the failure occurred. Keep your response focused on the solution and include code suggestions when appropriate.
Assistant: The failure is caused by the workflow exporting build cache with a Docker Buildx driver that does not support it.
Root cause
In the job logs, the failing command is:
and Docker reports:
That lines up with the workflow configuration in
.github/workflows/prebuild_devcontainer.yml, specifically:The problematic setting is
cacheTo. With the current runner/build setup, that cache export mode is unsupported.Solution
Remove
cacheTofrom the workflow. If needed, you can also removecacheFrom, butcacheTois the direct cause of the failure.Suggested patch
Update
.github/workflows/prebuild_devcontainer.ymlto:Optional conservative version
If you want to keep trying to pull cache but stop exporting it:
Why this should fix it
The devcontainer definition at
.devcontainer/devcontainer.jsonis not the source of this failure. The build fails before any issue in that file matters. The error is entirely in the workflow’s cache export configuration.Recommended change
Use this minimal edit:
- name: Pre-build and push uses: devcontainers/ci@v0.3 with: imageName: ghcr.io/${{ github.repository }}/devcontainer - cacheFrom: ghcr.io/${{ github.repository }}/devcontainer - cacheTo: ghcr.io/${{ github.repository }}/devcontainer push: filter refFilterForPush: refs/heads/main eventFilterForPush: push, workflow_dispatch ... </details> <!-- START COPILOT CODING AGENT SUFFIX --> *This pull request was created from Copilot chat.* >