fix(download): guard entrypoint rejections; refresh architecture docs#30
Merged
Conversation
- download/index.ts: add .catch handler so unexpected rejections exit non-zero (and fail the ADO task) instead of silently exiting 0 - log-inputs.ts: document that masking only applies to secureString inputs - copilot-instructions.md: correct architecture drift (logic now lives in @alcops/core; remove obsolete shared/nuget modules; fix task count, mocking patterns, and directory listing) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.
Summary
Code review of the active
ALCopsDownloadAnalyzerstask wrapper,shared/helpers, and build/packaging config. Deprecated tasks (install-analyzers,detect-tfm-*) and@alcops/corewere out of scope.Changes
tasks/download/src/index.ts):run()was called without a.catch(). Today the task-runner wraps everything in try/catch, but any future throw outside it would exit0and ADO would mark the task succeeded despite failure. Added the same.catch(... process.exit(1))guard the other tasks already use.shared/log-inputs.ts): noted thatlogTaskInputsmasks onlysecureString-typed inputs, so future secret inputs must be declared with a sensitive type to be redacted..github/copilot-instructions.md): the file described an obsolete layout (referencingshared/http-client.ts,shared/nuget-registration.ts,tasks/install-analyzers/src/nuget-api.ts, ascripts/dir,vi.mock('https')— none of which exist). Rewrote to reflect that all logic now lives in@alcops/coreandshared/holds onlylogger.ts+log-inputs.ts.Considered and intentionally dropped
@alcops/coreversion pin:^0.1.2matches npmlatest(0.1.2). No drift —0.2.0is unreleased local source.detectFromlists acrosstask.json, the wrapper, and@alcops/core. Core is the single source of truth and already validates.Verification
npm run lint— cleannpm run build(tsc) — cleannpm test— 46/46 passnpm run bundle— succeeds;.catchguard confirmed present intasks/download/dist/index.js