Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d4ba7722c7 | ||
|
|
43ccb6ced0 | ||
|
|
b34cde9d19 |
No files matched your search
@@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
### Fixed
|
||||
- Added `DEBIAN_FRONTEND=noninteractive` to browser dependency installation to prevent interactive prompts from blocking CI
|
||||
- Strip `<rerunFailure>` elements from JUnit XML before upload to fix CircleCI test result parsing errors
|
||||
- Version commit push failures no longer fail the build (handles race conditions between concurrent builds)
|
||||
|
||||
## [0.5.0] - 2025-12-28
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
############################################################################
|
||||
## frontend_test_collect_results.sh
|
||||
## Collect JUnit XML Test Results
|
||||
##
|
||||
##
|
||||
## This script collects JUnit XML test results from the Maven
|
||||
## surefire reports directory for CircleCI test reporting.
|
||||
##
|
||||
@@ -16,3 +16,16 @@ set -e
|
||||
echo "Collecting JUnit XML test results"
|
||||
mkdir -p ~/test-results/junit/
|
||||
find . -type f -regex ".*/target/surefire-reports/.*xml" -exec cp {} ~/test-results/junit/ \; || true
|
||||
|
||||
############################################################################
|
||||
## Strip rerunFailure elements that CircleCI's JUnit parser doesn't support
|
||||
## These are added by Maven Surefire when rerunFailingTestsCount > 0
|
||||
############################################################################
|
||||
echo "Cleaning JUnit XML files for CircleCI compatibility"
|
||||
for xml_file in ~/test-results/junit/*.xml; do
|
||||
if [ -f "$xml_file" ]; then
|
||||
sed -i.bak '/<rerunFailure/,/<\/rerunFailure>/d' "$xml_file" 2>/dev/null || \
|
||||
sed -i '' '/<rerunFailure/,/<\/rerunFailure>/d' "$xml_file" 2>/dev/null || true
|
||||
rm -f "${xml_file}.bak" 2>/dev/null || true
|
||||
fi
|
||||
done
|
||||
@@ -28,14 +28,22 @@ if [[ -n "$(git status --porcelain pom.xml)" ]]; then
|
||||
git add pom.xml
|
||||
git commit -m "Bump version to $NEW_VERSION [skip ci]"
|
||||
|
||||
# Determine target branch
|
||||
if [ -n "$CIRCLE_BRANCH" ]; then
|
||||
git push origin "HEAD:${CIRCLE_BRANCH}"
|
||||
TARGET_BRANCH="$CIRCLE_BRANCH"
|
||||
else
|
||||
# Tag build: push to main (or your default branch)
|
||||
git push origin HEAD:main
|
||||
TARGET_BRANCH="main"
|
||||
fi
|
||||
|
||||
echo "Version updated to: $NEW_VERSION and pushed"
|
||||
# Try to push, but don't fail the build if push fails
|
||||
# This can happen if another build pushed first (race condition)
|
||||
if git push origin "HEAD:${TARGET_BRANCH}"; then
|
||||
echo "Version updated to: $NEW_VERSION and pushed to ${TARGET_BRANCH}"
|
||||
else
|
||||
echo "WARNING: Failed to push version commit to ${TARGET_BRANCH}"
|
||||
echo "This is not fatal - version will be updated on next build"
|
||||
echo "Common causes: concurrent builds, branch protection rules"
|
||||
fi
|
||||
else
|
||||
echo "No version change needed"
|
||||
fi
|
||||
Reference in new issue
Block a user