Skip to content

test: revert short-history p2 heading to h3 (corrects #598 misread)#600

Merged
joewiz merged 1 commit into
masterfrom
revert-shorthistory-h3
May 13, 2026
Merged

test: revert short-history p2 heading to h3 (corrects #598 misread)#600
joewiz merged 1 commit into
masterfrom
revert-shorthistory-h3

Conversation

@joewiz
Copy link
Copy Markdown
Member

@joewiz joewiz commented May 13, 2026

Summary

  • Revert tests/specs/departmenthistory/prod_shorthistory_titles.spec.js p2 level from h2 back to h3.
  • Fixes the 3.11.3 Jenkins regression: element ("#content-inner h2") still not existing after 10000ms.

Why

PR #598 changed p2's level pin from h3 to h2 based on a misread of the rendered HTML. I used a flat grep/awk over the whole response, which over-matched past #content-inner's closing tag and picked up <h2 class="tei-head7"> elements from the sibling <aside> sidebar.

Re-parsing both servers with proper HTML scope (balanced div matching via Python's HTMLParser) shows the same structure inside #content-inner on both:

<h3>Foundations of Foreign Affairs,
<h4>Contents

There is no <h2> inside #content-inner on either localhost (HSG_ENV=production build) or the prod-preview3 Jenkins target. That's why 3.11.3's Jenkins run failed — the new pin had nothing to match.

The original p2 Jenkins failure that motivated #598 was a cold-cache timing flake, already mitigated by the waitForExist wrapper added in 33b5890. The level: 'h3' was the correct pin all along.

Test plan

  • Local HSG_ENV=production build + redeploy + wdio … --spec tests/specs/departmenthistory/prod_shorthistory_titles.spec.js → 3 passing in 1.2s.
  • Jenkins hsg-prod-preview3 rerun after merge — should also pass.

🤖 Generated with Claude Code

PR #598 changed p2's level pin from h3 to h2 based on a misread of
the rendered HTML: I was using grep over the whole response and
mistakenly attributed <h2 class="tei-head7"> elements from the
sibling <aside> sidebar to #content-inner. A properly scoped HTML
parse of both localhost (HSG_ENV=production build) and the
prod-preview3 Jenkins target shows the same structure inside
#content-inner:

  <h3>Foundations of Foreign Affairs,
  <h4>Contents

There is no <h2> inside #content-inner, which is why 3.11.3's
Jenkins run failed with `#content-inner h2 still not existing after
10000ms` -- the new pin had nothing to match.

The original p2 Jenkins failure that motivated #598 was a
cold-cache timing flake, already mitigated by the waitForExist
wrapper added in 33b5890. Revert the level change.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@joewiz joewiz merged commit 08fd2e5 into master May 13, 2026
3 of 4 checks passed
@joewiz joewiz deleted the revert-shorthistory-h3 branch May 13, 2026 21:29
joewiz added a commit that referenced this pull request May 13, 2026
3.11.3 shipped with a broken test spec that caused Jenkins to fail on
the prod-preview3 target. PR #600 reverted that spec but its sole
commit was test:, which doesn't trigger semantic-release.

The hsg-publish deployment system can only deploy released versions,
so cut 3.11.4 with this empty fix: commit to make the corrected
master available downstream. The .xar artifact is byte-identical to
3.11.3 (test files are not packaged); only the test spec on master
has changed.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@joewiz
Copy link
Copy Markdown
Member Author

joewiz commented May 13, 2026

🎉 This PR is included in version 3.11.4 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant