-
Notifications
You must be signed in to change notification settings - Fork 757
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
Make workflow instance.status()
return output equal to production workflows
#7575
Make workflow instance.status()
return output equal to production workflows
#7575
Conversation
Previously,in local dev, the `output` field would return the list of successful steps outputs in the workflow. This is not expected behaviour compared to production workflows (where the output is the actual return of the `run` function), probably just a implementation detail not set left-over from before beta. This commit makes it so that `output` is equal to production behaviour. For observability sake, I kept the old step output list in a different field `__LOCAL_DEV_STEP_OUTPUTS` - I think this is a good enough compromise right now since we want local dev to be correct against prod first. We can remove `__LOCAL_DEV_STEP_OUTPUTS` later, once we figure out on how to add custom stuff to the devtools page.
🦋 Changeset detectedLatest commit: f165792 The changes in this PR will be included in the next version bump. This PR includes changesets to release 5 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
A wrangler prerelease is available for testing. You can install this latest build in your project with: npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12412537996/npm-package-wrangler-7575 You can reference the automatically updated head of this PR with: npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/prs/7575/npm-package-wrangler-7575 Or you can use npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12412537996/npm-package-wrangler-7575 dev path/to/script.js Additional artifacts:wget https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12412537996/npm-package-cloudflare-workers-bindings-extension-7575 -O ./cloudflare-workers-bindings-extension.0.0.0-v005af7b70.vsix && code --install-extension ./cloudflare-workers-bindings-extension.0.0.0-v005af7b70.vsix npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12412537996/npm-package-create-cloudflare-7575 --no-auto-update npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12412537996/npm-package-cloudflare-kv-asset-handler-7575 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12412537996/npm-package-miniflare-7575 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12412537996/npm-package-cloudflare-pages-shared-7575 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12412537996/npm-package-cloudflare-unenv-preset-7575 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12412537996/npm-package-cloudflare-vitest-pool-workers-7575 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12412537996/npm-package-cloudflare-workers-editor-shared-7575 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12412537996/npm-package-cloudflare-workers-shared-7575 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12412537996/npm-package-cloudflare-workflows-shared-7575 Note that these links will no longer work once the GitHub Actions artifact expires.
Please ensure constraints are pinned, and |
f6670eb
to
9fa4053
Compare
I think we'll need E2E tests here because we test workflows in our dev E2E suite. |
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.
Great, thanks!
…orkflows (#7575) * feat: Make `instance.status()` return output equal to production Previously,in local dev, the `output` field would return the list of successful steps outputs in the workflow. This is not expected behaviour compared to production workflows (where the output is the actual return of the `run` function), probably just a implementation detail not set left-over from before beta. This commit makes it so that `output` is equal to production behaviour. For observability sake, I kept the old step output list in a different field `__LOCAL_DEV_STEP_OUTPUTS` - I think this is a good enough compromise right now since we want local dev to be correct against prod first. We can remove `__LOCAL_DEV_STEP_OUTPUTS` later, once we figure out on how to add custom stuff to the devtools page. * fix types * fix tests * chore: add better types for readLogs
…orkflows (#7575) * feat: Make `instance.status()` return output equal to production Previously,in local dev, the `output` field would return the list of successful steps outputs in the workflow. This is not expected behaviour compared to production workflows (where the output is the actual return of the `run` function), probably just a implementation detail not set left-over from before beta. This commit makes it so that `output` is equal to production behaviour. For observability sake, I kept the old step output list in a different field `__LOCAL_DEV_STEP_OUTPUTS` - I think this is a good enough compromise right now since we want local dev to be correct against prod first. We can remove `__LOCAL_DEV_STEP_OUTPUTS` later, once we figure out on how to add custom stuff to the devtools page. * fix types * fix tests * chore: add better types for readLogs
Previously, in local dev, the
output
field would return the list of successful steps outputs in the workflow. This is not expected behavior compared to production workflows (where the output is the actual return of therun
function), probably just an implementation detail not set left-over from before beta.This commit makes it so that
output
is equal to production behavior.For observability’s sake, I kept the old step output list in a different field
__LOCAL_DEV_STEP_OUTPUTS
- I think this is a good enough compromise right now since we want local dev to be correct against prod first. We can remove__LOCAL_DEV_STEP_OUTPUTS
later, once we figure out on how to add custom stuff to the devtools page.