feat: Implement safe integer conversions and enhance CI/CD workflows

- Added safeIntToUint and safeFloat64ToUint functions to prevent integer overflow in proxy_host_handler.go.
- Updated GetAvailableSpace method in backup_service.go with overflow protection.
- Improved LiveLogViewer tests by using findBy queries to avoid race conditions.
- Adjusted benchmark.yml to handle permissions and increased alert threshold to 175%.
- Created CI/CD Failure Remediation Plan document for addressing workflow failures.
This commit is contained in:
GitHub Actions
2025-12-13 01:04:46 +00:00
parent cc9e4a6c28
commit 343819a0d8
7 changed files with 727 additions and 23 deletions

View File

@@ -43,9 +43,13 @@ jobs:
tool: 'go'
output-file-path: backend/output.txt
github-token: ${{ secrets.GITHUB_TOKEN }}
# Only push results on main branch, not PRs (avoids permission errors on forks)
auto-push: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
# Skip fetching gh-pages on PRs to avoid permission errors
skip-fetch-gh-pages: ${{ github.event_name == 'pull_request' }}
# Show alert with commit comment on detection of performance regression
alert-threshold: '150%'
# Threshold increased to 175% to account for CI variability
alert-threshold: '175%'
comment-on-alert: true
fail-on-alert: false
# Enable Job Summary for PRs