Changes
Commits since v1.0.1:
- chore: update version to 1.0.2 [skip-tag] (dd97210)
- [FIX] - resolve data race in TestAdvancedMonitorAlerts and optimize alert processing: - Fixed data race in TestAdvancedMonitorAlerts with proper synchronization; - Optimized CheckAlertRules method to reduce mutex lock time using RLock(); - Enhanced test synchronization with proper timing and safe data access; - Improved thread safety and performance in alert processing; (7fab73e)
Release Notes
Fixed
- Race Condition Resolution in Advanced Monitoring
- Fixed data race in TestAdvancedMonitorAlerts with proper synchronization between background alert processing and test access
- Optimized CheckAlertRules method in advanced_monitoring.go to reduce mutex lock time:
- Changed from exclusive lock to RLock() for reading alert rules list
- Minimized critical section locking to only active alerts modification
- Reduced overall mutex blocking time for better concurrency
- Enhanced test synchronization in advanced_monitoring_test.go:
- Added delay before test execution to ensure background goroutines are properly started
- Implemented safe alert data access by creating copies to avoid race conditions
- Improved test reliability with proper timing controls and synchronization
Changed
- Performance Improvements in Alert Processing
- Reduced mutex contention in AlertManager.CheckAlertRules method by using read-write locks appropriately
- Optimized concurrent access patterns for better performance under high load
- Enhanced thread safety while maintaining backward compatibility
Security
- Enhanced Test Security
- Eliminated potential data exposure in test scenarios with proper synchronization
- Improved test isolation to prevent cross-test contamination
- Added comprehensive race condition detection with Go race detector
Installation
Download the appropriate binary for your platform from the assets below.
Linux/macOS:
# Download binary
curl -L -o gitlab-jira-hook https://github.com/atlet99/gitlab-jira-hook/releases/download/v1.0.2/gitlab-jira-hook-*-linux-amd64
# Make executable and move to PATH
chmod +x gitlab-jira-hook
sudo mv gitlab-jira-hook /usr/local/bin/Windows:
Download the .exe file and add it to your PATH.
Docker:
docker run --rm ghcr.io/atlet99/gitlab-jira-hook:v1.0.2 --helpVerification:
All binaries are signed with Cosign and include checksums for verification:
# Verify checksum
sha256sum -c gitlab-jira-hook-*-linux-amd64.sha256
# Verify Cosign signature (requires cosign CLI)
cosign verify-blob \\
--key cosign.pub \\
--signature gitlab-jira-hook-*-linux-amd64.sig \\
gitlab-jira-hook-*-linux-amd64