-
Notifications
You must be signed in to change notification settings - Fork 35
Create separate safe-outputs-assets artifact for upload_assets job #9064
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: pelikhan <[email protected]>
|
@copilot put asset files in separate artifact "assets", not in agent-outputs |
Co-authored-by: pelikhan <[email protected]>
Co-authored-by: pelikhan <[email protected]>
|
@copilot update daily code metrics |
Could you clarify what needs to be updated in the daily code metrics workflow? The workflow compiles successfully and the safe-outputs-assets artifact changes have been applied. Are you referring to updating the workflow content, recompiling it, or something else? |
|
@copilot review the code generated in the upload_assets job. There needs to be a download artifact step to download the assets artifact and the JavaScript must be pointing at the correct folder |
Reviewed the upload_assets job. The implementation is correct:
The paths match correctly between the download step and the JavaScript processing code. |
|
@copilot the JavaScript that uploads assets should fail if it cannot find one of the asset |
Modified the JavaScript to use core.setFailed() instead of core.warning() when: - Asset file is not found at expected path - SHA mismatch occurs between expected and computed hash - Invalid asset entry is missing required fields - File copy operation fails This ensures the upload_assets job fails immediately if any asset cannot be processed, providing clear feedback about missing or corrupted files. Co-authored-by: pelikhan <[email protected]>
Modified
Commit: 70ec338 |
The
upload_assetsjob was failing to download a non-existentsafe-outputs-assetsartifact, preventing generated assets (charts, images) from being published to orphaned branches.Changes
generateSafeOutputsAssetsArtifactUpload()function to create a dedicated artifact upload step for safe-outputs assetsResult
Assets are now uploaded as a separate, dedicated artifact:
The upload_assets job downloads this separate
safe-outputs-assetsartifact to access generated assets at/tmp/gh-aw/safeoutputs/assets/. This clean separation ensures assets are handled independently from other agent artifacts.The JavaScript upload handler now fails the job immediately if any expected asset is missing, corrupted (SHA mismatch), or cannot be processed, providing clear error feedback rather than silently continuing with warnings.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.