Stabilize registry-assets parseArgs test under CI env #225
Labels
No labels
abandoned
active
audit
blocked
data-safety
difficulty:easy
difficulty:hard
difficulty:high
difficulty:medium
docs
done
duplicate
notebook-v0
open
priority:high
ready
release-critical
safe-mode
spec
spec-backlog
subsystem:api
subsystem:backlog
subsystem:bases
subsystem:ci
subsystem:command
subsystem:configuration
subsystem:consolidate
subsystem:dependencies
subsystem:desktop-electron
subsystem:diffmerge
subsystem:docker
subsystem:docs
subsystem:fuzzy
subsystem:graph
subsystem:hotkeys
subsystem:lapis
subsystem:maint
subsystem:maintenance
subsystem:markdown
subsystem:markdown-lint
subsystem:md018
subsystem:notebook
subsystem:notifications
subsystem:opfs
subsystem:package
subsystem:plugin-markdown
subsystem:plugin-tasks
subsystem:plugins
subsystem:registry
subsystem:release
subsystem:renovate
subsystem:restore
subsystem:scripts
subsystem:search
subsystem:settings
subsystem:spec
subsystem:tasks
subsystem:testing
subsystem:ui
subsystem:web
subsystem:workspace
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lapis-notes/lapis#225
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Describe the issue.
Problem
scripts/publish-official-plugin-assets.test.mjsassumesparseArgs(...)defaultscommitto an empty string, but the implementation intentionally defaults toenv.GITHUB_SHAwhen that environment variable is present. CI setsGITHUB_SHA, so the test fails only there.Goal
Make the parser test deterministic across local and CI environments while
preserving the current parser behavior.
Scope
parseArgs(...)defaulting behavior intact.Non-goals
Acceptance Criteria
--pluginsparser test passes both locally and in CI.process.env.GITHUB_SHA.commitfromenv.GITHUB_SHAwhenprovided.
Implementation Notes
parseArgs(argv, env = process.env)already accepts an injected environment,so the test can pass
{}instead of relying on the process environment.Suggested Files or Specs To Inspect
scripts/publish-official-plugin-assets.mjsscripts/publish-official-plugin-assets.test.mjsspec/src/80-maintenance/monorepo-scripts.mdValidation Commands
pnpm test:scripts -- --test-name-pattern="parseArgs accepts comma-separated plugin selection and dry-run options"pnpm test:scriptsRelated Issues
Follow-up Tasks
Implementation Summary
Made the registry-assets parseArgs test deterministic under CI and added explicit coverage for GITHUB_SHA commit defaulting.