Repository navigation
fix(plugins): match provider install guidance to the release #4694
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
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
7c47cbe
fix(plugins): name the release a channel plugin installs from
thymikee 9604920
docs(release): name the plugin tag in the 0.22 changesets
thymikee 26b681f
fix(plugins): match provider help to the running release
thymikee 8c7803e
fix(help): type version-aware topic bodies
thymikee fbe73d3
docs(plugins): match shipped readmes to the release channel
thymikee a0a85d0
fix(plugins): repair provider selections with matching releases
thymikee 2894aa8
fix(plugins): match main-channel 0.22 nightly builds
thymikee aff40e6
docs(plugins): clarify the 0.22 development channel default
thymikee bb71a7f
docs(website): describe AWS Device Farm as a provider plugin
thymikee e6cdf50
chore: remove changeset edits from the PR
thymikee c89f097
docs: use the 0.22 branch install instructions
thymikee File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,11 @@ | ||
| # AWS Device Farm for agent-device | ||
|
|
||
| This plugin is private and not yet published. After publication, install it on the daemon host: | ||
| Install the plugin on the daemon host. | ||
|
|
||
| ```sh | ||
| agent-device plugins add @agent-device/aws-device-farm | ||
| agent-device plugins add @agent-device/aws-device-farm@nightly-0.22 | ||
| ``` | ||
|
|
||
| Run `agent-device help remote` to see the install command for your CLI. | ||
|
|
||
| Configure AWS CLI credentials and connect using your Device Farm project and device ARNs. See the [AWS Device Farm guide](https://agent-device.dev/docs/aws-device-farm). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,68 @@ | ||
| import assert from 'node:assert/strict'; | ||
| import { test } from 'vitest'; | ||
| import { | ||
| getProviderPluginDeclaration, | ||
| providerPluginHelp, | ||
| providerPluginInstallCommand, | ||
| } from './provider-plugin-catalog.ts'; | ||
|
|
||
| const NIGHTLY_0_22 = '0.22.0-nightly-0-22.20261118.187'; | ||
| const MAIN_NIGHTLY_0_22 = '0.22.0-nightly.20261118.186'; | ||
|
|
||
| function declaration(provider: string) { | ||
| const found = getProviderPluginDeclaration(provider); | ||
| assert.ok(found, `Expected ${provider} in the provider plugin catalog`); | ||
| return found; | ||
| } | ||
|
|
||
| test.each([NIGHTLY_0_22, MAIN_NIGHTLY_0_22])( | ||
| '0.22 nightly core %s names the plugin release built with it', | ||
| (coreVersion) => { | ||
| for (const provider of ['browserstack', 'aws-device-farm']) { | ||
| assert.equal( | ||
| providerPluginInstallCommand(declaration(provider), coreVersion), | ||
| `agent-device plugins add @agent-device/${provider}@${coreVersion}`, | ||
| ); | ||
| } | ||
| }, | ||
| ); | ||
|
|
||
| test('a 0.22 source checkout names the nightly tag', () => { | ||
| assert.equal( | ||
| providerPluginInstallCommand(declaration('browserstack'), '0.22.0-dev'), | ||
| 'agent-device plugins add @agent-device/browserstack@nightly-0.22', | ||
| ); | ||
| }); | ||
|
|
||
| test('a core outside the 0.22 nightlies keeps the plain package selector', () => { | ||
| for (const coreVersion of ['0.21.40-nightly.20261118.186', '0.22.0', '0.0.0']) { | ||
| assert.equal( | ||
| providerPluginInstallCommand(declaration('aws-device-farm'), coreVersion), | ||
| 'agent-device plugins add @agent-device/aws-device-farm', | ||
| `core ${coreVersion} must not name a release it cannot match`, | ||
| ); | ||
| } | ||
| }); | ||
|
|
||
| test('a plugin that ships every release ignores the channel of the core', () => { | ||
| for (const provider of ['testmu', 'revyl', 'webos', 'tizen']) { | ||
| assert.equal( | ||
| providerPluginInstallCommand(declaration(provider), NIGHTLY_0_22), | ||
| `agent-device plugins add @agent-device/${provider}`, | ||
| ); | ||
| assert.equal( | ||
| providerPluginInstallCommand(declaration(provider), '0.21.39'), | ||
| `agent-device plugins add @agent-device/${provider}`, | ||
| ); | ||
| } | ||
| }); | ||
|
|
||
| test('help gives nightly and stable users the same plugin selectors as recovery', () => { | ||
| const nightly = providerPluginHelp(NIGHTLY_0_22); | ||
| const stable = providerPluginHelp('0.22.0'); | ||
| for (const provider of ['browserstack', 'aws-device-farm']) { | ||
| assert.ok(nightly.includes(`connect ${provider}; @agent-device/${provider}@${NIGHTLY_0_22})`)); | ||
| assert.ok(stable.includes(`connect ${provider}; @agent-device/${provider})`)); | ||
| } | ||
| assert.match(nightly, /TestMu AI \(connect testmu; @agent-device\/testmu\)/); | ||
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.