|
49 | 49 | - libs/payload-invocation/tests/test_codespaces_owner_source.py |
50 | 50 | - libs/payload-invocation/tests/test_budget_index_source.py |
51 | 51 | - plugins/agent-codespaces/scripts/install.sh |
| 52 | + - plugins/agent-codespaces/scripts/install.ps1 |
| 53 | + - plugins/agent-codespaces/scripts/windows-scheduled-task.ps1 |
| 54 | + - plugins/agent-codespaces/scripts/codespaces-owner.ps1 |
| 55 | + - plugins/agent-codespaces/scripts/bootstrap-uv.ps1 |
| 56 | + - plugins/agent-codespaces/scripts/bootstrap-capture.ps1 |
| 57 | + - plugins/agent-codespaces/scripts/bootstrap-capture.exe |
| 58 | + - plugins/agent-codespaces/tests/test_managed_owner_ingress_ps1.py |
| 59 | + - libs/payload-invocation/tests/test_codespaces_windows_owner_source.py |
52 | 60 | - plugins/agent-codespaces/scripts/codespaces-owner.sh |
53 | 61 | - plugins/agent-codespaces/scripts/bootstrap-uv.sh |
54 | 62 | - plugins/agent-codespaces/scripts/native_owned.sh |
@@ -739,21 +747,26 @@ jobs: |
739 | 747 | uv python install --no-bin --no-registry cpython@3.13.12 cpython@3.11.18 cpython@3.10.20 |
740 | 748 | if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } |
741 | 749 | "UV_PYTHON_INSTALL_DIR=$env:UV_PYTHON_INSTALL_DIR" >> $env:GITHUB_ENV |
742 | | - - name: Qualify managed Windows services, queries and both cold-reader hosts |
| 750 | + - name: Qualify managed Windows services, owner ingress and generated units |
743 | 751 | env: |
744 | 752 | PYTEST_ADDOPTS: "-x -vv --durations=12" |
745 | 753 | run: >- |
746 | 754 | python tools/run-plugin-tests.py payload-invocation |
747 | 755 | --test-file tests/test_dispatch_construction_source.py --allow-explicit-tiers |
748 | | - -k "managed_service_ingress or managed_service_packaged or managed_service_raw_snapshot or managed_supervisor_description or generated_description_preserves or native_coordinator_producer_to_stop or stable_entrypoint_releases or managed_service_query_tree or powershell_cold_readers or raw_powershell_cold_reader or (powershell_construction and not pwsh)" |
| 756 | + --test-file tests/test_codespaces_windows_owner_source.py |
| 757 | + --test-file tests/test_service_unit_source.py |
| 758 | + -k "test_codespaces_windows_owner_source.py or actual_unit_writer_is_accepted_by_daemon_admission or |
| 759 | + managed_service_ingress or managed_service_packaged or managed_service_raw_snapshot or managed_supervisor_description or generated_description_preserves or native_coordinator_producer_to_stop or stable_entrypoint_releases or managed_service_query_tree or powershell_cold_readers or raw_powershell_cold_reader or (powershell_construction and not pwsh)" |
749 | 760 | --junit-dir qualification-evidence/dispatch-managed-services |
750 | 761 | - name: Require all forty-three service, wheel, snapshot, description, producer and stable-entrypoint controls |
751 | 762 | run: >- |
752 | 763 | python -c "import json; from pathlib import Path; import xml.etree.ElementTree as ET; |
753 | 764 | roots=[ET.parse(p) for p in Path('qualification-evidence/dispatch-managed-services').rglob('*.xml')]; |
754 | 765 | all_cases=[c for root in roots for c in root.iter('testcase')]; |
755 | | - assert len(all_cases)==81; |
756 | | - cases=[c for c in all_cases if 'managed_service_query_tree' not in c.attrib['name'] |
| 766 | + assert len(all_cases)==117; |
| 767 | + dispatch=[c for c in all_cases if c.attrib['classname'].endswith('test_dispatch_construction_source')]; |
| 768 | + assert len(dispatch)==81; |
| 769 | + cases=[c for c in dispatch if 'managed_service_query_tree' not in c.attrib['name'] |
757 | 770 | and 'powershell_cold_readers' not in c.attrib['name'] and 'raw_powershell_cold_reader' not in c.attrib['name'] |
758 | 771 | and 'powershell_construction' not in c.attrib['name']]; |
759 | 772 | assert len(cases)==43; |
@@ -798,19 +811,28 @@ jobs: |
798 | 811 | assert len(reports)==2 and {(r['shell'],r['entry']) for r in reports}== |
799 | 812 | {('powershell',e) for e in ('runtime-gate.ps1','bootstrap-check.ps1')}; |
800 | 813 | assert all(len(r['samples_seconds'])==2 and r['network']=='disabled' for r in reports)" |
801 | | - - name: Qualify native generated units with platform-valid complex roots |
802 | | - run: >- |
803 | | - python tools/run-plugin-tests.py payload-invocation |
804 | | - --test-file tests/test_service_unit_source.py --allow-explicit-tiers |
805 | | - -k actual_unit_writer_is_accepted_by_daemon_admission |
806 | | - --junit-dir qualification-evidence/windows-unit-writers |
807 | 814 | - name: Require all three native generated-unit controls on Windows |
808 | 815 | run: >- |
809 | 816 | python -c "from pathlib import Path; import xml.etree.ElementTree as ET; |
810 | | - cases=[c for p in Path('qualification-evidence/windows-unit-writers').rglob('*.xml') |
811 | | - for c in ET.parse(p).iter('testcase')]; |
| 817 | + cases=[c for p in Path('qualification-evidence/dispatch-managed-services').rglob('*.xml') |
| 818 | + for c in ET.parse(p).iter('testcase') if c.attrib['classname'].endswith('test_service_unit_source')]; |
812 | 819 | assert len(cases)==3; |
813 | 820 | assert all(c.find(t) is None for c in cases for t in ('skipped','error','failure'))" |
| 821 | + - name: Require all Windows owner controls and repeated offline selections |
| 822 | + run: >- |
| 823 | + python -c "import json; from pathlib import Path; import xml.etree.ElementTree as ET; |
| 824 | + roots=[ET.parse(p) for p in Path('qualification-evidence/dispatch-managed-services').rglob('*.xml')]; |
| 825 | + cases=[c for root in roots for c in root.iter('testcase') |
| 826 | + if c.attrib['classname'].endswith('test_codespaces_windows_owner_source')]; |
| 827 | + assert len(cases)==33; |
| 828 | + assert all(c.find(t) is None for c in cases for t in ('skipped','error','failure')); |
| 829 | + reports=[json.loads(p.attrib['value']) for root in roots for p in root.iter('property') |
| 830 | + if p.attrib['name']=='codespaces_windows_owner_ingress']; |
| 831 | + assert len(reports)==2 and {r['shell'] for r in reports}=={'powershell','pwsh'}; |
| 832 | + assert all(r['status']=='measured' and r['expected']==r['completed']==len(r['samples_seconds'])==4 |
| 833 | + and r['selector_calls']==4 and r['phases']==['cold','cold','warm','warm'] |
| 834 | + and all(v>0 for v in r['samples_seconds']) and r['network']=='no-downloads' |
| 835 | + and r['tail_qualification']=='insufficient samples' for r in reports)" |
814 | 836 | - name: Require all thirteen Core cold controls, refusals and measurements |
815 | 837 | run: >- |
816 | 838 | python -c "import json; from pathlib import Path; import xml.etree.ElementTree as ET; |
|
0 commit comments