e9e6ad4e17
fix(test): resolve nil-pointer panic in TestCommandSide_ChangeUserHuman ( #11695 )
...
# Which Problems Are Solved
1. `nx run @zitadel/api:test-unit` panics in
`TestCommandSide_ChangeUserHuman` due to two test cases (added in
0261536 ) missing the required `loginPaths` field. Since the field type
is `func(*testing.T) LoginPaths`, its zero value is `nil`, and calling
it causes a SIGSEGV.
2. Three targets in `apps/api/project.json` (`test-unit`, `build`,
`build-linux`) were silently non-cacheable because NX does not merge
`cache: true` from `targetDefaults` when a project-level target
overrides other properties like `dependsOn` or `inputs`.
3. `TestServer_AuthorizeOrDenyDeviceAuthorization` integration test is
flaky — it uses hardcoded `5*time.Second` timeouts for `EventuallyWithT`
polling, while the rest of the file uses
`WaitForAndTickWithMaxDuration(ctx, time.Minute)`. Under CI load, 5
seconds is insufficient and the empty ID cascades into a validation
error.
# How the Problems Are Solved
**Test panic fix:**
- Added missing `loginPaths: expectLoginPathsNoCall` to both broken test
cases ("change human email verified (self-management), not allowed" and
"change human phone verified (self-management), not allowed").
**NX cache fix:**
- Added explicit `"cache": true` to `test-unit`, `build`, and
`build-linux` targets in `apps/api/project.json`.
- Verified with `pnpm nx show project @zitadel/api --json` that all
three targets now resolve with `cache: true`.
**Integration test flakiness fix:**
- Replaced all 6 hardcoded `assert.EventuallyWithT(t, ...,
5*time.Second, 100*time.Millisecond)` calls in
`TestServer_AuthorizeOrDenyDeviceAuthorization` with
`require.EventuallyWithT(t, ..., retryDuration, tick)` using
`integration.WaitForAndTickWithMaxDuration(CTXLoginClient,
time.Minute)`.
- Changed from `assert` (non-fatal) to `require` (fatal) so timeout
failures stop the test immediately instead of cascading with empty IDs.
# Additional Context
- The broken unit test landed on main because CI skips `lint_test_build`
on pushes to main (`if: github.ref != 'refs/heads/main'`). A follow-up
issue was created: #11696 .
- The integration test flakiness was missed by the previous fix in
#10752 .
---------
Co-authored-by: Copilot <[email protected] >
Co-authored-by: Livio Spring <[email protected] >
2026-02-26 05:47:01 +00:00
..
2025-01-29 10:29:00 +00:00
2023-12-08 15:30:55 +01:00
2024-05-04 11:55:57 +02:00
2024-07-31 14:42:12 +02:00
2025-12-29 13:35:53 +00:00
2024-07-31 14:42:12 +02:00
2025-12-29 13:35:53 +00:00
2025-12-29 13:35:53 +00:00
2025-12-29 13:35:53 +00:00
2025-12-29 13:35:53 +00:00
2025-12-29 13:35:53 +00:00
2026-02-25 06:33:28 +01:00
2026-02-25 06:33:28 +01:00
2023-12-08 15:30:55 +01:00
2025-03-26 17:08:13 +00:00
2025-07-15 13:38:00 +02:00
2025-07-15 13:38:00 +02:00
2024-11-04 10:44:51 +00:00
2026-02-13 13:06:56 +00:00
2026-02-25 06:33:28 +01:00
2025-02-26 16:06:50 +00:00
2024-09-26 09:14:33 +02:00
2024-09-26 09:14:33 +02:00
2024-08-28 05:33:20 +00:00
2024-08-28 05:33:20 +00:00
2022-12-01 13:31:46 +01:00
2024-09-11 08:24:00 +00:00
2024-09-11 08:24:00 +00:00
2024-09-11 08:24:00 +00:00
2022-04-26 23:01:45 +00:00
2025-02-25 07:33:13 +01:00
2026-02-05 10:51:09 +00:00
2025-07-15 13:38:00 +02:00
2024-09-11 10:53:55 +00:00
2022-04-26 23:01:45 +00:00
2025-10-28 13:23:54 +00:00
2025-10-21 11:18:21 +02:00
2025-10-28 13:23:54 +00:00
2025-10-28 13:23:54 +00:00
2025-10-28 13:23:54 +00:00
2025-06-18 13:24:39 +02:00
2025-06-18 13:24:39 +02:00
2025-06-18 13:24:39 +02:00
2022-04-26 23:01:45 +00:00
2022-10-17 19:19:15 +00:00
2026-02-19 06:06:30 +00:00
2026-02-19 06:06:30 +00:00
2026-02-19 06:06:30 +00:00
2023-12-08 15:30:55 +01:00
2025-08-27 09:07:13 +00:00
2025-08-27 09:07:13 +00:00
2024-05-13 16:01:50 +02:00
2024-04-03 10:43:43 +00:00
2024-08-28 05:33:20 +00:00
2026-02-10 20:25:39 +01:00
2024-04-03 10:43:43 +00:00
2024-08-12 22:32:01 +02:00
2024-06-17 12:47:38 +00:00
2023-10-19 12:19:10 +02:00
2024-08-12 22:32:01 +02:00
2026-02-10 20:25:39 +01:00
2023-10-19 12:19:10 +02:00
2024-11-22 17:25:28 +01:00
2026-02-10 20:25:39 +01:00
2023-10-19 15:21:31 +00:00
2026-01-26 14:52:15 +00:00
2026-01-26 14:52:15 +00:00
2026-02-05 10:51:09 +00:00
2026-02-05 10:51:09 +00:00
2026-02-02 09:47:56 +00:00
2026-02-13 13:06:56 +00:00
2024-04-03 10:43:43 +00:00
2023-12-08 15:30:55 +01:00
2026-02-10 20:25:39 +01:00
2024-04-03 10:43:43 +00:00
2023-12-08 15:30:55 +01:00
2026-02-10 20:25:39 +01:00
2025-08-27 09:07:13 +00:00
2024-04-05 09:35:49 +00:00
2023-12-08 15:30:55 +01:00
2026-02-10 20:25:39 +01:00
2025-08-27 09:07:13 +00:00
2025-08-27 09:07:13 +00:00
2025-07-04 18:12:59 +02:00
2025-07-04 18:12:59 +02:00
2026-02-10 20:25:39 +01:00
2024-04-11 09:16:10 +02:00
2022-04-26 23:01:45 +00:00
2024-08-12 22:32:01 +02:00
2023-12-08 15:30:55 +01:00
2026-02-10 20:25:39 +01:00
2025-09-08 13:58:14 +00:00
2026-02-10 20:25:39 +01:00
2023-10-26 05:54:09 +00:00
2024-08-12 22:32:01 +02:00
2026-02-10 20:25:39 +01:00
2022-04-26 23:01:45 +00:00
2023-10-19 12:19:10 +02:00
2024-04-03 10:43:43 +00:00
2024-08-12 22:32:01 +02:00
2026-02-10 20:25:39 +01:00
2024-04-03 10:43:43 +00:00
2024-04-03 10:43:43 +00:00
2026-02-10 20:25:39 +01:00
2023-01-25 09:49:41 +01:00
2024-08-12 22:32:01 +02:00
2026-02-10 20:25:39 +01:00
2024-04-03 10:43:43 +00:00
2024-08-12 22:32:01 +02:00
2026-02-10 20:25:39 +01:00
2024-04-03 10:43:43 +00:00
2024-08-12 22:32:01 +02:00
2026-02-10 20:25:39 +01:00
2024-04-10 09:14:55 +00:00
2024-08-12 22:32:01 +02:00
2026-02-10 20:25:39 +01:00
2024-05-13 16:01:50 +02:00
2024-08-12 22:32:01 +02:00
2026-02-10 20:25:39 +01:00
2024-03-20 10:18:46 +00:00
2024-02-28 10:21:11 +00:00
2025-02-26 16:06:50 +00:00
2025-02-26 16:06:50 +00:00
2025-04-02 16:53:06 +02:00
2023-10-19 12:19:10 +02:00
2024-08-12 22:32:01 +02:00
2023-12-08 15:30:55 +01:00
2026-01-27 15:11:56 +01:00
2026-02-23 06:06:33 +00:00
2025-12-17 12:01:09 +01:00
2026-02-23 06:06:33 +00:00
2024-07-31 18:00:38 +03:00
2026-02-23 06:06:33 +00:00
2022-04-26 23:01:45 +00:00
2024-08-14 14:18:14 +00:00
2025-06-26 19:17:45 +03:00
2024-01-17 10:16:48 +00:00
2024-01-17 10:16:48 +00:00
2024-08-12 22:32:01 +02:00
2024-01-17 10:16:48 +00:00
2024-10-31 15:57:17 +01:00
2024-10-31 15:57:17 +01:00
2026-02-12 08:44:34 +00:00
2022-04-26 23:01:45 +00:00
2022-10-07 09:44:28 +00:00
2024-10-28 08:29:34 +00:00
2026-01-26 14:52:15 +00:00
2026-01-26 14:52:15 +00:00
2026-02-13 13:06:56 +00:00
2022-04-26 23:01:45 +00:00
2024-05-16 07:07:56 +02:00
2026-02-05 10:51:09 +00:00
2026-02-05 10:51:09 +00:00
2022-04-26 23:01:45 +00:00
2024-08-12 22:32:01 +02:00
2024-06-19 12:56:33 +02:00
2024-05-13 16:01:50 +02:00
2022-04-26 23:01:45 +00:00
2024-08-28 05:33:20 +00:00
2024-06-19 12:56:33 +02:00
2022-04-26 23:01:45 +00:00
2024-08-12 22:32:01 +02:00
2024-06-19 12:56:33 +02:00
2024-11-28 17:09:00 +00:00
2026-02-13 13:06:56 +00:00
2026-01-05 14:14:01 +00:00
2022-04-26 23:01:45 +00:00
2024-08-12 22:32:01 +02:00
2024-11-14 14:04:39 +00:00
2024-04-03 10:43:43 +00:00
2024-08-12 22:32:01 +02:00
2024-06-19 12:56:33 +02:00
2024-04-03 10:43:43 +00:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2025-08-27 09:07:13 +00:00
2024-04-05 09:35:49 +00:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2025-08-27 09:07:13 +00:00
2025-08-27 09:07:13 +00:00
2022-04-26 23:01:45 +00:00
2025-07-04 18:12:59 +02:00
2026-02-10 20:25:39 +01:00
2022-09-20 14:32:09 +00:00
2026-01-12 11:16:19 +00:00
2026-01-05 14:14:01 +00:00
2025-07-04 18:12:59 +02:00
2023-12-08 15:30:55 +01:00
2025-07-29 15:56:21 +02:00
2025-07-29 15:56:21 +02:00
2024-04-03 10:43:43 +00:00
2024-08-12 22:32:01 +02:00
2026-02-10 20:25:39 +01:00
2024-04-10 09:14:55 +00:00
2024-04-10 09:14:55 +00:00
2024-06-19 12:56:33 +02:00
2022-11-30 17:01:17 +01:00
2022-04-26 23:01:45 +00:00
2024-04-03 10:43:43 +00:00
2024-08-12 22:32:01 +02:00
2024-06-19 12:56:33 +02:00
2024-04-03 10:43:43 +00:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2023-01-25 09:49:41 +01:00
2024-08-12 22:32:01 +02:00
2023-12-08 15:30:55 +01:00
2024-04-03 10:43:43 +00:00
2024-08-12 22:32:01 +02:00
2023-12-08 15:30:55 +01:00
2024-04-03 10:43:43 +00:00
2024-08-12 22:32:01 +02:00
2024-06-19 12:56:33 +02:00
2024-05-13 16:01:50 +02:00
2024-08-12 22:32:01 +02:00
2024-06-19 12:56:33 +02:00
2026-02-06 09:46:24 +00:00
2026-01-05 14:14:01 +00:00
2025-07-29 15:56:21 +02:00
2025-07-29 15:56:21 +02:00
2025-07-29 15:56:21 +02:00
2025-09-16 12:26:21 +00:00
2026-01-05 14:14:01 +00:00
2023-12-08 15:30:55 +01:00
2025-01-27 13:36:07 +01:00
2023-10-26 05:54:09 +00:00
2022-04-26 23:01:45 +00:00
2023-07-20 04:06:16 +00:00
2022-04-26 23:01:45 +00:00
2023-01-25 09:49:41 +01:00
2025-07-29 15:56:21 +02:00
2022-04-26 23:01:45 +00:00
2023-12-08 15:30:55 +01:00
2024-04-10 09:14:55 +00:00
2024-05-13 16:01:50 +02:00
2024-08-12 22:32:01 +02:00
2024-04-05 09:35:49 +00:00
2025-06-27 17:25:44 +02:00
2025-10-17 10:12:20 +02:00
2024-04-03 10:43:43 +00:00
2025-07-02 07:34:19 +00:00
2025-07-02 07:34:19 +00:00
2022-04-26 23:01:45 +00:00
2025-06-27 17:25:44 +02:00
2026-02-05 16:05:02 +01:00
2026-02-05 16:05:02 +01:00
2025-06-27 17:25:44 +02:00
2025-06-27 17:25:44 +02:00
2025-06-27 17:25:44 +02:00
2025-10-17 10:12:20 +02:00
2025-10-17 10:12:20 +02:00
2025-10-17 10:12:20 +02:00
2025-06-27 17:25:44 +02:00
2025-06-27 17:25:44 +02:00
2025-06-27 17:25:44 +02:00
2025-07-04 18:12:59 +02:00
2025-09-21 14:04:25 +00:00
2025-09-21 14:04:25 +00:00
2025-09-21 14:04:25 +00:00
2025-09-21 14:04:25 +00:00
2025-09-21 14:04:25 +00:00
2025-01-17 16:16:26 +01:00
2025-07-04 18:12:59 +02:00
2025-07-04 18:12:59 +02:00
2025-10-17 10:12:20 +02:00
2025-06-04 11:46:10 +00:00
2025-05-21 14:40:47 +02:00
2025-05-21 14:40:47 +02:00
2025-08-22 06:08:53 +00:00
2025-05-21 14:40:47 +02:00
2025-08-15 11:35:43 +02:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2023-10-19 12:19:10 +02:00
2023-09-15 16:58:45 +02:00
2024-08-12 22:32:01 +02:00
2023-12-08 15:30:55 +01:00
2025-06-04 07:17:23 +00:00
2023-12-05 11:12:01 +00:00
2024-08-12 22:32:01 +02:00
2024-04-08 08:15:44 +00:00
2025-03-26 17:08:13 +00:00
2025-07-15 13:38:00 +02:00
2025-07-15 13:38:00 +02:00
2024-12-19 11:11:40 +00:00
2025-07-15 16:03:47 +00:00
2025-07-15 16:03:47 +00:00
2025-11-24 06:44:48 +00:00
2025-11-24 06:44:48 +00:00
2025-10-29 10:07:35 +01:00
2025-10-29 10:07:35 +01:00
2025-11-24 06:44:48 +00:00
2026-02-19 06:06:30 +00:00
2024-05-30 22:08:48 +00:00
2023-12-08 15:30:55 +01:00
2025-11-24 06:44:48 +00:00
2025-09-08 11:00:04 +00:00
2025-09-08 11:00:04 +00:00
2025-09-08 11:00:04 +00:00
2026-01-27 15:11:56 +01:00
2026-01-27 15:11:56 +01:00
2025-03-24 06:03:24 +00:00
2026-02-05 10:51:09 +00:00
2026-02-05 10:51:09 +00:00
2026-02-05 10:51:09 +00:00
2026-01-26 14:52:15 +00:00
2024-01-02 14:26:31 +00:00
2024-05-16 07:07:56 +02:00
2023-12-08 15:30:55 +01:00
2024-06-19 12:56:33 +02:00
2022-04-26 23:01:45 +00:00
2025-09-21 14:04:25 +00:00
2025-09-03 14:39:18 +00:00
2025-09-03 14:39:18 +00:00
2024-04-03 10:43:43 +00:00
2022-04-26 23:01:45 +00:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2024-08-12 22:32:01 +02:00
2023-12-08 15:30:55 +01:00
2024-04-24 17:50:58 +02:00
2026-02-13 13:06:56 +00:00
2026-02-13 13:06:56 +00:00
2024-04-24 17:50:58 +02:00
2024-08-12 22:32:01 +02:00
2024-05-02 11:50:13 +02:00
2023-09-07 14:06:11 +00:00
2024-09-26 09:14:33 +02:00
2025-10-29 10:07:35 +01:00
2025-10-29 10:07:35 +01:00
2025-10-29 10:07:35 +01:00
2025-10-29 10:07:35 +01:00
2025-10-29 10:07:35 +01:00
2024-09-26 09:14:33 +02:00
2024-09-26 09:14:33 +02:00
2024-09-26 09:14:33 +02:00
2024-04-03 10:43:43 +00:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2025-11-24 06:44:48 +00:00
2025-11-24 06:44:48 +00:00
2025-11-24 06:44:48 +00:00
2025-11-24 06:44:48 +00:00
2024-04-03 10:43:43 +00:00
2024-08-12 22:32:01 +02:00
2024-05-16 07:07:56 +02:00
2026-02-13 13:06:56 +00:00
2023-08-11 15:36:18 +00:00
2025-09-16 12:26:21 +00:00
2026-02-13 13:06:56 +00:00
2023-08-04 11:35:36 +02:00
2024-08-14 13:04:26 +00:00
2025-07-04 18:12:59 +02:00
2024-04-03 10:43:43 +00:00
2024-08-12 22:32:01 +02:00
2025-06-04 07:17:23 +00:00
2025-09-05 09:54:34 +01:00
2025-08-19 15:22:34 +02:00
2025-08-19 15:22:34 +02:00
2025-07-29 15:56:21 +02:00
2025-07-29 15:56:21 +02:00
2022-07-06 14:09:49 +02:00
2022-11-30 17:01:17 +01:00
2026-01-12 11:16:19 +00:00
2025-09-16 12:26:21 +00:00
2025-01-14 15:44:41 +01:00
2023-12-08 15:30:55 +01:00
2023-12-08 15:30:55 +01:00
2024-04-03 10:43:43 +00:00
2024-08-12 22:32:01 +02:00
2025-06-04 07:17:23 +00:00
2025-03-25 07:01:29 +00:00
2024-08-28 19:46:45 +00:00
2024-09-17 08:27:48 +00:00
2025-10-28 13:23:54 +00:00
2026-02-13 13:06:56 +00:00
2026-02-13 13:06:56 +00:00
2026-02-26 05:47:01 +00:00
2026-02-25 06:34:17 +01:00
2025-07-24 21:09:48 +02:00
2026-02-20 12:34:07 +00:00
2026-02-20 12:34:07 +00:00
2026-02-19 05:05:19 +00:00
2026-02-19 05:05:19 +00:00
2026-02-13 13:06:56 +00:00
2026-02-06 09:46:24 +00:00
2026-02-13 13:06:56 +00:00
2026-02-13 13:06:56 +00:00
2026-02-13 13:06:56 +00:00
2026-02-13 13:06:56 +00:00
2024-09-26 09:14:33 +02:00
2025-09-16 12:26:21 +00:00
2025-10-28 13:23:54 +00:00
2024-05-14 09:20:31 +02:00
2024-05-07 05:38:26 +00:00
2024-07-31 18:00:38 +03:00
2024-05-07 05:38:26 +00:00
2025-07-29 15:56:21 +02:00
2025-10-28 13:23:54 +00:00
2024-09-25 13:31:31 +00:00
2024-09-25 13:31:31 +00:00
2024-09-26 09:14:33 +02:00
2024-09-26 09:14:33 +02:00
2024-09-26 09:14:33 +02:00
2024-09-26 09:14:33 +02:00
2024-09-26 09:14:33 +02:00
2026-02-13 13:06:56 +00:00
2024-08-14 14:18:14 +00:00
2025-04-02 16:53:06 +02:00
2025-04-02 16:53:06 +02:00