ci(molecule): harden the stale-container sweep and correct comments
The sweep now fails the step when a timestamp cannot be parsed or a container it removes is still there, while tolerating one another run's sweep removed first. Its 30-minute bound and the job's timeout point at each other, since a shorter bound would remove a live run's containers. The concurrency comments of Lint and Build now say that runs on one ref queue rather than cancel, and the scenarios' comment names the run script as what removes their containers. The workflow test checks the label filters of the sweep and cleanup steps by name. Assisted-by: Claude Code:claude-opus-5-5
This commit is contained in:
1 parent
96cb9246c6
commit
6c2e05c95a
21 files changed
+61
-66
No files matched your search
@@ -24,11 +24,11 @@ label_of() {
|
||||
esac
|
||||
}
|
||||
|
||||
# Removes the scenario's containers by the platform names in its molecule.yml, expanded as molecule
|
||||
# expands them (they carry ${KAMINO_RUN_ID}), in place of molecule's destroy, which the scenarios
|
||||
# leave out: its driver waits about 5.6 s per scenario for the deletion (about 84 s over 15), and
|
||||
# the whole destroy phase measured about 103 s a full run. The ci image has no docker CLI: python3
|
||||
# is the one molecule runs on, with molecule, PyYAML and the Docker SDK of molecule's Docker driver.
|
||||
# Removes the scenario's containers by the platform names in its molecule.yml, expanded by molecule's
|
||||
# interpolator, in place of molecule's destroy, which the scenarios leave out: its driver waits about
|
||||
# 5.6 s per scenario for the deletion (about 84 s over 15), and the whole destroy phase measured about
|
||||
# 103 s a full run. The ci image has no docker CLI: python3 is the one molecule runs on, with PyYAML
|
||||
# and the Docker SDK of molecule's Docker driver.
|
||||
remove_instances() {
|
||||
python3 -I - "$1/molecule.yml" <<'EOF'
|
||||
import os
|
||||
|
||||
Reference in new issue
Block a user