fix: CI reliability improvements - timeouts, test timing, and integration tags - #4
Merged
Conversation
- Add job timeout (15min) and test timeout (10min) to prevent long waits - Tag Temporal tests as integration tests (skip in CI) - Fix JWT test timing issues (increase token duration from 500ms to 2s) Changes: - .github/workflows/ci.yml: Add timeout-minutes and -timeout flag - backend/pkg/temporal/*_test.go: Add //go:build integration tags - backend/pkg/auth/jwt_test.go: Increase test token durations This resolves Backend Tests timeout and JWT test failures.
- Fix Vitest command: use --run instead of --watchAll=false - Remove non-existent format:check step from CI Changes: - .github/workflows/ci.yml: Update test command and remove format check This resolves Frontend Tests 'Unknown option --watchAll' error.
- Upgrade github/codeql-action/upload-sarif from v2 to v3 - Add security-events: write permission to security-scan job - Add contents: read permission for proper access This resolves: - CodeQL Action v2 deprecation warning - 'Resource not accessible by integration' error when uploading SARIF results Changes: - .github/workflows/ci.yml: Update CodeQL action versions and add permissions
- Add workflow-level permissions (contents: read, security-events: write) - Upgrade github/codeql-action/upload-sarif from v3 to v4 - Remove redundant job-level permissions (inherited from workflow) This resolves: - 'Resource not accessible by integration' error - CodeQL Action v3 deprecation warning (v4 is latest) Changes: - .github/workflows/ci.yml: Add workflow permissions and upgrade CodeQL action
- add actions read permission for SARIF uploads - start MinIO via docker run and clean up - upgrade upload-artifact to v4
- guard location health checks for empty IDs - default NATS logger to nop for nil input - fix cache pipeline test JSON encoding - lock logger test writer for concurrency - align middleware context key extraction - remove unused temporal helper
- move AdvancedSearch/ContextMenu hooks to dedicated files - update UI tests for current classes and behavior - harden toast container defaults and exports - fix easter egg tracking and loader behavior - add dashboard refresh callback memoization
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR improves CI/CD pipeline reliability and test stability by adding timeout configurations, adjusting test timing parameters, and properly tagging integration tests.
Changes Made
1. CI Workflow Improvements (
.github/workflows/ci.yml)-timeout=10m) for Go test execution--watchAll=false(Jest syntax) to--run(Vitest syntax)format:checkstep that doesn't exist in package.json2. JWT Test Timing Fixes (
backend/pkg/auth/jwt_test.go)TestGenerateToken_CustomExpiration(lines 99, 111)TestGenerateBreakGlassToken_ExpirationCheck(lines 326, 344)3. Integration Test Tagging
//go:build integrationto:backend/pkg/temporal/activities_test.gobackend/pkg/temporal/workflows_test.go-tags=integrationTesting Performed
✅ Local verification:
-tags=integration⏳ CI verification: Awaiting CI run to confirm:
Breaking Changes
None - this is a CI/test infrastructure improvement.
Remaining Known Issues
This PR addresses the most critical CI failures. Additional issues to be addressed in follow-up work:
Checklist
Related Issues
Part of comprehensive CI remediation effort following PR #3.
Deployment Notes
No deployment changes required - CI configuration only.