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

🌱 mac setup steps #938

Merged
merged 1 commit into from
Jun 14, 2024
Merged

Conversation

grokspawn
Copy link
Contributor

Description

Reviewer Checklist

  • API Go Documentation
  • Tests: Unit Tests (and E2E Tests, if appropriate)
  • Comprehensive Commit Messages
  • Links to related GitHub Issue(s)

Signed-off-by: Jordan Keister <jordan@nimblewidget.com>
@grokspawn grokspawn requested a review from a team as a code owner June 14, 2024 14:24
Copy link

netlify bot commented Jun 14, 2024

Deploy Preview for olmv1 ready!

Name Link
🔨 Latest commit 60e3746
🔍 Latest deploy log https://app.netlify.com/sites/olmv1/deploys/666c52b4f85ce5000874a45b
😎 Deploy Preview https://deploy-preview-938--olmv1.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

codecov bot commented Jun 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.16%. Comparing base (edc91ad) to head (60e3746).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #938      +/-   ##
==========================================
- Coverage   79.34%   79.16%   -0.19%     
==========================================
  Files          16       16              
  Lines        1104     1104              
==========================================
- Hits          876      874       -2     
- Misses        158      159       +1     
- Partials       70       71       +1     
Flag Coverage Δ
e2e 57.60% <ø> (-0.55%) ⬇️
unit 53.71% <ø> (ø)

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.

Modify your login shell's `PATH` to prefer the new tools over those in the existing environment. This example should work either with `zsh` (in $HOME/.zshrc) or `bash` (in $HOME/.bashrc):

```sh
for bindir in `find $(brew --prefix)/opt -type d -follow -name gnubin -print`
Copy link
Member

@m1kola m1kola Jun 14, 2024

Choose a reason for hiding this comment

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

I normally try to avoid running commands in .zshrc because it can slow down creation of a new session significantly. Maybe it is not that big of a deal with brew --prefix and find, but I had this issue with npm.

If we can avoid this - that would be great. Here is my .zshrc:

# coreutils
PATH="/opt/homebrew/opt/coreutils/libexec/gnubin:$PATH"

# gnu-tar
PATH="/opt/homebrew/opt/gnu-tar/libexec/gnubin:$PATH"

Not sure if coreutils are necessary for OLMv1.

Copy link
Member

Choose a reason for hiding this comment

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

But we might still need to use brew --prefix. I think it it is different on Intel and ARM Macs unfortunately.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've been doing this for quite awhile never encountered new session timing issues, though I appreciate the concern. The additional advantage of the approach is that if we identify we need additional tooling, sourcing the resource file will automagically pick it up.

npm is known for sometimes performing package maintenance at awkward times, and I definitely wouldn't want to include a function in shell resources which invoked it. I see no harm in a targeted path-walk though.

As far as I know we only need bash, gnu-tar, and gsed, unless you can think of a reason that we need coreutils...

Copy link
Member

@m1kola m1kola Jun 14, 2024

Choose a reason for hiding this comment

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

find $(brew --prefix)/opt -type d -follow -name gnubin -print  0,01s user 0,10s system 96% cpu 0,112 total

Ok, it is not that bad. At least on my machine :)

Copy link
Member

@varshaprasad96 varshaprasad96 left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jun 14, 2024
@grokspawn grokspawn added this pull request to the merge queue Jun 14, 2024
Merged via the queue into operator-framework:main with commit f7795eb Jun 14, 2024
15 of 16 checks passed
@grokspawn grokspawn deleted the readme-mac-setup branch June 14, 2024 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants