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

Remove /lifecycle symlink on created builders #763

Merged
merged 4 commits into from
Jul 27, 2020

Conversation

dwillist
Copy link
Contributor

Summary

  • Remove code to create obsolete /lifecycle symlink in builders

  • Small fix to run image mirror tests to disable parallel test execution.

Before

Directory structure of builders:

/
├── bin
├── ...
├── cnb
├── ...
└── lifecycle

After

Directory structure of builders:

/
├── bin
├── ...
├── cnb
└── ...

Documentation

No documentation needed

Related

Resolves #460

@dwillist dwillist requested a review from a team as a code owner July 23, 2020 17:58
@codecov
Copy link

codecov bot commented Jul 23, 2020

Codecov Report

Merging #763 into main will increase coverage by 0.02%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #763      +/-   ##
==========================================
+ Coverage   73.52%   73.53%   +0.02%     
==========================================
  Files          75       75              
  Lines        5112     5103       -9     
==========================================
- Hits         3758     3752       -6     
+ Misses       1039     1037       -2     
+ Partials      315      314       -1     
Flag Coverage Δ
#os_linux 76.02% <ø> (+0.01%) ⬆️
#os_macos 71.89% <ø> (-<0.01%) ⬇️
#os_windows 71.88% <ø> (+0.01%) ⬆️
#unit 73.53% <ø> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

dwillist added 3 commits July 23, 2020 14:50
- reduces flakes that result from gouroutines sharing environment variables

Signed-off-by: dwillist <[email protected]>
@dwillist dwillist force-pushed the 460-remove-symlink branch from 0d82f12 to 5b67313 Compare July 23, 2020 18:50
@@ -18,7 +18,7 @@ import (
)

func TestSetRunImageMirrorsCommand(t *testing.T) {
spec.Run(t, "Commands", testSetRunImageMirrorsCommand, spec.Parallel(), spec.Report(report.Terminal{}))
spec.Run(t, "Commands", testSetRunImageMirrorsCommand, spec.Sequential(), spec.Report(report.Terminal{}))
Copy link
Member

Choose a reason for hiding this comment

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

I'm sort of confused by this as it seems we use spec.Parallel() more often than spec.Sequential(). What's the reason that this test needs to be run sequentially?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This test is uses environment variables during setup here and here, environment variables are shared by goroutines so running this test with any sort of parallelism will have race conditions. Using make unit runs unit tests sequentially by using a single goroutine configured here so they end up passing.

@jromero jromero added breaking-change Known to be non-backwards compatible type/enhancement Issue that requests a new feature or improvement. labels Jul 27, 2020
@jromero jromero added this to the 0.13.0 milestone Jul 27, 2020
Copy link
Member

@jromero jromero left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution! Keep it up!

@jromero jromero merged commit fd52b6a into buildpacks:main Jul 27, 2020
@jromero jromero changed the title 460 remove symlink Remove /lifecycle symlink on created builders Aug 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking-change Known to be non-backwards compatible type/enhancement Issue that requests a new feature or improvement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove lifecycle symlink from lifecycle layer creation logic
3 participants