Skip to content

🐛 Fix envtest --bin-dir#804

Merged
m1kola merged 1 commit intooperator-framework:mainfrom
m1kola:fix_envtest_bin_dir
Apr 30, 2024
Merged

🐛 Fix envtest --bin-dir#804
m1kola merged 1 commit intooperator-framework:mainfrom
m1kola:fix_envtest_bin_dir

Conversation

@m1kola
Copy link
Copy Markdown
Member

@m1kola m1kola commented Apr 30, 2024

Description

Optional --bin-dir was passed incorrectly.

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: Mikalai Radchuk <mradchuk@redhat.com>
@m1kola m1kola requested a review from a team as a code owner April 30, 2024 09:06
UNIT_TEST_DIRS=$(shell go list ./... | grep -v /test/)
test-unit: $(SETUP_ENVTEST) #HELP Run the unit tests
eval $$($(SETUP_ENVTEST) use -p env $(ENVTEST_VERSION)) $(setup_envtest_bin_dir_override) && go test -tags $(GO_BUILD_TAGS) -count=1 -short $(UNIT_TEST_DIRS) -coverprofile cover.out
eval $$($(SETUP_ENVTEST) use -p env $(ENVTEST_VERSION) $(SETUP_ENVTEST_BIN_DIR_OVERRIDE)) && go test -tags $(GO_BUILD_TAGS) -count=1 -short $(UNIT_TEST_DIRS) -coverprofile cover.out
Copy link
Copy Markdown
Member Author

@m1kola m1kola Apr 30, 2024

Choose a reason for hiding this comment

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

$(setup_envtest_bin_dir_override) was outside of eval:

eval $(/go/bin/setup-envtest-v0.0.0-20230606045100-e54088c8c7da use -p env 1.29.x) --bin-dir /tmp/envtest-binaries && # ...

@netlify
Copy link
Copy Markdown

netlify bot commented Apr 30, 2024

Deploy Preview for olmv1 ready!

Name Link
🔨 Latest commit 9520a20
🔍 Latest deploy log https://app.netlify.com/sites/olmv1/deploys/6630b49632a3490008970dae
😎 Deploy Preview https://deploy-preview-804--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
Copy link
Copy Markdown

codecov bot commented Apr 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.21%. Comparing base (32ed986) to head (9520a20).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #804   +/-   ##
=======================================
  Coverage   67.21%   67.21%           
=======================================
  Files          23       23           
  Lines        1467     1467           
=======================================
  Hits          986      986           
  Misses        415      415           
  Partials       66       66           
Flag Coverage Δ
e2e 45.53% <ø> (ø)
unit 61.34% <ø> (ø)

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.

Copy link
Copy Markdown
Contributor

@perdasilva perdasilva left a comment

Choose a reason for hiding this comment

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

lgtm

@m1kola m1kola added this pull request to the merge queue Apr 30, 2024
Merged via the queue into operator-framework:main with commit ce0114d Apr 30, 2024
@m1kola m1kola deleted the fix_envtest_bin_dir branch April 30, 2024 13:32
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.

2 participants