You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/home/runner/work/wordpress-playground/wordpress-playground/node_modules/ts-json-schema-generator/dist/src/SchemaGenerator.js:67
throw new NoRootTypeError_1.NoRootTypeError(fullName);
^
NoRootTypeError: No root type "Blueprint" found
at SchemaGenerator.findNamedNode (/home/runner/work/wordpress-playground/wordpress-playground/node_modules/ts-json-schema-generator/dist/src/SchemaGenerator.js:67:15)
at SchemaGenerator.getRootNodes (/home/runner/work/wordpress-playground/wordpress-playground/node_modules/ts-json-schema-generator/dist/src/SchemaGenerator.js:43:26)
at SchemaGenerator.createSchema (/home/runner/work/wordpress-playground/wordpress-playground/node_modules/ts-json-schema-generator/dist/src/SchemaGenerator.js:22:32)
at file:///home/runner/work/wordpress-playground/wordpress-playground/packages/playground/blueprints/bin/generate-schema.js:17:44
at ModuleJob.run (node:internal/modules/esm/module_job:194:25) {
type: 'Blueprint'
}
Most likely, there's some race condition at play and the schema generator runs before the type declarations are ready. It shouldn't be the case, since the NX schema generation task has a dependency set up as follows:
Schema creation sometimes fails in CI, most likely
due to a race condition. Let's retry a few times before
giving up.
@see#789
Restart the build 10 times on this PR and confirm the schema generation
error doesn't occur.
Schema creation sometimes fails in CI, most likely
due to a race condition. Let's retry a few times before
giving up.
@see#789
Restart the build 10 times on this PR and confirm the schema generation
error doesn't occur.
Schema creation sometimes fails in CI, most likely due to a race
condition. Let's retry a few times before giving up.
See #789
## Testing instructions
Restart the build 7 times on this PR and confirm the schema generation
error doesn't occur.
Occasionally, a CI build fails when generating the JSON schema. I wasn't able to reproduce this problem locally.
Here's an example:
https://github.com/WordPress/wordpress-playground/actions/runs/6980311277/job/18995331724?pr=788
Most likely, there's some race condition at play and the schema generator runs before the type declarations are ready. It shouldn't be the case, since the NX schema generation task has a dependency set up as follows:
However, it's still happening.
Proposed solution
Tracking the race condition might be challenging, let's start by adding a simple retry.
The text was updated successfully, but these errors were encountered: