Compare commits

..
Author SHA1 Message Date
james.maes 5bc3167286 Merge pull request #29 from QRun-IO/develop
fix: release resolved Maven publication POMs
2026-10-20 18:39:47 -05:00
james.maes 1a3368e119 Merge pull request #27 from QRun-IO/develop
release: fail closed on GitHub publication errors
2026-10-20 07:39:37 -05:00
james.maes 1ddba883c9 Merge pull request #25 from QRun-IO/develop
release: central QQQ CI and release workers [minor]
2026-10-20 07:17:29 -05:00
james.maes da8044d6f2 Merge pull request #23 from QRun-IO/develop
release: qqq-orb 0.6.9 (snapshot refresh)
2026-10-14 10:04:52 -05:00
james.maes 67ba48da1f Merge pull request #18 from QRun-IO/develop
release: publish orb 0.6.8 with CircleCI npm OIDC correction
2026-09-29 15:17:00 -05:00
james.maes 5196609974 Merge pull request #16 from QRun-IO/develop
release: publish npm Trusted Publishing support in orb 0.6.7
2026-09-29 14:18:44 -05:00
james.maes 49e09a6776 Merge pull request #14 from QRun-IO/develop
release: publish orb log-safety fix as 0.6.6
2026-09-29 13:38:22 -05:00
james.maes 748016f105 Merge pull request #10 from QRun-IO/develop
[minor] feat: add node_app_* job family
2026-02-27 12:59:51 -06:00
james.maes 6514aaa688 Merge pull request #8 from QRun-IO/develop
fix(ci): remove legacy tag-based publish workflow
2026-01-31 18:46:54 -06:00
james.maes 3ac47adc21 Merge pull request #7 from QRun-IO/develop
Release: auto-publish pipelines and security scanning
2026-01-31 18:40:34 -06:00
10 changed files with 29 additions and 83 deletions

No files matched your search

-1
View File
@@ -72,7 +72,6 @@ jobs:
bash tests/test_maven_ci_push.sh
bash tests/test_create_github_release.sh
bash tests/test_maven_ci_cache.sh
bash tests/test_maven_test_results.sh
bash tests/test_maven_ci_install.sh
bash tests/test_snapshot_refresh.sh
bash tests/test_maven_settings_output.sh
-1
View File
@@ -81,7 +81,6 @@ test-pipelines: pack
bash tests/test_maven_ci_push.sh
bash tests/test_create_github_release.sh
bash tests/test_maven_ci_cache.sh
bash tests/test_maven_test_results.sh
bash tests/test_maven_ci_install.sh
bash tests/test_snapshot_refresh.sh
bash tests/test_maven_settings_output.sh
+3 -5
View File
@@ -1,8 +1,9 @@
description: >
Publishes artifacts to Maven Central (Sonatype Central Portal)
- Configures Maven credentials without logging settings
- Restores Maven dependency cache
- Debugs Maven settings to verify configuration
- Sets up GPG signing for artifact verification
- Deploys signed artifacts and waits for confirmed Central release publication
- Deploys signed artifacts to Maven Central using release profile
- Saves Maven cache for future builds
steps:
@@ -14,9 +15,6 @@ steps:
command: <<include(scripts/mvn_jar_deploy_gpg_setup.sh)>>
- run:
name: Publish to Sonatype Central (releases and SNAPSHOTs)
# Central's native publication wait can be silent for its 30-minute limit.
# Let Maven return its real result before CircleCI's inactivity watchdog.
no_output_timeout: 35m
command: <<include(scripts/mvn_jar_deploy.sh)>>
- save_cache:
paths:
-3
View File
@@ -27,10 +27,7 @@ set -e
##############################################
# Resolve CI-friendly coordinates without stripping parent/BOM configuration.
# Flatten must share this Maven process so deploy uses the resolved project POMs.
# Central 0.8.x: this completion flag overrides inherited literal waitUntil=uploaded.
# Do not report a release as successful until Central confirms publication.
mvn -s /tmp/circleci/mvn-settings.xml -P release -B -DskipTests \
-Dgpg.keyname="$GPG_KEYNAME" -Dgpg.passphrase="$GPG_PASSPHRASE" \
-DwaitForPublishCompletion=true \
-Dflatten.mode=resolveCiFriendliesOnly -DupdatePomFile=true \
org.codehaus.mojo:flatten-maven-plugin:1.7.3:flatten deploy
+24 -8
View File
@@ -1,10 +1,26 @@
#!/bin/bash
# Collect unit and integration JUnit reports without losing same-named module suites.
set -euo pipefail
mkdir -p "$HOME/test-results/junit"
while IFS= read -r -d '' report; do
destination="$HOME/test-results/junit/${report#./}"
mkdir -p "$(dirname "$destination")"
cp "$report" "$destination"
done < <(find . -type f \( -path '*/target/surefire-reports/TEST-*.xml' -o -path '*/target/failsafe-reports/TEST-*.xml' \) -print0)
############################################################################
## mvn_verify_save_test_results.sh
## Test Results Collection Script
##
## This script collects JUnit test results from Maven Surefire reports
## and saves them to the CircleCI test results directory for reporting.
## It finds all XML test result files and copies them to the standard location.
##
## Process:
## 1. Creates test results directory structure
## 2. Finds all Surefire XML report files
## 3. Copies test results to CircleCI test results directory
##
## Usage: Called by CircleCI orb command mvn_verify
## Output: Collects and saves JUnit test results for CircleCI reporting
############################################################################
set -e
#############################################################
## Create test results directory and collect JUnit reports ##
#############################################################
mkdir -p ~/test-results/junit/
find . -type f -regex ".*/target/surefire-reports/.*xml" -exec cp {} ~/test-results/junit/ \;
+1 -1
View File
@@ -164,7 +164,7 @@
"on": {
"push": {
"branches": [
"main"
"**"
]
},
"pull_request": {
+1 -2
View File
@@ -51,8 +51,7 @@ class SpecialistNativeTests(unittest.TestCase):
self.assertEqual(steps[3], original['jobs']['build-and-test']['steps'][3])
self.assertEqual(steps[4]['if'], 'always()')
caller = bridge.canonical('mcp-rag', SHA)
# Feature branches run once through the PR event, not also on push.
self.assertEqual(caller['on']['push'], {'branches': ['main']})
self.assertEqual(caller['on']['push'], {'branches': ['**']})
self.assertEqual(caller['on']['pull_request'], {'branches': ['main']})
self.assertEqual(caller['jobs']['validate']['secrets'], {
'QQQ_MCP_VOYAGE_API_KEY': '${{ secrets.QQQ_MCP_VOYAGE_API_KEY }}'})
-11
View File
@@ -63,17 +63,6 @@ class MavenCiContract(unittest.TestCase):
self.assertIn("-Dgpg.keyname=", deploy)
self.assertIn("-DskipTests", deploy)
def test_publication_wait_outlives_central_native_timeout(self):
steps = read("src/commands/mvn_jar_deploy.yml")["steps"]
publish = next(s["run"] for s in steps if "mvn_jar_deploy.sh" in str(s))
# Central 0.8.x waits silently up to 1800 seconds; the default Circle
# ten-minute inactivity limit killed an already-uploaded RC in production.
timeout = publish["no_output_timeout"]
self.assertTrue(timeout.endswith("m"))
self.assertGreater(int(timeout[:-1]), 30)
self.assertLessEqual(int(timeout[:-1]), 40)
self.assertNotIn("max_auto_reruns", publish)
if __name__ == "__main__":
unittest.main()
-16
View File
@@ -49,26 +49,10 @@ release
-DskipTests
-Dgpg.keyname=test-key
-Dgpg.passphrase=test-passphrase
-DwaitForPublishCompletion=true
-Dflatten.mode=resolveCiFriendliesOnly
-DupdatePomFile=true
org.codehaus.mojo:flatten-maven-plugin:1.7.3:flatten
deploy
EOF
diff -u "$test_dir/expected-args" "$test_dir/mvn-args"
# A Central validation failure or publication timeout must fail this wrapper.
cat > "$test_dir/bin/mvn" <<'EOF'
#!/bin/bash
exit 42
EOF
set +e
PATH="$test_dir/bin:$PATH" GPG_KEYNAME=test-key GPG_PASSPHRASE=test-passphrase \
bash "$test_dir/deploy.sh" > "$test_dir/failure-output" 2>&1
status=$?
set -e
if [ "$status" -ne 42 ]; then
echo 'Deploy did not preserve Maven publication failure' >&2
exit 1
fi
echo 'Maven settings setup and deploy output are safe; deploy arguments preserved'
-35
View File
@@ -1,35 +0,0 @@
#!/bin/bash
# Exercise the actual collector with colliding suites, spaces and non-JUnit XML.
set -euo pipefail
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")/../src/scripts" && pwd)
scratch=$(mktemp -d)
trap 'rm -rf "$scratch"' EXIT
export HOME="$scratch/home"
mkdir -p "$scratch/repo"
cd "$scratch/repo"
# A repository with no tests is valid.
bash "$script_dir/mvn_verify_save_test_results.sh"
[[ -d "$HOME/test-results/junit" ]]
[[ -z "$(find "$HOME/test-results/junit" -type f -print)" ]]
for module in 'module one' 'module two'; do
for runner in surefire failsafe; do
report="$module/target/$runner-reports/TEST-shared.xml"
mkdir -p "$(dirname "$report")"
printf '<testsuite name="%s %s"/>\n' "$module" "$runner" > "$report"
done
done
printf '<failsafe-summary/>\n' > 'module one/target/failsafe-reports/failsafe-summary.xml'
printf '<configuration/>\n' > 'module one/target/surefire-reports/configuration.xml'
mkdir -p unrelated
printf '<testsuite/>\n' > unrelated/TEST-ignore.xml
bash "$script_dir/mvn_verify_save_test_results.sh"
[[ "$(find "$HOME/test-results/junit" -type f | wc -l)" -eq 4 ]]
for module in 'module one' 'module two'; do
for runner in surefire failsafe; do
report="$module/target/$runner-reports/TEST-shared.xml"
cmp "$report" "$HOME/test-results/junit/$report"
done
done
printf 'PASS: unit/integration reports, module collisions, spaces, exclusions and no tests\n'