Repository navigation
refactor(artifacts): take the host from HOST_PLATFORM or the caller instead of process.platform - #11090
Merged
Conversation
…nstead of process.platform
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Contributor
[Low impact] The PR appears safe to merge; no actionable issues were found. SummaryReplaces ten direct
Reviews (1) · Last reviewed commit: "refactor(artifacts): take the host from ..." · Reviewed by Greptile |
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
HostPlatform migration (W8),
src/artifacts. Artifact readers and the artifact provider take the platform from their caller or fromHOST_PLATFORMexplicitly instead of readingprocess.platform. The asset-catalog tests select macOS by passing it instead of redefiningprocess.platform.Problem and expected behavior
Ten ambient
process.platformreads remained insrc/artifacts.analyzeAppleAssetCatalogsgated on the ambient platform, soAppleAssetCatalogAnalysis.test.tsandassetCatalogCancellationReason.test.tsredefinedprocess.platformto reach the macOS path on other hosts. Expected: pure helpers take the platform; host-bound operations readHOST_PLATFORMexplicitly; tests inject.Change and scope
artifactCapabilities(platform)(both callers already passed it).HOST_PLATFORM.platform:ArtifactProviderconstructor (composition passes the platform),SafeOutputTree.create,hostExecutableMarking, and a new optionalplatforminput onanalyzeAppleAssetCatalogs(assetutil runs on this host).HOST_PLATFORM: native DMG traversal (this host's hdiutil), the darwin-only inventory reader gate, ASAR component admission, dylib resolution path syntax, keyed-archive remediation fallback.AppleAssetCatalogAnalysis.test.tsandassetCatalogCancellationReason.test.tspassplatform: "darwin"; the latter no longer skips on hosts whoseprocess.platformcannot be redefined.ambient-host-platformentries removed.Contract and boundary impact
src/platform/HostPlatform; consumers are artifact readers and the artifact provider.docs/public/product-catalog.json), package, or installation impact: none.Expected effects (check known effects; use documentation-only on its own).
Unchecked items do not establish absence; leave uncertainties visible.
Evidence and regression coverage
src/artifacts/apple/AppleAssetCatalogAnalysis.test.ts,tests/process-global/assetCatalogCancellationReason.test.ts.process.platformwas not configurable).Validation performed
npx tsc --noEmit -p .— passed.node scripts/verify/architecture-guards.mjs --shrink-baselines— passed; baseline lowered.npm run test:focused -- src/artifacts/apple/AppleAssetCatalogAnalysis.test.ts tests/process-global/assetCatalogCancellationReason.test.ts tests/boundary/mcp/asarListingAdmissionMcp.test.ts tests/boundary/mcp/dylibResolutionMcp.test.ts tests/boundary/filesystem/keyedArchiveStandaloneSelection.test.ts tests/boundary/filesystem/safeOutputTreeCloseFailures.test.ts src/artifacts/ArtifactProviderCleanup.test.ts src/artifacts/apple/KeyedArchiveHostDenial.test.ts tests/boundary/mcp/artifactMcp.test.ts— 9 files passed (92 passed, 2 skipped).npm run check:fast— passed.Compatibility, safety, and release
Author readiness
Human owner:
Before merge
type(scope): outcome.