Skip to content

feat(mongodb-runner): get the SLS tag from the manifest file by default - #876

Draft
autarch wants to merge 1 commit into
08-28-feat_mongodb-runner_authenticate_to_ecr_automatically_for_dsc_clustersfrom
08-28-feat_mongodb-runner_default_sls_image_tag_from_build_manifest
Draft

feat(mongodb-runner): get the SLS tag from the manifest file by default#876
autarch wants to merge 1 commit into
08-28-feat_mongodb-runner_authenticate_to_ecr_automatically_for_dsc_clustersfrom
08-28-feat_mongodb-runner_default_sls_image_tag_from_build_manifest

Conversation

@autarch

@autarch autarch commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator

Description

Open Questions

Checklist


Stack created with GitHub Stacks CLIGive Feedback 💬

@autarch autarch changed the title 08 28 feat mongodb runner default sls image tag from build manifest feat(mongodb-runner): get the SLS tag from the manifest file by default Sep 2, 2026
@autarch
autarch force-pushed the 08-28-feat_mongodb-runner_default_sls_image_tag_from_build_manifest branch from 3a6f69a to 6260d06 Compare September 11, 2026 19:27
Copilot AI lite review requested due to automatic review settings September 11, 2026 19:27

Copilot AI left a comment

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.

🟡 Changes recommended

Default manifest-based tag resolution lacks integration coverage, and manifest validation messages need clearer API-accurate wording.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Updates MongoDB Runner to derive the SLS image tag from the adjacent manifest by default while preserving explicit overrides.

Changes:

  • Added manifest parsing and tag resolution.
  • Made image-tag overrides optional across APIs and CLI.
  • Added fixtures, tests, documentation, and formatting exclusions.
File summaries
File Description
packages/mongodb-runner/test/fixtures/sls/no-key/manifest.json Missing-key manifest fixture.
packages/mongodb-runner/test/fixtures/sls/malformed/manifest.json Malformed manifest fixture.
packages/mongodb-runner/test/fixtures/sls/complete/manifest.json Complete manifest fixture.
packages/mongodb-runner/src/sls.ts Manifest lookup and default tag logic.
packages/mongodb-runner/src/sls.spec.ts Manifest parsing and error tests.
packages/mongodb-runner/src/index.ts Exports the manifest reader.
packages/mongodb-runner/src/cli.ts Makes the CLI tag override optional.
packages/mongodb-runner/docs/disaggregated-storage.md Documents default tag resolution.
packages/mongodb-runner/.prettierignore Excludes the malformed fixture.
.prettierignore Excludes the malformed fixture globally.
Review details

Suppressed comments (1)

packages/mongodb-runner/src/sls.ts:60

  • When pinned_sls_commit is present but empty or non-string, this branch reports that the key is absent, which misstates the manifest problem and makes diagnosis harder. Please describe the invalid or empty value rather than only a missing key.
      `The SLS build manifest at ${manifestPath} has no pinned_sls_commit key. ` +
  • Files reviewed: 10/10 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +172 to +173
const imageTag =
options.imageTag ?? (await readPinnedSlsCommit(path.dirname(composeFile)));
} catch (err) {
throw new Error(
`Could not read the SLS build manifest at ${manifestPath}: ` +
`${(err as Error).message}. Pass --slsImageTag explicitly to skip this lookup.`,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants