Skip to content

chore: remove docker headers from cassettes - #5960

Draft
remyleone wants to merge 2 commits into
mainfrom
remove_docker_header
Draft

chore: remove docker headers from cassettes#5960
remyleone wants to merge 2 commits into
mainfrom
remove_docker_header

Conversation

@remyleone

Copy link
Copy Markdown
Member

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Relates OR Closes #0000

Release note for CHANGELOG:


Copilot AI lite review requested due to automatic review settings August 6, 2026 14:44
@remyleone
remyleone requested a review from a team as a code owner August 6, 2026 14:44
@remyleone
remyleone force-pushed the remove_docker_header branch from 3e33d6a to dbe03a4 Compare August 6, 2026 14:45
@github-actions github-actions Bot added the container Container issues, bugs and feature requests label Aug 6, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to reduce Docker-specific data in recorded VCR fixtures used by the container deploy integration tests, by updating the recorder sanitization and refreshing the affected golden/cassette files.

Changes:

  • Updated core/testing_recorder.go to strip X-Registry-Auth and to bypass recording/replaying some Docker (moby) traffic.
  • Refreshed container deploy cassettes (and corresponding golden outputs) with new recorded IDs/endpoints.
  • Updated multiple .golden fixtures with new “application available at …” URLs.

Reviewed changes

Copilot reviewed 7 out of 9 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
core/testing_recorder.go Adjusts cassette filtering/passthrough behavior to avoid persisting Docker auth/header data.
internal/namespaces/container/v1/testdata/test-deploy-simple.golden Updates expected deploy output URL.
internal/namespaces/container/v1/testdata/test-deploy-buildpack.golden Updates expected deploy output URL.
internal/namespaces/container/v1/testdata/test-deploy-build-args.golden Updates expected deploy output URL.
internal/namespaces/container/v1/testdata/test-deploy-app-name-deduced-from-path.golden Updates expected deploy output URL.
internal/namespaces/container/v1/testdata/test-deploy-build-args.cassette.yaml Refreshes recorded API interactions for the build-args deploy scenario.
internal/namespaces/container/v1/testdata/test-deploy-app-name-deduced-from-path.cassette.yaml Refreshes recorded API interactions for the “app name from path” deploy scenario.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread core/testing_recorder.go
Comment on lines 211 to +227
@@ -217,6 +222,10 @@ func getHTTPRecoder(t *testing.T, update bool) (client *http.Client, cleanup fun
}, nil
}

func ignoreMoby(req *http.Request) bool {
return strings.HasPrefix(req.UserAgent(), "moby")
}
Comment on lines +369 to +373
body: '{"id":"969298da-08bd-44d3-b157-ae2338bae826", "name":"cli-t-ctnr-deploy-ba",
"namespace_id":"fea71aef-9989-43f7-bb8e-640b69a84d08", "description":"", "status":"error",
"error_message":"Invalid Image architecture. Serverless Containers only support
the amd64 architecture, but the image was built for the following architectures:
arm64. Please rebuild the image for the correct architecture using the `--platform=linux/amd64`
Comment on lines +369 to +373
body: '{"id":"9eb4ff13-38d6-4090-9e9f-2fcd407bad50", "name":"app-cli-t-ctnr-deploy-fp",
"namespace_id":"839fc623-9dc2-4546-b0dc-255cc72c70d2", "description":"", "status":"error",
"error_message":"Invalid Image architecture. Serverless Containers only support
the amd64 architecture, but the image was built for the following architectures:
arm64. Please rebuild the image for the correct architecture using the `--platform=linux/amd64`
@remyleone
remyleone marked this pull request as draft August 7, 2026 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

container Container issues, bugs and feature requests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants