Repository navigation
fix(roadmap): Find a job block marker only as an HTML block - #6720
Conversation
|
The steps of the job:
|
|
Advisory pre-merge review (automated; a person decides). Recommendation: hold. One major regression stands: an unclosed code fence makes the job block invisible, so refine adds a new section on each round and the item never settles. Findings
Other items
Checks that ran
|
CommonMark reads all text after an open code fence or an open HTML block as part of that block. A job block marker there was no HTML block of its own, so refine added a second section on the next round and the item never read as unchanged. close_open_block in body_hash closes such a block on a line of its own. Refine and the alternatives check close their own text before the end marker and the text before their block. Each records the hash of the body that it writes, so the next round finds one block and reads the item as unchanged. The tests run three rounds of each writer with an open fence in the model text, an open fence of a person and an open pre block of a person. A refine test and a stage test cover a quoted marker pair and a start marker with no end marker. The alternatives test compares the block with a literal value.
CommonMark ends an HTML comment at the first line that holds "-->". A person can open a comment above a job block and not close it. The start marker is then the last line of that comment, so the read found no block. Refine then wrote a second section on each round, and the old section stayed visible. A marker now bounds a block also when it is the whole last line of a comment whose first "-->" ends the marker. Refine and the alternatives check use this rule through body_hash. Refine replaces its section and closes the comment of the person. The alternatives check replaces its block in place. A marker that a person quotes in a code span, a code block or a paragraph stays the text of the person. The three-round tests of each writer now also check the text before the start marker, with the close of the open block. The design, the proposal, the tasks and the specs state the comment rule. The long sentences are split.
94a668b to
201aa3c
Compare
|
Advisory re-review after the fix commit (automated; a person decides). Recommendation: merge after two minor fixes, M1 (the design text and the open-comment case) and M2 (the replay result in the body), because no blocker or major finding stands. Reviewed commit: Status of the original findings
Standing findingsM1. Minor.
M2. Minor. The PR body file
N1. Nit.
N2. Nit.
N3. Nit.
N4. Nit.
N5. Nit.
N6. Nit.
Notes for the push
Checks that ran
Follow-up commit 201aa3cThe commit fixes M1, M2, N1, N2, N3, N5 and N6. N4 stays as it is.
Checks at 201aa3c: 799 tests of the changed modules pass, the scoped |
|
Stage replay result for this pull request (automated; a person decides). The command
The two outputs are the same, line for line:
The change of |
🤖 I have created a release *beep* *boop* --- ## [0.192.1](v0.192.0...v0.192.1) (2026-11-22) ### Bug Fixes * **roadmap:** Find a job block marker only as an HTML block ([#6720](#6720)) ([9e3b092](9e3b092)) * **tests:** Exempt wait_until polls from the sleep budget ([#6737](#6737)) ([dafda4a](dafda4a)) --- 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>
The job block writers and the readers find their markers with a plain text search. A person who quotes the start marker and the end marker of a block in code spans therefore loses the text between them: the alternatives check of 2026-11-21 replaced a word of the body of #6613 and put its block inside a code span, and the readers remove the same text. The change finds a marker only as an HTML block of its own, adds a block at the end when the body holds none, and keeps the person's text (#6627). A writer closes a code fence or an HTML block that is open before a marker that it writes, and records the hash of the body that it writes, so the next round finds one block. A marker on the last line of a comment that a person leaves open bounds the block too.
Closes #6627
Change:
openspec/changes/archive/2026-11-22-6627-find-a-job-block-marker-only/