Repository navigation
Validate Firefox publish channels - #607
rissrice2105-agent wants to merge 1 commit into
Conversation
Greptile SummaryThis PR adds runtime validation of the Firefox AMO publish channel in both the
Confidence Score: 4/5Safe to merge; the validation logic is correct, tests cover the new throw paths, and no existing behaviour is broken. The channel() function works correctly at runtime and the tests confirm it. The only concern is that the valid-channel set is expressed three times independently (CHANNELS, Config.channel, FirefoxPackagePlan.channel), leaving room for silent drift if a channel is added later. packages/targets/browser-firefox/src/index.ts — the three separate declarations of 'listed' | 'unlisted' are worth unifying. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[build / ship called] --> B[channel config]
B --> C{config.channel set?}
C -- No --> D[default to 'listed']
C -- Yes --> E[use provided value]
D --> F{value in CHANNELS?}
E --> F
F -- No --> G[throw Error: must be one of listed, unlisted]
F -- Yes --> H[return selectedChannel]
H --> I{ship path?}
H --> J{build path?}
I --> K[ctx.log sign+submit]
K --> L{dryRun?}
L -- Yes --> M[return dry-run]
L -- No --> N[submit to AMO]
J --> O[packagePlan created]
O --> P{dryRun?}
P -- Yes --> Q[write .firefox-plan.json]
P -- No --> R[exec web-ext build]
|
|
🤖 Auto-rebase: The branch was rebased successfully locally but could not be pushed to the fork. Please enable 'Allow edits from maintainers' in the PR settings, or rebase manually: |
6 similar comments
|
🤖 Auto-rebase: The branch was rebased successfully locally but could not be pushed to the fork. Please enable 'Allow edits from maintainers' in the PR settings, or rebase manually: |
|
🤖 Auto-rebase: The branch was rebased successfully locally but could not be pushed to the fork. Please enable 'Allow edits from maintainers' in the PR settings, or rebase manually: |
|
🤖 Auto-rebase: The branch was rebased successfully locally but could not be pushed to the fork. Please enable 'Allow edits from maintainers' in the PR settings, or rebase manually: |
|
🤖 Auto-rebase: The branch was rebased successfully locally but could not be pushed to the fork. Please enable 'Allow edits from maintainers' in the PR settings, or rebase manually: |
|
🤖 Auto-rebase: The branch was rebased successfully locally but could not be pushed to the fork. Please enable 'Allow edits from maintainers' in the PR settings, or rebase manually: |
|
🤖 Auto-rebase: The branch was rebased successfully locally but could not be pushed to the fork. Please enable 'Allow edits from maintainers' in the PR settings, or rebase manually: |
Fixes #606.
Changes:
Validation: