Skip to content

🌱 mac setup steps - #938

Merged
grokspawn merged 1 commit into
operator-framework:mainfrom
grokspawn:readme-mac-setup
Jun 14, 2024
Merged

🌱 mac setup steps#938
grokspawn merged 1 commit into
operator-framework:mainfrom
grokspawn:readme-mac-setup

Conversation

@grokspawn

Copy link
Copy Markdown
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 ownerJune 14, 2024 14:24
@netlify

netlifyBot commented Jun 14, 2024

Copy link
Copy Markdown

Deploy Preview for olmv1 ready!

NameLink
🔨 Latest commit60e3746
🔍 Latest deploy loghttps://app.netlify.com/sites/olmv1/deploys/666c52b4f85ce5000874a45b
😎 Deploy Previewhttps://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.

@codecov

codecovBot commented Jun 14, 2024

Copy link
Copy Markdown

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 
FlagCoverage Δ
e2e57.60% <ø> (-0.55%)⬇️
unit53.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.

Comment threadREADME.md
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`

@m1kolam1kolaJun 14, 2024

Copy link
Copy Markdown
Member

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
Copy Markdown
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
Copy Markdown
ContributorAuthor

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...

@m1kolam1kolaJun 14, 2024

Copy link
Copy Markdown
Member

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 :)

@varshaprasad96varshaprasad96 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

/lgtm
/approve

@openshift-ciopenshift-ciBot 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 f7795ebJun 14, 2024
@grokspawn
grokspawn deleted the readme-mac-setup branch June 14, 2024 14:55
@skattojuskattoju mentioned this pull request Sep 25, 2024
4 tasks
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtmIndicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@grokspawn@m1kola@varshaprasad96