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

Add docker build var to spoof git tag version #1001

Merged
merged 2 commits into from
Nov 12, 2024
Merged

Conversation

ml-evs
Copy link
Member

@ml-evs ml-evs commented Nov 12, 2024

Right now, if the version of datalab is being installed from a git submodule, or a worktree, it is impossible to set the API version. For the app, we can override this with the VUE_APP_GIT_VERSION. For the API, we have to use the SETUPTOOLS_SCM_PRETEND_SCM_VERSION. This PR passes that value through the build system to make it available when uv installs.

Copy link

codecov bot commented Nov 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.49%. Comparing base (2a624f8) to head (73d19ad).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1001   +/-   ##
=======================================
  Coverage   68.49%   68.49%           
=======================================
  Files          62       62           
  Lines        3955     3955           
=======================================
  Hits         2709     2709           
  Misses       1246     1246           

Copy link

cypress bot commented Nov 12, 2024

datalab    Run #2763

Run Properties:  status check passed Passed #2763  •  git commit 5fa3098445 ℹ️: Merge 4166c560a7f5035cef725b5c238033eb562b42b3 into 2a624f84f46c0747f2fce76e90dd...
Project datalab
Branch Review ml-evs/fix-fake-api-version
Run status status check passed Passed #2763
Run duration 06m 21s
Commit git commit 5fa3098445 ℹ️: Merge 4166c560a7f5035cef725b5c238033eb562b42b3 into 2a624f84f46c0747f2fce76e90dd...
Committer Matthew Evans
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 405
View all changes introduced in this branch ↗︎

@ml-evs
Copy link
Member Author

ml-evs commented Nov 12, 2024

I've tested this on yellowhammer, so will merge when the final tests pass again

@ml-evs ml-evs merged commit a968b54 into main Nov 12, 2024
17 checks passed
@ml-evs ml-evs deleted the ml-evs/fix-fake-api-version branch November 12, 2024 13:33
@ml-evs ml-evs changed the title Add docker build var to spoof API version Add docker build var to spoof git tag version Nov 12, 2024
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.

1 participant