Repository navigation
test: count a published page's bound files among its data sources - #7418
Merged
Merged
Conversation
#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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#7306 made each file a page binds with
leaf file binda 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_contractsreturns those bindings, with thetext-documentcontract, alongside the sources the example's data sets.test_every_published_page_keeps_its_canonical_page_recordstill expected only the data-set sources, so it failed on the published example that bindsalerts,values,runbook,values-production,values-staginganddeploy-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
mainwith the error from the issue ({'alerts', …} == set()) and passes with this change.Closes #7406 — automated triage