-
Notifications
You must be signed in to change notification settings - Fork 5
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
No new release with message "object not found" #11
Comments
Hi, I just leave a comment here. Not sure this is the same issue but I maintain the gitea provider for go-semantic-release. I found when encountering an error approximately at this same point in the flow that the actual cause was an unknown author/committer. This meant that the user for the commit was empty. I put some extra messaging around this so my provider tells you the exact email it encountered this fault with. See
From there you can create a user in Gitlab which has that email assigned to allow the API to return a matching user object. You might see this more if you are importing/cloning repositories from outside your organisation example Github. Gitea is a different system altogether I know but the behavior seems the same so it might be relevant. |
Thanks a lot for taking your time and giving some feedback! What I also don't get is why there needs to be a matching user in Gitlab? From what I see, given that I "make it" use the func (repo *GitLabRepository) GetReleases(rawRe string) ([]*semrel.Release, error) {
if repo.useJobToken {
return repo.localRepo.GetReleases(rawRe)
} So I don't get why it fails when each commt HAS an author and a committer, just not necessarily someone existing in gitlab? I've even tried to reproduce it in a container locally and it just works... (I set |
FWIW I just retried with a personal access token and immediately works. So definitely only an issue when using the JOB_TOKEN! |
Nice,
Sorry, I don't use gitlab around anywhere. Just passing on feedback from
my experience making the gitea driver work.
Glad you got it sorted.
Regards
Aaron Guise
…On Sat, Jan 4, 2025 at 3:36 AM Samuel Hierholzer ***@***.***> wrote:
FWIW I just retried with a personal access token and immediately works. So
definitely an issue with the JOB_TOKEN!
—
Reply to this email directly, view it on GitHub
<#11 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA7Q3YBDCYJ2KFUB2LK4D7L2I2N65AVCNFSM6AAAAABUNQTPHSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRZGMYTKNRXHE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I have the following configuration in my
.gitlab-ci.yml
which AFAIU should use the$CI_JOB_TOKEN
:But all I get is the following output:
I pushed 2 commits, one called
feat: ...
directly to the main branch so it should generate a new version. (itRunning the same thing locally works (but isn't using
provider-gitlab
for obvious reasons).I tried
--provider git
which failed later on so I assume it's the gitlab provider causing issues?I also had a previous commit without a change right after the manually created tag
v1.0.0
which was onlyci:
and thus didn't create any change - which confusingly worked!:I'm not sure how to debug this any further. I can imagine it to work with a manually crafted
GITLAB_TOKEN
, but using theCI_JOB_TOKEN
would be much more feasible, especially now that any PAT expires after a year, which would be a big pain for the many repositories we maintain in the company. Therefore I'd like to debug this properly instead of having to create manual tokens everywhere (if that's even the issue).The text was updated successfully, but these errors were encountered: