-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Strange action errors in mirrored projects?! #32232
Comments
I see that are activated. But not for all mirror. And I didn't activate it. I have currently 319 mirrors with
How can I check in the DB which mirrors has activated actions? I don't know the structure and I didn't find other corresponding columns. |
@lunny ? |
I will take a look today |
@lunny I see more and more mirrors with ... |
I have no idea, maybe it's related to #32120 . @yp05327 @Zettat123 |
Do you mean that the "Actions" unit of some repositories are automatically enabled after upgrading to v1.22.3? If so, I think this issue is not related to #32120. Did you upgrade from v1.22.2 to v1.22.3? |
Yes. After upgrade from 1.22.2 to 1.22.3 I see And Actions are for the Mirrors activated. It makes no sense. |
Example I didn't activate the Actions for all the affected projects. And the red x is now after upgrade to 1.22.3. When I add new mirror, Actions are activated -> is this right? Was this activated in 1.22.2 too?
|
I compared 1.22.2 (older mirror status) and 1.22.3 instances for same mirrors. 1.22.2 -> actions tab is not activated, no red x visible |
Strange. I imported an existing mirror in 1.22.2 in other orga on the same gite instance. And the new mirror has activated actions tab. In the old mirror the actions tab is not activated. When I update the old mirror the actions stay disabled. What happens here? |
Yes. New repositories (including mirrors) created in versions after v1.22 will have "Actions" enabled by default. See #27482. However, I don't think repositories created before v1.22 will automatically enable "Actions" after upgrading. I'll do some testing to confirm. I've done my testing and can now confirm that mirror repositories created before v1.22 will not have "Actions" enabled after Gitea upgraded to v1.22. So I think repositories with "Actions" enabled should be created after v1.22.0 There is a proposal to disable "Actions" for mirror repositories by default. I support this idea. |
This is where I suspect a bug exists. But I can't find any evidence that Gitea forcibly enabled the "Actions" unit. |
@Zettat123 |
This https://github.com/auth0/go-auth0 is an mirror. And 1.22.3 was upgraded on 09.10.2024 And here othe mirror with activated action but wihout any errors Other mirror ... I don't know how many are affected. |
This is because the trigger of these 2 workflows are creating PR to main branch and workflow_dispatch (manually excute) ps: for @Zettat123, the workflow files: |
So IMO, actually, there's no bug and the only thing you need is #30350 |
I see. Actually, the "Actions" unit was enabled for all repositories, but only some of them had actions runs due to workflow triggers. |
Will the patch make it like it was before or does something still need to be fixed in the database? |
In another way, it is not difficult to implement a new options when migrating the repo. |
To batch disable the "Actions" unit of existing mirrors, users can use the API PATCH |
Doctor commands sounds good. I have ~20000 mirrors. How can I check in the DB how many mirrors are at the moment affeced? And when I disable Actions for some mirrors in the UI the red x and orange o stay. |
And today I see first system messages I missing here info to the project.
and a lot exceptions
|
Same #30244 |
Can I use this
to disable action temporary? And this
to cleanup all the action jobs? |
It is a global setting for all repos, if you do not need to use actions in this instance, you can disable it globally. Clean up only remove action job log, related data and artififacts, it will not delete those action jobs. |
Thx,
hm. Are you working on a solution to this problem? The failed action jobs are flooding my system messages view. |
For existing mirrors, no good solution from me. As it is related to ↑ It is for the action jobs And the commit status ( So, as a summary, I have no good idea now for completely solving it for these existing mirrors. |
Understand. Means I have fix it for ~20.000 mirrors by myself. Or I do
this with an script for all the mirrors? I this case I should send only has_actions = false as an json? Right? This will disable the action. And how can I than fix this ? |
Yes. You only need to set the fields that need to be changed. gitea/routers/api/v1/repo/repo.go Lines 1018 to 1027 in 9116665
|
@Zettat123 I did this for ~3500 mirrors. Looks good. And what should be removed in th database to remove this ? This is visible after I set has_actions = false. And click on the x or o show 404. |
I think these commit status can be removed manually from the database with
|
I have now a script which I run after I added some new mirrors. But for the next release there will be a fix in gitea? Means, when I import new mirror "Actions" will be deactivated by default?
Thx. I try this next weekend with an Gitea-DB backup. |
@lunny is there a fix in the next release that for new mirrors "Actions" will be not activated? |
Yes, I think there should be a PR to fix that but there is no ETA |
Description
After update to 1.22.3 I see many of errors
in many mirrored projects?!
And than I saw this
or
or
or
What was activated with 1.22.3 release? What happens here?
Gitea Version
1.22.3
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
2.47.0
Operating System
Ubuntu 22.04.3 LTS x86_64
How are you running Gitea?
gitea-1.22.3-linux-amd64
Database
PostgreSQL
The text was updated successfully, but these errors were encountered: