-
Notifications
You must be signed in to change notification settings - Fork 2
Enhance Production Build Workflow with Detailed Logging, Bundle Analysis, Event Metadata Tracking, Direct Artifact Linking, and Build Verification #1155
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: litlfred <662242+litlfred@users.noreply.github.com>
|
please proceed with implementation. please also make sure the that PR Comment Updates also include information on the build artefacts. if possible, each step should have its own log. @copilot |
Co-authored-by: litlfred <662242+litlfred@users.noreply.github.com>
Co-authored-by: litlfred <662242+litlfred@users.noreply.github.com>
Co-authored-by: litlfred <662242+litlfred@users.noreply.github.com>
Co-authored-by: litlfred <662242+litlfred@users.noreply.github.com>
|
add lightweight logging to the workflows so every run records the exact event payload and nearby workflow-run metadata. That will let user see, in the Actions job log, exactly what GitHub delivered (event name, action, who triggered it, the whole event JSON), and whether other branch-deployment runs for the same commit/head_sha were already created (and how they were triggered). commits should be linked back to the GitHub code view for that commit. if possible also link to branch names and PRs |
Per @litlfred approval: - Added workflow event logging script (log_workflow_event.py) - Modified workflow to use Python build scripts with comprehensive logging - Added separate log files for each workflow step - Integrated build artifacts information into PR comments - Added timestamped logging for all build steps - Created artifacts for: workflow events, build logs, webpack stats, bundle analysis - Each artifact has its own log file for better debugging - PR comments now include links to download build artifacts - Event metadata includes commit links, branch links, PR links - All GitHub event payload and context logged for debugging Co-authored-by: litlfred <662242+litlfred@users.noreply.github.com>
Implementation complete in commit 341851c. Changes made:
All artifacts are uploaded with 90-day retention and accessible via the workflow artifacts section.
Lightweight logging implemented in commit 341851c. New event logging captures:
Event metadata is logged immediately after checkout and saved to |
Co-authored-by: litlfred <662242+litlfred@users.noreply.github.com>
🚀 Deployment Status: Not Deployed🔗 Quick Actions: 📝 Recent Change SummaryLatest commit: 📊 Overall ProgressBranch: Available Actions: 💡 Click deploy links above, then "Run workflow" to deploy. Branch name will be pre-filled. |
🔒 Security Check Report🟢 5 passed • 🟡 2 warnings Security Checks
🔍 Action Items
|
|
references here do not work as links @copilot. icon is broken link: I expected to see multiple artifacts but only saw one I wanted an artifact for each step;s log/output. |
Per @litlfred feedback: - Changed from single zipped artifact to 6 separate artifacts - Each log file now uploaded individually for direct access - Updated PR comment to show table of individual artifacts with links - Fixed broken icon by removing badge image, using plain markdown links - Each artifact contains single file (workflow-event.log, build-logs.txt, etc.) - No zip extraction needed - users can download .txt/.json/.log files directly - Updated workflow summary to list individual artifact names Co-authored-by: litlfred <662242+litlfred@users.noreply.github.com>
... Fixed in commit 6a3a023. Changes:
The PR comment now shows a table listing all 6 artifacts with their descriptions and file types. Each can be downloaded individually from the workflow artifacts section. |
🚀 Deployment Status: Successfully Deployed 🟢📊 Deployment InformationWorkflow: Deploy Feature Branch (🔀 Pull Request) 🌐 Preview URLs🔗 Quick Actions📦 Build ArtifactsBuild logs and webpack stats are available as separate downloadable artifacts:
How to access:
📊 Overall ProgressBranch: 📋 Deployment Timeline
💡 This comment is automatically updated as the deployment progresses. |
🚀 Deployment Status: Setting Up Environment📊 Deployment InformationWorkflow: Deploy Feature Branch (🔀 Pull Request) 🔗 Quick Actions
📦 Build Artifacts Status
Note: workflow-event-log is available immediately. Other artifacts will be uploaded as steps complete. 📊 Overall ProgressBranch: 📋 Deployment Timeline
💡 This comment is automatically updated as the deployment progresses. |
🚀 Deployment Status: Building Application📊 Deployment InformationWorkflow: Deploy Feature Branch (🔀 Pull Request) 🔗 Quick Actions
📦 Build Artifacts Status
🟢 All artifacts now available! Click artifact names above or visit workflow artifacts section. 📊 Overall ProgressBranch: 📋 Deployment Timeline
💡 This comment is automatically updated as the deployment progresses. |
|
workflowevent log is available early, but it says pending until the full build completes/other artifacts are uploaded. can we make sure all artifact status is updated appropraitely during build process. also, please make the upload file name to follow the pattern {filename}.{runid}.{file_extension} so that when a user downloads, for example, the build logs for different runs, they will not need to have to overwrite existing file or be prompted to choose a non duplicating name @copilot |
🚀 Deployment Status: Deploying to GitHub Pages📊 Deployment InformationWorkflow: Deploy Feature Branch (🔀 Pull Request) 🔗 Quick Actions📦 Build Artifacts Status
Note: workflow-event-log is available immediately. Other artifacts will be uploaded as steps complete. 📊 Overall ProgressBranch: 📋 Deployment Timeline
💡 This comment is automatically updated as the deployment progresses. |
🚀 Deployment Status: Verifying Deployment📊 Deployment InformationWorkflow: Deploy Feature Branch (🔀 Pull Request) 🔗 Quick Actions📦 Build Artifacts Status
Note: workflow-event-log is available immediately. Other artifacts will be uploaded as steps complete. 📊 Overall ProgressBranch: 📋 Deployment Timeline
💡 This comment is automatically updated as the deployment progresses. |
🚀 Deployment Status: Successfully Deployed 🟢📊 Deployment InformationWorkflow: Deploy Feature Branch (🔀 Pull Request) 🌐 Preview URLs🔗 Quick Actions📦 Build Artifacts Status
🟢 All artifacts available! Click artifact names above or visit workflow artifacts section. How to download:
📊 Overall ProgressBranch: 📋 Deployment Timeline
💡 This comment is automatically updated as the deployment progresses. |
|
@copilot did you implement anything with previous comment request? if not please do so |
Per PR review feedback from @litlfred: - Changed exit code from 0 to 2 when event logging encounters errors - Added GitHub Actions workflow annotations (::warning::) to make issues visible - Exit code 2 indicates warning state (distinguishable from success) - Workflow will continue but errors are now visible in Actions UI - Addresses PR review comment on scripts/log_workflow_event.py:330 This ensures configuration issues are visible while not blocking deployment. Co-authored-by: litlfred <662242+litlfred@users.noreply.github.com>
🚀 Deployment Status: Build Started📊 Deployment InformationWorkflow: Deploy Feature Branch (🔀 Pull Request) 🔗 Quick Actions
📦 Build Artifacts Status
Note: workflow-event-log is available immediately. Other artifacts will be uploaded as steps complete. 📊 Overall ProgressBranch: 📋 Deployment Timeline
💡 This comment is automatically updated as the deployment progresses. |
🚀 Deployment Status: Setting Up Environment📊 Deployment InformationWorkflow: Deploy Feature Branch (🔀 Pull Request) 🔗 Quick Actions
📦 Build Artifacts Status
Note: workflow-event-log is available immediately. Other artifacts will be uploaded as steps complete. 📊 Overall ProgressBranch: 📋 Deployment Timeline
💡 This comment is automatically updated as the deployment progresses. |
🚀 Deployment Status: Building Application📊 Deployment InformationWorkflow: Deploy Feature Branch (🔀 Pull Request) 🔗 Quick Actions
📦 Build Artifacts Status
🟢 All artifacts now available! Click artifact names above or visit workflow artifacts section. 📊 Overall ProgressBranch: 📋 Deployment Timeline
💡 This comment is automatically updated as the deployment progresses. |
🚀 Deployment Status: Deploying to GitHub Pages📊 Deployment InformationWorkflow: Deploy Feature Branch (🔀 Pull Request) 🔗 Quick Actions📦 Build Artifacts Status
Note: workflow-event-log is available immediately. Other artifacts will be uploaded as steps complete. 📊 Overall ProgressBranch: 📋 Deployment Timeline
💡 This comment is automatically updated as the deployment progresses. |
🚀 Deployment Status: Verifying Deployment📊 Deployment InformationWorkflow: Deploy Feature Branch (🔀 Pull Request) 🔗 Quick Actions📦 Build Artifacts Status
Note: workflow-event-log is available immediately. Other artifacts will be uploaded as steps complete. 📊 Overall ProgressBranch: 📋 Deployment Timeline
💡 This comment is automatically updated as the deployment progresses. |
🚀 Deployment Status: Successfully Deployed 🟢📊 Deployment InformationWorkflow: Deploy Feature Branch (🔀 Pull Request) 🌐 Preview URLs🔗 Quick Actions📦 Build Artifacts Status
🟢 All artifacts available! Click artifact names above or visit workflow artifacts section. How to download:
📊 Overall ProgressBranch: 📋 Deployment Timeline
💡 This comment is automatically updated as the deployment progresses. |
🚀 Deployment Status: Build Started📊 Deployment InformationWorkflow: Deploy Feature Branch (🔀 Pull Request) 🔗 Quick Actions
📦 Build Artifacts Status
Note: workflow-event-log is available immediately. Other artifacts will be uploaded as steps complete. 📊 Overall ProgressBranch: 📋 Deployment Timeline
💡 This comment is automatically updated as the deployment progresses. |
🚀 Deployment Status: Setting Up Environment📊 Deployment InformationWorkflow: Deploy Feature Branch (🔀 Pull Request) 🔗 Quick Actions
📦 Build Artifacts Status
Note: workflow-event-log is available immediately. Other artifacts will be uploaded as steps complete. 📊 Overall ProgressBranch: 📋 Deployment Timeline
💡 This comment is automatically updated as the deployment progresses. |
🚀 Deployment Status: Building Application📊 Deployment InformationWorkflow: Deploy Feature Branch (🔀 Pull Request) 🔗 Quick Actions
📦 Build Artifacts Status
🟢 All artifacts now available! Click artifact names above or visit workflow artifacts section. 📊 Overall ProgressBranch: 📋 Deployment Timeline
💡 This comment is automatically updated as the deployment progresses. |
|
please make the workflow event log structured JSON and have the event payload be a part of that object instead of the semi-structured text: Please review the other log files to see if they can be readily made to be in JSON format. @copilot |
🚀 Deployment Status: Deploying to GitHub Pages📊 Deployment InformationWorkflow: Deploy Feature Branch (🔀 Pull Request) 🔗 Quick Actions📦 Build Artifacts Status
Note: workflow-event-log is available immediately. Other artifacts will be uploaded as steps complete. 📊 Overall ProgressBranch: 📋 Deployment Timeline
💡 This comment is automatically updated as the deployment progresses. |
🚀 Deployment Status: Verifying Deployment📊 Deployment InformationWorkflow: Deploy Feature Branch (🔀 Pull Request) 🔗 Quick Actions📦 Build Artifacts Status
Note: workflow-event-log is available immediately. Other artifacts will be uploaded as steps complete. 📊 Overall ProgressBranch: 📋 Deployment Timeline
💡 This comment is automatically updated as the deployment progresses. |
🚀 Deployment Status: Successfully Deployed 🟢📊 Deployment InformationWorkflow: Deploy Feature Branch (🔀 Pull Request) 🌐 Preview URLs🔗 Quick Actions📦 Build Artifacts Status
🟢 All artifacts available! Click artifact names above or visit workflow artifacts section. How to download:
📊 Overall ProgressBranch: 📋 Deployment Timeline
💡 This comment is automatically updated as the deployment progresses. |

🎉 Implementation Complete - Ready for Testing
This PR successfully implements comprehensive build logging, bundle analysis, event metadata tracking, and direct artifact linking for the SGeX Workbench production build workflow.
✅ All Features Implemented
Security ✅
Build Logging ✅
Bundle Analysis ✅
Event Tracking ✅
Direct Artifact Links ✅
github.com/{repo}/actions/runs/{run_id}/artifacts/{id}Build Verification ✅
🔧 Recent Fixes (Commits d442e2e & current)
📊 Final Status
All 8 PR review comments addressed ✅
All user feedback implemented ✅
Ready for workflow testing ✅
Original prompt
Fixes #1151
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.