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

monodocs - gracefully handle case when external repo doesn't contain tags: use current commit #4598

Merged
merged 4 commits into from
Dec 14, 2023

Conversation

cosmicBboy
Copy link
Contributor

@cosmicBboy cosmicBboy commented Dec 14, 2023

This PR elegantly handles the case when an external repo (flytekit, flytesnacks, flytectl) does not have tags due to a cloning a copy of the repo with a depth of 0. This fixes a docs build issue caused by the fact that github actions checkout will fetch the latest commit (since fetch-depth: 0 by default), see: https://github.com/flyteorg/flytesnacks/actions/runs/7204216790/job/19625299915?pr=1315

@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Dec 14, 2023
Copy link

codecov bot commented Dec 14, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (6c84e46) 59.00% compared to head (efe3ad5) 59.00%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4598   +/-   ##
=======================================
  Coverage   59.00%   59.00%           
=======================================
  Files         621      621           
  Lines       52498    52498           
=======================================
+ Hits        30974    30975    +1     
+ Misses      19057    19056    -1     
  Partials     2467     2467           
Flag Coverage Δ
unittests 59.00% <ø> (+<0.01%) ⬆️

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.

@cosmicBboy cosmicBboy changed the title monodocs - add DOCS_DEV_BUILD to avoid checkout out latest tag monodocs - gracefully handle case when external repo doesn't contain tags: use current commit Dec 14, 2023
Signed-off-by: Niels Bantilan <[email protected]>
Signed-off-by: Niels Bantilan <[email protected]>
@thomasjpfan thomasjpfan enabled auto-merge (squash) December 14, 2023 15:57
@thomasjpfan thomasjpfan merged commit 76e373c into master Dec 14, 2023
45 checks passed
@thomasjpfan thomasjpfan deleted the monodocs-dev-build branch December 14, 2023 15:57
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm This PR has been approved by a maintainer size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants