-
Notifications
You must be signed in to change notification settings - Fork 13
feat(plugins): #1247 standalone markdown plugin #1457
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
feat(plugins): #1247 standalone markdown plugin #1457
Conversation
9b41d02
to
26ae467
Compare
a31971f
to
ddb8721
Compare
Hmm, not sure why the .mp3 develop command test case is failing all builds? 2875 passing (8m)
214 pending
4 failing
1) Develop Greenwood With:
Default Greenwood Configuration and Workspace
Develop command with audio format (.mp3) behavior
should return a 200 status:
AssertionError: expected 500 to equal 200
+ expected - actual
-500
+200
at Context.<anonymous> (file:///home/runner/work/greenwood/greenwood/packages/cli/test/cases/develop.default/develop.default.spec.js:479:36)
at process.processImmediate (node:internal/timers:485:21)
2) Develop Greenwood With:
Default Greenwood Configuration and Workspace
Develop command with audio format (.mp3) behavior
should return the correct content type:
AssertionError: expected 'text/plain; charset=utf-8' to equal 'audio/mpeg'
+ expected - actual
-text/plain; charset=utf-8
+audio/mpeg
at Context.<anonymous> (file:///home/runner/work/greenwood/greenwood/packages/cli/test/cases/develop.default/develop.default.spec.js:484:57)
at process.processImmediate (node:internal/timers:485:21)
3) Develop Greenwood With:
Default Greenwood Configuration and Workspace
Develop command with audio format (.mp3) behavior
should return the correct content length:
AssertionError: expected '0' to equal '5425061'
+ expected - actual
-0
+5425061
at Context.<anonymous> (file:///home/runner/work/greenwood/greenwood/packages/cli/test/cases/develop.default/develop.default.spec.js:489:59)
at process.processImmediate (node:internal/timers:485:21)
4) Develop Greenwood With:
Default Greenwood Configuration and Workspace
Develop command with audio format (.mp3) behavior
should return the correct response body:
AssertionError: expected '' to include 'ID3'
at Context.<anonymous> (file:///home/runner/work/greenwood/greenwood/packages/cli/test/cases/develop.default/develop.default.spec.js:494:25)
at process.processImmediate (node:internal/timers:485:21)
With logging added, we get to the root cause! 😮💨 TypeError: Response.clone: Body has already been consumed.
at webidl.errors.exception (node:internal/deps/undici/undici:3610:14)
at _Response.clone (node:internal/deps/undici/undici:9192:31)
at file:///home/runner/work/greenwood/greenwood/packages/cli/src/lifecycles/serve.js:122:49
at async file:///home/runner/work/greenwood/greenwood/packages/cli/src/lifecycles/serve.js:103:5
at async file:///home/runner/work/greenwood/greenwood/packages/cli/src/lifecycles/serve.js:58:5 |
9771fbf
to
f030ee6
Compare
Getting a bunch of intermittent errors on Windows to due Response bodies being consumed in the dev server 😞 ****************************************************************************
TypeError: Response.clone: Body has already been consumed.
at webidl.errors.exception (node:internal/deps/undici/undici:3610:14)
at _Response.clone (node:internal/deps/undici/undici:9192:31)
at file:///C:/Users/owenbuckley/Workspace/greenwood/packages/cli/src/lifecycles/serve.js:70:45
at async file:///C:/Users/owenbuckley/Workspace/greenwood/packages/cli/src/lifecycles/serve.js:49:5 edit: it looks like it can even happen from time to time on my mac 😬 maybe this has been part of the random flakiness we've seen from time to time in GitHub Actions |
d86e18d
to
a880798
Compare
… serve and intercept related resource plugin processing
89adcea
to
c9abc33
Compare
Related Issue
resolves #1247
Documentation
addpreServe
lifecycle docsserve lifecycle resource plugin recommendations (setstatusText
andstatus
)Summary of Changes
activeContent
flag (BREAKING)servePage
option works for resource plugins; now relies on extension (BREAKING)TODO
I think we're going to need to solve this first - inconsistent HTML output merging hierarchy for top level pages and layouts #1475greenwood development test cases failing on 404 issues? (Default Greenwood Configuration and Workspace)frontmatter importslayouts and pagestheme pack test case / slides<x-counter></x-counter>
(Demo Page Example)getting startedResponse
body consumption - feat(plugins): #1247 standalone markdown plugin #1457 (comment)xdescribe
since we have a hardcoding on .html per inconsistent HTML output merging hierarchy for top level pages and layouts #1475 ) and create a test case in markdown plugin suite<body>
tags test cases popping up (seexdescribe
for Custom Sources Plugin and Custom Layout)better way to check forinitContents
instead of all the negate cases (in standard html plugin)integrateshouldPreServe
/preServe
in all places (e.g. loader.js), and handlingresponse
in serve all serve lifecyles?preServe
, per enhancement/issue 823 ensure greenwood cli and plugins are favoring idiomatic usages of async #1546 ~~String
constructor - https://github.com/thescientist13/greenwood-native-typescript/blob/unified-in-plugins/external-content-source-plugin.ts#L38perServe
approach and any other tweaks we've made in the serve lifecycleREADMEThoughts / Questions
Have we introduced a change toserve
lifecycle signature? would need to update our plugin types / docsUpdates for Content as Data v2 #1286 in regards to pushing to the graph from a plugin?- N / A