Skip to content

Allow FEED_ID_JSON in makeStub#812

Merged
dskloetc merged 1 commit into
mainfrom
kloet/allow-feed-id-json
Jun 5, 2026
Merged

Allow FEED_ID_JSON in makeStub#812
dskloetc merged 1 commit into
mainfrom
kloet/allow-feed-id-json

Conversation

@dskloetc
Copy link
Copy Markdown
Contributor

@dskloetc dskloetc commented Jun 5, 2026

Description

#808 breaks a lot of tests that use makeStub.
makeStub is a convenient way in tests to check that every field on a stub object that is being accessed is specified in the test.
The above PR added an extra field to adapterSettings which is always being accessed, but not specified in any test.
So all tests that use makeStub with adapterSettings will now fail.
This includes the generated example adapter in this very repo.
So currently CI is failing on every PR.

This wasn't caught on the breaking PR itself, because the generated example adapter uses the published framework version so it only started failing when a new framework version was published.

Changes

  1. Add FEED_ID_JSON to the list of fields that makeStub is allowed to access even if it's not specified.
  2. When testing the adapter generator in CI, use the local framework version such that similar breakages would be caught on CI in the future.

@dskloetc dskloetc added the patch label Jun 5, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 5, 2026

NPM Publishing labels 🏷️

🔵 This PR has the none label set and it will not cause a version bump.

@dskloetc dskloetc force-pushed the kloet/allow-feed-id-json branch from 74cd577 to 3d45123 Compare June 5, 2026 12:45
@dskloetc dskloetc marked this pull request as ready for review June 5, 2026 12:51
@dskloetc dskloetc requested a review from a team as a code owner June 5, 2026 12:51
@dskloetc dskloetc requested a review from mxiao-cll June 5, 2026 12:52
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
EXTERNAL_ADAPTER_GENERATOR_NO_INTERACTIVE: 'true'
EXTERNAL_ADAPTER_GENERATOR_STANDALONE: 'true'
EXTERNAL_ADAPTER_GENERATOR_USE_LOCAL_FRAMEWORK_VERSION: 'true'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When would this be false?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When you generate a real new adapter in external-adapters-js.
Then it uses the published framework version.

@dskloetc dskloetc requested a review from mxiao-cll June 5, 2026 13:04
@dskloetc dskloetc added none and removed patch labels Jun 5, 2026
@dskloetc dskloetc merged commit 3047b08 into main Jun 5, 2026
16 of 17 checks passed
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 5, 2026

🚀 Successfully created version bump PR: #813

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants