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:
6
.github/workflows/benchmark.yml
vendored
6
.github/workflows/benchmark.yml
vendored
@@ -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
|
||||
|
||||
3
.github/workflows/renovate.yml
vendored
3
.github/workflows/renovate.yml
vendored
@@ -24,9 +24,6 @@ jobs:
|
||||
if [ -n "${{ secrets.CHARON_TOKEN }}" ]; then
|
||||
echo "Using CHARON_TOKEN" >&2
|
||||
echo "GITHUB_TOKEN=${{ secrets.CHARON_TOKEN }}" >> $GITHUB_ENV
|
||||
elif [ -n "${{ secrets.CPMP_TOKEN }}" ]; then
|
||||
echo "Using CPMP_TOKEN fallback" >&2
|
||||
echo "GITHUB_TOKEN=${{ secrets.CPMP_TOKEN }}" >> $GITHUB_ENV
|
||||
else
|
||||
echo "Using default GITHUB_TOKEN from Actions" >&2
|
||||
echo "GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_ENV
|
||||
|
||||
Reference in New Issue
Block a user