Skip to content

use a check for dir existence that doesn't set exit code 1 if the dir doesn't exist #29952

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

Merged
merged 8 commits into from
Jun 13, 2025

Conversation

jahzielv
Copy link
Contributor

Closes #27577

Checklist for submitter

If some of the following don't apply, delete the relevant line.

  • Changes file added for user-visible changes in changes/, orbit/changes/ or ee/fleetd-chrome/changes.
    See Changes files for more information.
  • Manual QA for all new/changed functionality

@jahzielv jahzielv requested a review from a team as a code owner June 12, 2025 03:44
@fleet-release fleet-release requested a review from eugkuo June 12, 2025 03:44
Copy link

codecov bot commented Jun 12, 2025

Codecov Report

Attention: Patch coverage is 33.33333% with 8 lines in your changes missing coverage. Please review.

Project coverage is 65.05%. Comparing base (6fe0206) to head (134185b).
Report is 23 commits behind head on main.

Files with missing lines Patch % Lines
ee/maintained-apps/ingesters/homebrew/scripts.go 33.33% 8 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #29952      +/-   ##
==========================================
+ Coverage   64.17%   65.05%   +0.87%     
==========================================
  Files        1861     1241     -620     
  Lines      181886   165290   -16596     
  Branches     5217        0    -5217     
==========================================
- Hits       116729   107522    -9207     
+ Misses      55972    48612    -7360     
+ Partials     9185     9156      -29     
Flag Coverage Δ
backend 65.05% <33.33%> (-0.08%) ⬇️
fleetd-chrome ?
frontend ?

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

if _, ok := s.pathsCreated[pathname]; !ok {
s.Writef("mkdir -p %s", pathname)
s.pathsCreated[pathname] = struct{}{}
}
s.Writef(`[ -d "%s" ] && /bin/ln -h -f -s -- "%s" "%s"`, pathname, source, target)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
s.Writef(`[ -d "%s" ] && /bin/ln -h -f -s -- "%s" "%s"`, pathname, source, target)
s.Writef(`/bin/ln -h -f -s -- "%s" "%s"`, pathname, source, target)

@jahzielv now that we make the dir ahead of time, we can indeed drop this, based on looking back at the last time this was changed, in #25901.

@jahzielv
Copy link
Contributor Author

test failures are unrelated

@jahzielv jahzielv removed request for eugkuo and lukeheath June 13, 2025 00:46
@jahzielv jahzielv removed the request for review from sharon-fdm June 13, 2025 00:46
Copy link
Member

@iansltx iansltx left a comment

Choose a reason for hiding this comment

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

LGTM; thanks for bearing with the changes here.

Probably should QA this on-branch /cc @jmwatts

@jahzielv
Copy link
Contributor Author

merging

@jahzielv jahzielv merged commit 15bdf03 into main Jun 13, 2025
38 of 39 checks passed
@jahzielv jahzielv deleted the 27577-docker-install branch June 13, 2025 14:26
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

Successfully merging this pull request may close these issues.

🪲Fleet maintained app Docker installs but reports as failed
2 participants