Add daily release update check to compile command#7032
Conversation
|
@copilot make sure it only fails silently. |
- Create update_check.go module with daily check logic - Add --no-check-update flag to compile command - Check disabled in CI/MCP server mode - Track last check time in temp directory - Use go-gh to query GitHub releases API - Non-blocking check with connectivity error handling - Display update message with upgrade instructions - Add comprehensive tests for update check functionality Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
- Verified --no-check-update flag works correctly - Confirmed CI mode detection works - Tested update check runs non-blocking - All linting and formatting checks pass Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Confirmed - all failure cases fail silently:
Debug logs ( The implementation already meets the requirement. (eb4c32d) |
|
@copilot use isRelease helper to determine if it is a released build |
- Export isReleasedVersion as IsReleasedVersion in pkg/workflow - Update update_check.go to use workflow.IsReleasedVersion - More robust check than simple "dev" string matching - Validates semantic versioning format and filters dev/dirty/test builds Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Done. Exported |
|
@copilot add integration test |
- Test update check disabled in CI mode - Test --no-check-update flag functionality - Test timestamp-based check frequency - Test development build detection - Test flag appears in help text - All tests use //go:build integration tag - Tests build actual binary and verify end-to-end behavior Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Added integration tests in
Tests build the actual binary and verify end-to-end behavior using |
|
🎉 Yo ho ho! Smoke Copilot Safe Inputs found the treasure and completed successfully! ⚓💰 |
|
✅ Firewall validation complete... Smoke Codex Firewall confirmed network sandboxing is operational. 🛡️ |
|
🤖 DIAGNOSTIC COMPLETE: Smoke Copilot No Firewall STATUS: ALL_UNITS_OPERATIONAL. MISSION_SUCCESS. |
|
📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤 |
|
🎬 THE END — Smoke Claude MISSION: ACCOMPLISHED! The hero saves the day! ✨ |
|
🎉 Yo ho ho! Changeset Generator found the treasure and completed successfully! ⚓💰 |
|
✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟 |
Smoke Test Results
Overall Status: FAIL The
|
Smoke Test ResultsLast 2 merged PRs:
Test Results:
Status: FAIL (gh tool not authenticated)
|
Smoke Test ResultsLast 2 Merged PRs:
Test Results:
Overall: PASS cc: @pelikhan
|
|
OpenAI curl blocked: ✅
|
|
PRs:
|
Smoke Test Results - Claude Sonnet 4.5PRs Reviewed:
Tests: Status: PASS (5/6 tests successful)
|
Update Check Feature for Compile Command
Implementation Complete ✅
pkg/cli/update_check.go)IsReleasedVersionhelper for robust version detection--no-check-updateflag to compile commandFeatures
✅ Daily check - Only checks once per 24 hours, tracked in
/tmp/gh-aw/gh-aw-last-update-check✅ CI/MCP disabled - Automatically disabled in CI environments and MCP server mode
✅ Non-blocking - Runs in goroutine, doesn't slow down compilation
✅ Error handling - Silently ignores all connectivity/API errors
✅ go-gh integration - Uses existing
github.com/cli/go-gh/v2dependency✅ User control -
--no-check-updateflag to disable manually✅ Clear messaging - Shows update instructions:
gh extension upgrade githubnext/gh-aw✅ Robust version detection - Uses
IsReleasedVersionhelper for proper semantic versioning validationTesting
--no-check-updateflag functionalityOriginal prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.