Skip to content

test: count a published page's bound files among its data sources - #7418

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-7406
Nov 27, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-7406

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

#7306 made each file a page binds with leaf file bind a data source under its binding's id. It said so in its description: "the hosted site's first-visit state and exports now carry the bound files that published markup binds". After that change, data.read_contracts returns those bindings, with the text-document contract, alongside the sources the example's data sets. test_every_published_page_keeps_its_canonical_page_record still expected only the data-set sources, so it failed on the published example that binds alerts, values, runbook, values-production, values-staging and deploy-workflow. Journeys run only in the scheduled suite, which is why #7306's own CI never ran this test.

The code is doing what #7306 intended, so the test changes to match: it now expects the page's bindings (file_bindings.bound_paths) as well. No behavior #7306 intended is given up. The stored-value check for data-set sources is unchanged.

Run by node id on Linux, the test fails on main with the error from the issue ({'alerts', …} == set()) and passes with this change.

Closes #7406 — automated triage

#7306 made each bound file a data source under its binding's id, so
read_contracts now lists the bindings beside the sources the example's
data sets. The site journey still expected only the data-set sources and
failed on the published example that binds files (alerts, values,
runbook, values-production, values-staging, deploy-workflow). The test
now expects the page's bindings too, which keeps #7306's intent that
first-visit state carries the files published markup binds.

Closes #7406
@leaf-agent
leaf-agent merged commit ed15777 into main Nov 27, 2026
7 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-7406 branch November 27, 2026 17:54
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.

test_every_published_page_keeps_its_canonical_page_record: bound-file ids enter the page record since #7306

1 participant