Skip to content

chore: upgrade OINK to 1.8.0 and improve reading and upgrade workflows - #578

Merged
imbajin merged 11 commits into
apache:masterfrom
hugegraph:chore/oink-1.6.0-upgrade
Nov 29, 2026
Merged

imbajin merged 11 commits into
apache:masterfrom
hugegraph:chore/oink-1.6.0-upgrade

Conversation

@imbajin

@imbajin imbajin commented Nov 29, 2026 •

Copy link
Copy Markdown
Member

Purpose and status

Upgrade the HugeGraph website from OINK 1.5.1 to the official 1.8.0 release through the reviewed 1.6.0 migration, improving reading and future upgrade
maintenance.

Companion: ORG PR #76. Source: hugegraph:chore/oink-1.6.0-upgrade,
head 685795ccbe2ba3e54506c9ce4d9d1381b8bd2e9a. ORG CI #442 has passed; the final paired measurements describe this exact head.
This PR is open and approved. ASF CI #1851 passed the five-version build, aggregate validation, and browser and visual checks at the same head. The publish job was skipped.

Full report and raw data · Machine-readable verification and review evidence

What readers will notice after the upgrade

① Configuration parameters are easier to find

Search for a parameter, jump to its field, and read its description and default value. Selected Server, PD, and Store configuration pages use the native field component.

真实交互:字段搜索 → 锚点定位 → 参数阅读

This GIF is from the 1.5.1 → 1.6.0 upgrade. Field search and navigation also passed regression checks for 1.8.0. Field layout comparison

② Six reading themes

Slate is the default. Navigation keeps HugeGraph purple, and article links and accents follow the selected theme.

Before · OINK 1.6.0 After · OINK 1.8.0
原有移动端外观菜单 六主题移动端外观菜单

③ Release notes are easier to scan

The English and Chinese HugeGraph 1.8 release notes use native Timeline and Update components to make Java requirements and compatibility changes easier to distinguish. Facts, headings, URLs, and anchors are preserved.

Before · OINK 1.6.0 After · OINK 1.8.0
原有发布说明 新版发布说明

Both screenshot pairs come from CI #442 at the same page state, Before 309011e and After 685795c. See the 29-shortcut help panel before and after, and the full visual and measurement report.

Confirmed reading behavior

Area Change
Reading presets Paper, Slate, GitHub, Ink, News, and Terminal use the native selector and preference storage. Slate is the default.
Navigation and article colors Navigation and Kapa retain the brand color. Article accents follow the selected native theme.
Shortcut help Keep the native entry and the 29-shortcut panel, with three-column hover support and wrapping for long English descriptions.
External video and local playback video_embeds: [] keeps external videos as link cards. Local playback follows the same-origin and ASF CSP rules.
Release notes Use native Timeline and Update in the bilingual HugeGraph 1.8 release notes. Preserve the in-progress release status.

Native reading width, rich copy, local history, Chinese typography, BM25 search, field anchors, Duo View and synchronized scrolling, historical versions, explicit Kapa consent, Print, Markdown, and RSS remain covered. OINK marks GitHub, Ink, News, and Terminal as experimental.

Compatibility and upgrade automation

Pin standard Hugo 0.170.1 and Go 1.27.4 in toolchain.json, migrate to native CSS, and remove the Sass/Extended requirement. Use the formal release without
unreleased upstream commits. Retain the small SVG adapter needed by ASF CSP, explicit Kapa consent, AI-disabled behavior, Print, Markdown, RSS and historical
navigation.

Shell stays thin; Python handles preflight, frozen baseline capture, dependency updates, upstream-interface review, validation and reports. Quick iteration
cannot substitute for full acceptance. Historical builds reuse immutable manifests, bounded parallelism and validated caches; Latest is rebuilt.

Recovery validates the frozen baseline's actual theme pin, restores locked npm dependencies across processes, and lets Playwright verify its real installation
cache. Local and CI upgrades both use GOTOOLCHAIN=local. Evidence capture rejects changed HEADs and uncommitted Hugo inputs, including ignored static files,
while correctly handling Unicode filenames. Checks run between captures and before success; failures retain reports and user changes.

The existing read-only visual job collects paired evidence independently of earlier advisory screenshot failures. It selects the nearest theme transition,
refuses incompatible toolchain comparisons, and never advances the reviewed inventory. Firefox/WebKit and Chromium remain blocking checks; publication requires
their successful outcome and consumes the static artifact through the trusted workflow.

See the upgrade SOP for recovery and
acceptance, and native component guidance.

Verification at the latest commit

ORG CI #442 passed on 685795c. The publish job was skipped.

Check Result
Latest / 1.7 / 1.5 / 1.3 / 1.0 All passed. The four historical versions were restored and revalidated. Latest was rebuilt.
Aggregate security, assets, and links 1,189 HTML pages, 3,926 files, and 10 error pages passed.
Python 325 source checks and one rendered download-page check passed, 326 total.
Node UI/AI 83/83 and workflow/metrics 26/26.
Chromium 495/495, including the existing 35 search ranking cases.
Firefox / WebKit 52/52. English and Chinese shortcut panels passed the visible-text overlap check in all three engines.
Site-wide visual checks 111/111. Three representative screenshot pairs received independent visual review.
Paired screenshots and search measurements 11 screenshots and 20 search samples per revision.
Recovery and caching npm and browser recovery passed across two processes. Cold and warm cache paths passed for four historical versions, with matching artifact digests.

Local browser launch was blocked by Unix socket permissions, so browser and visual results come from CI. Safari and iOS device validation remain pending.

Review results

ORG review processed 14 new findings. Of 13 inline findings, 12 were fixed and verified and one was shown to be a false positive. The optional browser-state cache recommendation was declined in favor of the native installer. Fifteen threads were resolved in this round, including two earlier discussions. All 20 ORG threads are resolved.

The shortcut help text overlap was fixed. The geometry check excludes the clipped screen-reader annotation and retains all 29 visible labels and the 4 px separation requirement.

HugeGraph measurements · OINK 1.6.0 → 1.8.0

Reports, raw samples and checksums identify Before
309011e / OINK 1.6.0 and After 685795c / OINK 1.8.0.
Each query has five samples per revision on the same Intel Xeon 6975P-C runner, Chromium 151.0.7922.34 and Node 24.22.3.
The HugeGraph comparison includes content/integration changes and does not use upstream headline figures.

Query Cold search 1.6.0 → 1.8.0 Cold change Warm search 1.6.0 → 1.8.0 Warm change
EN title · server quickstart 255.0 → 274.9 ms +19.9 ms 93.0 → 104.7 ms +11.7 ms
CN title · Server 快速上手 263.4 → 279.7 ms +16.3 ms 92.8 → 107.7 ms +14.9 ms
EN body · auth.token_secret 244.6 → 271.1 ms +26.5 ms 87.2 → 97.5 ms +10.3 ms
CN body · 重启后继续有效 248.1 → 276.3 ms +28.2 ms 91.1 → 100.3 ms +9.2 ms

All four queries took longer. Cold medians increased 16.3–28.2 ms and warm medians increased 9.2–14.9 ms. CI #440 also recorded warm increases of 10.7–13.3 ms. The two runs used different CPUs and are reported separately. Cold timing includes opening the search panel and loading required indexes. Warm timing reuses the in-memory search engine. Both include the 80 ms debounce, UI work, and rendering. BM25 execution time was not measured separately. Recheck the response times in ASF staging.

Latest build output 1.6.0 1.8.0 Change
Search JSON 3,294,910 B 3,294,734 B −176 B (about −0.005%)
CSS 761,804 B 848,731 B +11.41%
JavaScript 10,620,847 B 10,910,671 B +2.73%

Both language indexes are below the 2 MiB split threshold. A separate large-index fixture verifies splitting and lazy body loading. There are no paired latency measurements for a large HugeGraph index. The table records total emitted assets. First-page transfers were not measured separately.

Build time was 15.952 → 15.037 s, with one observation per revision. The 140.947 → 50.238 s cache exercise measures cold build versus cache restoration and revalidation.

Future upgrades

scripts/update-oink.sh vX.Y.Z
scripts/update-oink.sh vX.Y.Z --resume --accept-reviewed --mode quick --work-dir /path/to/evidence
scripts/update-oink.sh vX.Y.Z --resume --accept-reviewed --mode full --work-dir /path/to/evidence

Upgrade procedure · Native feature guide

Before merging

  • Complete ASF staging acceptance and remeasure warm search latency.
  • Merge the trusted staging workflow prerequisite separately and use a candidate branch in the ASF repository. Candidate toolchain data must pass the trusted workflow's validation.
  • Coordinate the prerequisite merge because it may trigger the existing production workflow. Production deployment requires separate authorization.

OINK release notes · v1.6.0 to v1.8.0 diff

- adopt native CSS, BM25 and configuration fields with the existing CSP
- centralize toolchain pins and harden candidate build and publish gates
- automate baseline evidence, full acceptance, cache validation and recovery
- avoid recording a custom Chromium executable as a Playwright install
- cover custom-to-managed resume and independent warning stream failures
- reserve browser and aggregate visual output directories for fresh transactions
- recheck managed browser cache using Playwright's native installer
- normalize and validate custom Chromium before builds
- isolate aggregate visual captures from paired latest evidence
- cover transaction collisions, browser cache changes and capture routing
Offer six native presets with Slate by default, separate brand chrome from reader accents, and retain the native shortcut help at the top. Use native timeline/update content on representative bilingual release notes.

Reconcile Asciinema marker contracts and search selectors, harden toolchain/dependency recovery, and capture paired upgrade evidence in the existing read-only visual job. Preserve all blocking build, browser, consent and publication gates.
@imbajin
imbajin merged commit 2da11a2 into apache:master Nov 29, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants