Skip to content

Fix bootstrap diagnostics for ambiguous metadata files - #2621

Open
gibkim wants to merge 2 commits into
aws:masterfrom
gibkim:fix/bootstrap-ambiguous-metadata-diagnostics
Open

gibkim wants to merge 2 commits into
aws:masterfrom
gibkim:fix/bootstrap-ambiguous-metadata-diagnostics

Conversation

@gibkim

@gibkim gibkim commented Nov 22, 2026 •

Copy link
Copy Markdown

Issue #, if available:

Fixes #1430.

Description of changes:

When the expected assembly metadata is absent, distinguish multiple .deps.json or .runtimeconfig.json candidates from missing files. Preserve exact-name preference, single-file fallback and exit codes 105/106.

Add 36 bootstrap shell cases across the generic and .NET 8 scripts, covering both nullglob modes, and invoke them from the existing Linux unit-test entry point. Include the RuntimeSupport Patch change file.

Validation: all 36 shell cases pass; the previous .NET 8 script fails 6. Independent review also passed 12 additional contract controls. Bash syntax and diff checks pass. Tests ran on macOS Bash with GNU expr and an argv-capture wrapper; native Linux/Windows CI, full .NET tests, and actual .NET startup were not run locally.

AI assistance: Codex/GPT-6.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Report multiple dependency or runtime configuration files separately
from missing files while preserving selection and exit codes.
Add bootstrap regression checks to the Linux unit test entry point.

Fixes aws#1430

Assisted-by: Codex/GPT-6
@gibkim
gibkim requested review from a team as code owners November 22, 2026 01:52
if ! [ -f "${DEPS_FILE}" ]; then
DEPS_FILES=( "${LAMBDA_TASK_ROOT}"/*.deps.json )

if [ "${#DEPS_FILES[@]}" -gt 1 ]; then

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.

@normj
normj self-requested a review November 24, 2026 22:08
Run the existing metadata regression cases against both bootstrap scripts.

Assisted-by: Codex/GPT-6

This branch has not been deployed

No deployments
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.

When a dotnet lambda zip package contains more than 1 .deps file, the error printed is misleading

3 participants