Skip to content

Flaky test TestScheduleConcurrency #37446

@silverwind

Description

@silverwind

https://github.com/go-gitea/gitea/actions/runs/24971277825/job/73114689583

=== TestScheduleConcurrency (tests/integration/actions_concurrency_test.go:1122)
--- FAIL: TestScheduleConcurrency (3.07s)
    testlogger.go:62: 2026/04/27 00:50:36 modules/storage/local.go:48:NewLocalStorage() [I] Creating new Local Storage at /home/runner/work/gitea/gitea/tests/gitea-lfs-meta
    testlogger.go:62: 2026/04/27 00:50:36 HTTPRequest [I] router: completed POST  for test-mock:12345, 303 See Other in 5.2ms @ auth/auth.go:284(auth.SignInPost)
    testlogger.go:62: 2026/04/27 00:50:36 HTTPRequest [I] router: completed POST  for test-mock:12345, 303 See Other in 6.0ms @ setting/applications.go:36(setting.ApplicationsPost)
    testlogger.go:62: 2026/04/27 00:50:36 .../actions/notifier_helper.go:165:notify() [W] Ref of event "repository" is empty, will fall back to the default branch
    testlogger.go:62: 2026/04/27 00:50:36 HTTPRequest [I] router: completed POST  for test-mock:12345, 201 Created in 544.1ms @ repo/repo.go:292(repo.Create)
    testlogger.go:62: 2026/04/27 00:50:36 HTTPRequest [I] router: completed POST  for test-mock:12345, 303 See Other in 3.5ms @ auth/auth.go:284(auth.SignInPost)
    testlogger.go:62: 2026/04/27 00:50:36 HTTPRequest [I] router: completed POST  for test-mock:12345, 303 See Other in 5.3ms @ setting/applications.go:36(setting.ApplicationsPost)
    testlogger.go:62: 2026/04/27 00:50:36 HTTPRequest [I] router: completed POST  for test-mock:12345, 303 See Other in 3.3ms @ auth/auth.go:284(auth.SignInPost)
    testlogger.go:62: 2026/04/27 00:50:36 HTTPRequest [I] router: completed POST  for test-mock:12345, 303 See Other in 5.1ms @ setting/applications.go:36(setting.ApplicationsPost)
    testlogger.go:62: 2026/04/27 00:50:36 HTTPRequest [I] router: completed POST  for test-mock:12345, 200 OK in 7.8ms @ <autogenerated>:1(actions.API.CreateRegistrationToken-fm)
    testlogger.go:62: 2026/04/27 00:50:36 HTTPRequest [I] router: completed POST /api/actions/ping.v1.PingService/Ping for 127.0.0.1:47640, 200 OK in 0.1ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm)
    testlogger.go:62: 2026/04/27 00:50:36 HTTPRequest [I] router: completed POST /api/actions/runner.v1.RunnerService/Register for 127.0.0.1:47640, 200 OK in 6.1ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm)
    testlogger.go:62: 2026/04/27 00:50:36 HTTPRequest [I] router: completed POST /api/internal/hook/pre-receive/user2/actions-concurrency for 127.0.0.1:0, 200 OK in 5.1ms @ private/hook_pre_receive.go:109(private.HookPreReceive)
    testlogger.go:62: 2026/04/27 00:50:37 HTTPRequest [I] router: completed POST /api/internal/hook/post-receive/user2/actions-concurrency for 127.0.0.1:0, 200 OK in 184.7ms @ private/hook_post_receive.go:33(private.HookPostReceive)
    testlogger.go:62: 2026/04/27 00:50:37 HTTPRequest [I] router: completed POST  for test-mock:12345, 201 Created in 393.6ms @ repo/file.go:439(repo.CreateFile)
    actions_runner_test.go:103: 
        	Error Trace:	/home/runner/work/gitea/gitea/tests/integration/actions_runner_test.go:103
        	            				/home/runner/work/gitea/gitea/tests/integration/actions_concurrency_test.go:1167
        	            				/home/runner/work/gitea/gitea/tests/integration/git_helper_for_declarative_test.go:134
        	            				/home/runner/work/gitea/gitea/tests/integration/actions_concurrency_test.go:1122
        	Error:      	Expected nil, but got: &runnerv1.Task{state:impl.MessageState{NoUnkeyedLiterals:pragma.NoUnkeyedLiterals{}, DoNotCompare:pragma.DoNotCompare{}, DoNotCopy:pragma.DoNotCopy{}, atomicMessageInfo:(*impl.MessageInfo)(nil)}, sizeCache:0, unknownFields:[]uint8(nil), Id:93, WorkflowPayload:[]uint8{0x6e, 0x61, 0x6d, 0x65, 0x3a, 0x20, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x2d, 0x63, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0xa, 0x22, 0x6f, 0x6e, 0x22, 0x3a, 0xa, 0x20, 0x20, 0x20, 0x20, 0x70, 0x75, 0x73, 0x68, 0x3a, 0xa, 0x20, 0x20, 0x20, 0x20, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x3a, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x2d, 0x20, 0x63, 0x72, 0x6f, 0x6e, 0x3a, 0x20, 0x27, 0x40, 0x65, 0x76, 0x65, 0x72, 0x79, 0x20, 0x31, 0x6d, 0x27, 0xa, 0x6a, 0x6f, 0x62, 0x73, 0x3a, 0xa, 0x20, 0x20, 0x20, 0x20, 0x6a, 0x6f, 0x62, 0x3a, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x3a, 0x20, 0x6a, 0x6f, 0x62, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x72, 0x75, 0x6e, 0x73, 0x2d, 0x6f, 0x6e, 0x3a, 0x20, 0x75, 0x62, 0x75, 0x6e, 0x74, 0x75, 0x2d, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x73, 0x74, 0x65, 0x70, 0x73, 0x3a, 0xa, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x2d, 0x20, 0x72, 0x75, 0x6e, 0x3a, 0x20, 0x65, 0x63, 0x68, 0x6f, 0x20, 0x27, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x20, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x27, 0xa}, Context:(*structpb.Struct)(0x24c5c244a480), Secrets:map[string]string{"GITEA_TOKEN":"92b2d57831c1a6e2dfdf1a33f0fba5cfb3d578c9", "GITHUB_TOKEN":"92b2d57831c1a6e2dfdf1a33f0fba5cfb3d578c9"}, Machine:"", Needs:map[string]*runnerv1.TaskNeed(nil), Vars:map[string]string(nil)}
        	Test:       	TestScheduleConcurrency
        	Messages:   	a task is fetched
    testlogger.go:62: 2026/04/27 00:50:38 services/actions/cleanup.go:170:CleanupEphemeralRunnersByPickedTaskOfRepo() [I] Removed 0 runners
    testlogger.go:62: 2026/04/27 00:50:38 .../repository/delete.go:363:DeleteRepositoryDirectly() [E] remove log file "user2/actions-concurrency/5d/93.log.zst": dbfs.Remove "actions_log/user2/actions-concurrency/5d/93.log.zst": file does not exist
    testlogger.go:62: 2026/04/27 00:50:38 .../repository/delete.go:363:DeleteRepositoryDirectly() [E] remove log file "user2/actions-concurrency/5c/92.log.zst": dbfs.Remove "actions_log/user2/actions-concurrency/5c/92.log.zst": file does not exist
    testlogger.go:62: 2026/04/27 00:50:38 HTTPRequest [I] router: completed DELETE  for test-mock:12345, 204 No Content in 36.8ms @ repo/repo.go:1073(repo.Delete)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions