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.
fix for tests unable to resolve @cardstack/catalog when skipping catalog #4207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix for tests unable to resolve @cardstack/catalog when skipping catalog #4207
Changes from all commits
a4604578a02249544f58e7dbb7b0File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This adds
catalog_realmto the matrix realm server, but theworker-managerin the same helper is still started with only/test/and/base/mappings. Workers build their ownVirtualNetworkfrom those--fromUrl/--toUrlpairs, so startup indexing ofskills_realmon a fresh matrix database still cannot resolve@cardstack/catalog/skill-setorskill-plus. In other words, the new minimal catalog fixes direct server fetches, but not the queued indexing path matrix tests exercise.Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. Fixed in 7dbb7b0 — added
@cardstack/catalog/andhttp://localhost:4205/skills/URL mappings to the matrix worker-manager args so the worker's VirtualNetwork can resolve the catalog module references when indexing the skills realm.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This still propagates
SKIP_CATALOG=trueintostart:worker-development. That worker script only registers the@cardstack/catalog/ -> .../catalog/import-map prefix whenSKIP_CATALOGis unset, so the worker queue keeps indexing/skills/without any way to resolve@cardstack/catalog/skill-setorskill-plus. On a fresh host-test database, the initialskills_realmindex still fails even thoughstart-development.shnow serves a trimmed catalog realm.Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. Fixed in 7dbb7b0 —
start-worker-development.shnow always registers the@cardstack/catalog/→ catalog URL mapping via a newSTART_CATALOG_MAPPING=truevariable, independent ofSKIP_CATALOG. This ensures the worker's VirtualNetwork can resolve@cardstack/catalog/skill-setandskill-plusduring skills realm indexing.Uh oh!
There was an error while loading. Please reload this page.