-
Notifications
You must be signed in to change notification settings - Fork 1
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
Do not (re)use tags to find PRs #29
Comments
Can we simply assign a new tag each time by appending a unique suffix? For example, M-staged-PR379-1, M-staged-PR379-2, ... or M-staged-PR379-t1, M-staged-PR379-t2, ...? I think it would be easier to adjust the code with it, avoiding vast architectural changes. |
I have considered that option (before suggesting to get rid of tags) and rejected it because:
We may disagree on the last item. I agree that it |
However, our usage of lightweight tags does not contradict the official 'git-tag' man page:
So we correctly use them as 'temporary objects', I assume. |
The notions of "tagging a temporary object" and "changing the tag value" are orthogonal. Yes, we had the right to tag staged commits. However, we should not have reused tag names, and (more importantly from architectural point of view) we should not have polluted the official git repository with our temporary housekeeping information. If Anubis had a cloned repository, it would be OK to tag staged commits there (and never push them to the official repository). However, we are trying to avoid maintaining a local database (or equivalent). |
From squid-cache/squid#379 (comment)
I doubt we can configure
it
. I suspect that the git command is generated internally by Semaphore CI.I agree that, in principle, any internal repository caching done by Semaphore CI should not affect our builds -- a cache should be invisible to its users, especially users that do not have enough control over caching. In other words, Semaphore CI is at fault here.
However, according to the Jenkins issue you have found, Anubis should not be using tags [the way it uses them now]. Git tags are not supposed to change, but Anubis changes them.
I propose to get rid of Anubis PR tags completely. IIRC, they are only required to tie the staged commit to the PR. Since any commit not at the tip of the auto branch is irrelevant (stale/etc.), we can ignore those as if they did not exist. And we can tie the tip of the auto branch to PR NNN by using the last
(#NNN)
entry in the commit title.Any objections or better ideas?
The text was updated successfully, but these errors were encountered: