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

Use fetch-depth 1024 instead of 0 #9715

Merged
merged 3 commits into from
Jan 13, 2025

Conversation

eivindjahren
Copy link
Contributor

@eivindjahren eivindjahren commented Jan 13, 2025

This is a bit of a hack that assumes that git describe is correct with the last 1024 commits to save time.

  • PR title captures the intent of the changes, and is fitting for release notes.
  • Added appropriate release note label
  • Commit history is consistent and clean, in line with the contribution guidelines.
  • Make sure unit tests pass locally after every commit (git rebase -i main --exec 'pytest tests/ert/unit_tests -n logical -m "not integration_test"')

When applicable

  • When there are user facing changes: Updated documentation
  • New behavior or changes to existing untested code: Ensured that unit tests are added (See Ground Rules).
  • Large PR: Prepare changes in small commits for more convenient review
  • Bug fix: Add regression test for the bug
  • Bug fix: Create Backport PR to latest release

@@ -23,7 +23,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe set fetch-tags to true?

Copy link
Contributor

Choose a reason for hiding this comment

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

Else you will get ert version 0.1

Copy link
Contributor Author

@eivindjahren eivindjahren Jan 13, 2025

Choose a reason for hiding this comment

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

Fixed by removing all together as this workflow does not depend on having the correct version.

@eivindjahren eivindjahren force-pushed the fix_fetch_depth branch 3 times, most recently from c41b959 to 7db248e Compare January 13, 2025 12:22
@eivindjahren eivindjahren added the release-notes:maintenance Automatically categorise as maintenance change in release notes label Jan 13, 2025
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.72%. Comparing base (4480295) to head (7db248e).
Report is 12 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9715      +/-   ##
==========================================
- Coverage   91.73%   91.72%   -0.01%     
==========================================
  Files         426      426              
  Lines       26542    26549       +7     
==========================================
+ Hits        24348    24353       +5     
- Misses       2194     2196       +2     
Flag Coverage Δ
cli-tests 39.78% <ø> (+<0.01%) ⬆️
everest-models-test 34.14% <ø> (+<0.01%) ⬆️
gui-tests 74.33% <ø> (-0.02%) ⬇️
integration-test 37.96% <ø> (-0.01%) ⬇️
performance-tests 51.57% <ø> (-0.02%) ⬇️
test 39.49% <ø> (-0.01%) ⬇️
unit-tests 74.20% <ø> (-0.03%) ⬇️

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

codspeed-hq bot commented Jan 13, 2025

CodSpeed Performance Report

Merging #9715 will not alter performance

Comparing eivindjahren:fix_fetch_depth (e26b1ce) with main (718fd50)

Summary

✅ 24 untouched benchmarks

This uses a bit of a hack for checking out with sub modules
where we assume the latest version tag is no more than
1024 commits ago.
Copy link
Contributor

@andreas-el andreas-el left a comment

Choose a reason for hiding this comment

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

Impressive enhancement this is. 🥇

@eivindjahren eivindjahren merged commit 7368dc8 into equinor:main Jan 13, 2025
36 checks passed
@eivindjahren eivindjahren deleted the fix_fetch_depth branch January 13, 2025 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-notes:maintenance Automatically categorise as maintenance change in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants