feat: complete native BOM and Harness execution acceptance
This commit is contained in:
1 parent
4f8fbd7806
commit
65438cb7e5
234 files changed
+24402
-865
No files matched your search
@@ -0,0 +1,24 @@
|
||||
"""Batch size must not select a different authorization or receipt path."""
|
||||
from dx_productivity.dsh.run_journal import RunJournal
|
||||
from dx_productivity.dsh.scheduling import ScheduleStore
|
||||
from dx_productivity.dsh.task_lifecycle import preflight
|
||||
from test_run_journal import project_service
|
||||
|
||||
|
||||
def test_preflight_journal_and_schedule_keep_all_twenty_one_tasks(project_service, tmp_path):
|
||||
service, store, data, *_ = project_service
|
||||
root = tmp_path / 'large-batch'
|
||||
for i in range(21):
|
||||
project = root / str(i) / 'board.prj'
|
||||
project.parent.mkdir(parents=True)
|
||||
project.write_text('KEY FrontEndSnapshot "DxD"\nKEY iCDBDir "database"\n')
|
||||
tasks = service.create_project_tasks(root)
|
||||
service.add_rule(tasks[0].task_id, 'OLD', 'NEW')
|
||||
ids = [task.task_id for task in tasks]
|
||||
report = preflight(service, ids)
|
||||
assert report['ready'] is True
|
||||
assert list(report['plan_hashes']) == ids
|
||||
run = RunJournal(data).begin('d' * 32, ids, report['plan_hashes'])
|
||||
assert run['task_ids'] == ids
|
||||
schedule = ScheduleStore(data).save({'task_ids': ids, 'not_before': '2026-11-11T00:00:00Z'}, report['plan_hashes'])
|
||||
assert schedule['task_ids'] == ids
|
||||
Reference in new issue
Block a user