Repository navigation
Conversation
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
boblodgett
reviewed
Nov 24, 2026
| if ! [ -f "${DEPS_FILE}" ]; then | ||
| DEPS_FILES=( "${LAMBDA_TASK_ROOT}"/*.deps.json ) | ||
|
|
||
| if [ "${#DEPS_FILES[@]}" -gt 1 ]; then |
Contributor
There was a problem hiding this comment.
The same bug would exist in https://github.com/aws/aws-lambda-dotnet/blob/master/Libraries/src/Amazon.Lambda.RuntimeSupport/bootstrap.net8.sh
Can you correct it there also?
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
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Issue #, if available:
Fixes #1430.
Description of changes:
When the expected assembly metadata is absent, distinguish multiple
.deps.jsonor.runtimeconfig.jsoncandidates 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.