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

Fix propagation of buildpacks working directory #4337

Merged
merged 1 commit into from Jun 17, 2020

Conversation

briandealwis
Copy link
Member

Description

I backed out a critical commit to change the working directory in #4326 that was masked by a different change to the CNB tests.

More deeply: debug works by examining the container image run configuration (specifically the entrypoint + command, environment). CNB images use a launcher process that retrieves the actual command from configuration files in the image; this information is also available as annotations on the image. The CNB debug support wraps the normal debug transformation process, providing an image run configuration information that was rewritten from the CNB information. It also needs to unwrap some of the changes. One aspect that was missed here was to unwrap the reported working directory.

@briandealwis
Copy link
Member Author

cc: @etanshaul @redborian

@codecov
Copy link

codecov bot commented Jun 17, 2020

Codecov Report

Merging #4337 into master will decrease coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4337      +/-   ##
==========================================
- Coverage   71.82%   71.81%   -0.02%     
==========================================
  Files         324      324              
  Lines       12474    12476       +2     
==========================================
  Hits         8960     8960              
- Misses       2947     2948       +1     
- Partials      567      568       +1     
Impacted Files Coverage Δ
pkg/skaffold/debug/cnb.go 92.59% <100.00%> (+0.28%) ⬆️
...affold/kubernetes/portforward/kubectl_forwarder.go 60.97% <0.00%> (-2.44%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 92667f1...f75ebe3. Read the comment docs.

@tejal29 tejal29 merged commit 59fb6ff into GoogleContainerTools:master Jun 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants