Commit cf54ef0
committed
fix(test): isolate containment fixtures from the Ubuntu runner pid
Why:
- GitHub Node tests on 7c9a093 failed in broker-core, not at the
30-minute cap. Test 159 expected an active-containment-requester
skip for fixture pid 2500. After public-surface the Ubuntu
test-runner pid can be 2500, so containment records
current-broker-process first.
Changed:
- Process controllers may inject currentPid. Fixtures use a synthetic
pid so hardcoded process tables cannot match the runner.
- The command-group requester test uses the live runner pid as the
requester so that collision cannot pass vacuously.
- Add coverage for the current-broker-process skip.
Verification:
- npm run agent:verify -- --profile spec-only --paths CHANGELOG.md --paths broker-core/containment.mjs --paths broker-core/test/broker-core.test.mjs --paths spec/build-and-test.md --session-dir task-sessions/ubuntu-ci-pid-collision
- npm run agent:verify -- --profile implementation --paths CHANGELOG.md --paths broker-core/containment.mjs --paths broker-core/test/broker-core.test.mjs --paths spec/build-and-test.md --session-dir task-sessions/ubuntu-ci-pid-collision
Affected:
- CHANGELOG.md
- broker-core/containment.mjs
- broker-core/test/broker-core.test.mjs
- spec/build-and-test.md
Refs:
- #19
- https://github.com/fiveonecode/simulator-broker/actions/runs/32717787296
Session:
- task-sessions/ubuntu-ci-pid-collision1 parent 7c9a093 commit cf54ef0
4 files changed
Lines changed: 89 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
30 | 33 | | |
31 | 34 | | |
32 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
960 | 960 | | |
961 | 961 | | |
962 | 962 | | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
963 | 971 | | |
964 | 972 | | |
965 | 973 | | |
| |||
1004 | 1012 | | |
1005 | 1013 | | |
1006 | 1014 | | |
| 1015 | + | |
1007 | 1016 | | |
1008 | 1017 | | |
1009 | 1018 | | |
| |||
1039 | 1048 | | |
1040 | 1049 | | |
1041 | 1050 | | |
1042 | | - | |
| 1051 | + | |
1043 | 1052 | | |
1044 | 1053 | | |
1045 | 1054 | | |
| |||
1095 | 1104 | | |
1096 | 1105 | | |
1097 | 1106 | | |
1098 | | - | |
| 1107 | + | |
1099 | 1108 | | |
1100 | 1109 | | |
1101 | 1110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
239 | 250 | | |
240 | 251 | | |
241 | 252 | | |
| |||
252 | 263 | | |
253 | 264 | | |
254 | 265 | | |
| 266 | + | |
255 | 267 | | |
256 | 268 | | |
257 | 269 | | |
| |||
6670 | 6682 | | |
6671 | 6683 | | |
6672 | 6684 | | |
| 6685 | + | |
| 6686 | + | |
| 6687 | + | |
| 6688 | + | |
| 6689 | + | |
| 6690 | + | |
| 6691 | + | |
| 6692 | + | |
| 6693 | + | |
| 6694 | + | |
| 6695 | + | |
| 6696 | + | |
| 6697 | + | |
| 6698 | + | |
| 6699 | + | |
| 6700 | + | |
| 6701 | + | |
| 6702 | + | |
| 6703 | + | |
| 6704 | + | |
| 6705 | + | |
| 6706 | + | |
| 6707 | + | |
| 6708 | + | |
| 6709 | + | |
| 6710 | + | |
| 6711 | + | |
| 6712 | + | |
| 6713 | + | |
| 6714 | + | |
| 6715 | + | |
| 6716 | + | |
| 6717 | + | |
| 6718 | + | |
| 6719 | + | |
| 6720 | + | |
| 6721 | + | |
| 6722 | + | |
| 6723 | + | |
| 6724 | + | |
| 6725 | + | |
| 6726 | + | |
| 6727 | + | |
| 6728 | + | |
| 6729 | + | |
| 6730 | + | |
| 6731 | + | |
| 6732 | + | |
| 6733 | + | |
| 6734 | + | |
| 6735 | + | |
| 6736 | + | |
| 6737 | + | |
| 6738 | + | |
| 6739 | + | |
6673 | 6740 | | |
6674 | 6741 | | |
6675 | 6742 | | |
6676 | 6743 | | |
6677 | 6744 | | |
6678 | 6745 | | |
6679 | | - | |
6680 | | - | |
| 6746 | + | |
6681 | 6747 | | |
| 6748 | + | |
6682 | 6749 | | |
6683 | 6750 | | |
6684 | 6751 | | |
| |||
6693 | 6760 | | |
6694 | 6761 | | |
6695 | 6762 | | |
6696 | | - | |
6697 | 6763 | | |
6698 | 6764 | | |
6699 | 6765 | | |
| |||
6707 | 6773 | | |
6708 | 6774 | | |
6709 | 6775 | | |
6710 | | - | |
6711 | 6776 | | |
6712 | 6777 | | |
6713 | 6778 | | |
6714 | 6779 | | |
6715 | 6780 | | |
6716 | | - | |
6717 | | - | |
6718 | | - | |
6719 | | - | |
| 6781 | + | |
| 6782 | + | |
6720 | 6783 | | |
6721 | 6784 | | |
6722 | 6785 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
80 | 83 | | |
81 | 84 | | |
82 | 85 | | |
| |||
0 commit comments