Skip to content

[IMP] #9787 Update depth for new branches#39

Merged
gfcapalbo merged 1 commit intomaster-depth-calculationfrom
master-depth-calculation-unbreakable
Sep 14, 2023
Merged

[IMP] #9787 Update depth for new branches#39
gfcapalbo merged 1 commit intomaster-depth-calculationfrom
master-depth-calculation-unbreakable

Conversation

@NL66278
Copy link
Contributor

@NL66278 NL66278 commented Sep 13, 2023

Also do not break on brand new remotes.

Also do not break on brand new remotes.
return int(mindepth)
except Exception:
# Should log/print some error here.
return 1024
Copy link
Contributor

Choose a reason for hiding this comment

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

@NL66278 why return 1024, if no mindepth was found this is an error that must be stopping or at least skipping.
THis would mean that the two branches have no history in common.
It used to return nothing on non-existing branches....now with your fetch command it should not happen anymore.
shouldn't we just : return error , log it and skip?
If error occurs we will have a reason to look at logs and fix the case this might happen.

I will merge now, but change this detail on future commit.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The more likely cause is the repo not having been fetched before. This will allow the build to continue. Then on a new iteration, the repo will have been fetched and the depth will be adjusted to what is really needed.

@gfcapalbo gfcapalbo merged commit 48e4e92 into master-depth-calculation Sep 14, 2023
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