Repository navigation
fix(config): read each config file as YAML 1.2 - #4858
Conversation
Test recordAll runs are local, in the worktree of this branch. The required CI checks of this pull request are the merge gate.
The full gate, The Fail-to-pass
Live stepsNone. The census of the committed config inputs ( |
8c48586 to
85ec88c
Compare
|
Fix round for CI run 43112944745 (Tests & Coverage, shards 1 and 3). Cause: four tests added a second
Fix: the two test files now merge their keys into the section of the file through the Local record on the final code:
|
A settings save writes a config file with ruamel.yaml, which writes YAML 1.2. The readers used PyYAML, which reads YAML 1.1, so a bare off, on, yes, no or 12:30 that a save wrote changed type at the next load and stopped it. Each reader of a config file now reads it with the safe loader of ruamel.yaml. Refs #4481.
…cond key The YAML 1.2 read of a config file refuses a key that a mapping holds two times. Two test files added a second ai or qdrant key to the config file of the test, so the load stopped. They now merge their keys into the section of the file through the config fixture.
…gs load The read of ssh.key_prefix from a project config file caught only a YAML error. A tagged value that the YAML 1.2 loader cannot build, such as !!int <text>, raised ValueError with the value in its message and stopped the command. The read now catches the errors of the settings load, and its try block holds only the read and the parse.
c2797eb to
7fc3f07
Compare
|
Fix round for CI run 43122317180 (Tests & Coverage, the diff coverage step). Cause: diff coverage was 88%, under the limit of 90%. The Fix:
Local record on the final code:
The owner merged main into the branch while this round ran. The push replaced that merge with a rebase onto the same main, so the branch holds every commit of that merge. |
🤖 I have created a release *beep* *boop* --- ## [0.115.0](v0.114.1...v0.115.0) (2026-11-12) ### Features * **design:** add the design tokens and their build ([#4811](#4811)) ([db4b19a](db4b19a)) * **roadmap:** find symbol definitions with tree-sitter ([#4820](#4820)) ([3b3fddc](3b3fddc)) ### Bug Fixes * **ai:** the gateway group that answered decides the local label ([#4907](#4907)) ([0da637f](0da637f)) * **ci:** replay a changed gate check in fail-to-pass ([#4898](#4898)) ([59bfc57](59bfc57)) * **config:** read each config file as YAML 1.2 ([#4858](#4858)) ([c3130a3](c3130a3)) * **roadmap:** loosen the caps that turn a stage refusal into a loss ([#4869](#4869)) ([4492fc3](4492fc3)) * **roadmap:** refine reads a dependency named by title ([#4877](#4877)) ([2829f9c](2829f9c)) * **roadmap:** refine sends a judge refusal to an agent round ([#4874](#4874)) ([e4fc6a9](e4fc6a9)) * **tests:** refuse test writes under the real home ([#4857](#4857)) ([0f6ac1b](0f6ac1b)) * **tests:** the plain-Python helper test keeps PYTHONPATH ([#4914](#4914)) ([99c109d](99c109d)) ### Performance Improvements * **ci:** direct pytest runs wait for a gate slot ([#4901](#4901)) ([e80db62](e80db62)) * **roadmap:** status lane reads the snapshot, skips idle stops ([#4887](#4887)) ([f285cf8](f285cf8)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
A settings save writes a config file as YAML 1.2 (ruamel.yaml), but each reader read it with PyYAML as YAML 1.1. YAML 1.1 reads a bare
off,on,yesornoas a bool and12:30as 750. Sodevops config set roadmap.intake.jev offwrotejev: off, and the next settings load stopped.Each reader of a config file now uses
parse_config_yaml, the YAML 1.2 safe loader of ruamel.yaml: the settings load, the write record,devops config audit-keys, the ConfigMap template config and the SSH key prefix.load_yamlcatches the ruamel.yaml errors and has noerrorsparameter. A duplicate key now stops the load with the file, line and column. Only a baretrueorfalseis a bool. The documents state the YAML 1.2 read.Closes #4481
Change:
openspec/changes/archive/2026-11-11-4481-read-each-config-file-as-yaml/