Commit 5dc55a3
Locations V3: add import performance test and autocorrect counts (#14501)
* Locations V3: add import performance test
* feat: run performance tests in separate CI job with auto-update
- Tag performance test classes with @tag('performance')
- Exclude performance tests from main unit test suite
- Add keep-alive compose override for performance test CI
- Add performance-tests.yml workflow that auto-updates counts and commits
- Wire performance tests job into unit-tests.yml
* fix: correct artifact name for docker image download
* fix: remove manual migration step, update script handles it via --keepdb
* fix: set explicit celery broker URL in unit test compose overrides
Replace individual DD_CELERY_BROKER_* vars with a single explicit
DD_CELERY_BROKER_URL in both unit test compose overrides. This makes
the SQLite broker self-contained in the compose file rather than
relying on the entrypoint script to unset DD_CELERY_BROKER_URL.
Also update performance-tests.yml to reference
docker-compose.override.unit_tests_cicd.yml explicitly instead of
the docker-compose.override.yml symlink.
* perf: run full test class at once in update script instead of per-method
* fix: push to head branch by name in detached HEAD state
* fix: fetch and rebase before and after performance tests to handle remote ahead
* remove rebase
* remove rebase
* checkout correct ref
* chore: update performance test counts [skip ci]
* test with wrong counts
* chore: update performance test counts [skip ci]
* chore: update performance test counts [skip ci]
* fix(ci): remove [skip ci] so checks remain visible after auto-update commit
* fix(ci): pass head_ref to performance-tests, expand cancel workflow list
- Add head_ref input to performance-tests (workflow_call context bug fix)
- Pass head_ref from unit-tests so checkout/push use correct PR branch
- Fix cancel workflow typo: k8s-testing.yml -> k8s-tests.yml
- Add validate_docs_build, test-helm-chart, ruff, shellcheck to cancel list
* test wrong counts
* fix
* chore: update performance test counts
* fix(ci): re-trigger unit-tests after auto-update commit, guard against loop
GITHUB_TOKEN pushes do not trigger new workflow runs, so after auto-updating
performance test counts, dispatch unit-tests.yml manually to ensure the PR
gets fresh CI checks on the updated commit.
Add a loop guard: if the remote branch's last commit was already an auto-update
and counts still differ, abort with an error instead of looping indefinitely.
* text
* reduce timeout
* test incorrect count
* chore: update performance test counts
* fix(ci): use PAT for auto-update push to trigger pull_request:synchronize
GITHUB_TOKEN pushes are silently ignored by GitHub's workflow trigger
system, so CI checks never run on the auto-updated commit. Pushing via
a PAT (secrets.GH_TOKEN) fires a pull_request:synchronize event which
re-triggers unit-tests.yml naturally, without needing workflow_dispatch.
* test wrong count
* chore: update performance test counts
* fix(ci): fail on wrong performance test counts instead of auto-committing
Remove the auto-commit logic from the performance tests workflow.
If counts are out of date, fail the job and print the diff along with
the command to fix it locally. This avoids all the complexity around
GITHUB_TOKEN not triggering CI on bot pushes.
* fix counts
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>1 parent 510ddd5 commit 5dc55a3
12 files changed
Lines changed: 479 additions & 156 deletions
File tree
- .github/workflows
- docker
- dojo/base_models
- readme-docs
- scripts
- unittests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
24 | 29 | | |
25 | 30 | | |
26 | 31 | | |
| |||
45 | 50 | | |
46 | 51 | | |
47 | 52 | | |
| 53 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 24 | + | |
31 | 25 | | |
32 | 26 | | |
33 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 23 | + | |
30 | 24 | | |
31 | 25 | | |
32 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
94 | 94 | | |
95 | 95 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
56 | 59 | | |
57 | 60 | | |
58 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
58 | 76 | | |
59 | 77 | | |
60 | 78 | | |
| |||
0 commit comments