Compare commits

...
12 Commits
Author SHA1 Message Date
james.maes bfd41c8e0d Merge pull request #37 from QRun-IO/develop
release: ship shared policy continuation fix
2026-10-20 20:08:21 -05:00
james.maes cec106ce30 Merge pull request #36 from QRun-IO/fix/policy-continuation-heredoc
fix: escape policy heredoc in continued Circle config
2026-10-20 20:05:01 -05:00
james.maesandCodex ba6a3c6f92 fix: escape policy heredoc in continued Circle config
Co-Authored-By: Codex <noreply@openai.com>
2026-10-20 20:02:08 -05:00
james.maes 43144c974b Merge pull request #34 from QRun-IO/fix/mcp-single-validation
fix: validate MCP pull requests once
2026-10-20 19:45:59 -05:00
james.maesandCodex 6806de4892 fix: validate MCP pull requests once
Co-Authored-By: Codex <noreply@openai.com>
2026-10-20 19:43:46 -05:00
james.maes 9c30a30754 Merge pull request #33 from QRun-IO/develop
release: promote Maven reporting and publication fixes
2026-10-20 19:23:39 -05:00
james.maes a9d51ebd47 Merge pull request #32 from QRun-IO/fix/integration-test-results
fix: preserve Maven reports and publication completion
2026-10-20 19:21:25 -05:00
james.maesandCodex 284c69aa3e fix: allow Central publication wait to finish
Co-Authored-By: Codex <noreply@openai.com>
2026-10-20 19:18:31 -05:00
james.maesandCodex fb30d9acc5 fix: retain integration and multi-module test reports
Co-Authored-By: Codex <noreply@openai.com>
2026-10-20 19:16:27 -05:00
james.maes ee8953bd93 Merge pull request #31 from QRun-IO/develop
fix: release confirmed Central publication checks
2026-10-20 18:48:38 -05:00
james.maes 563f88bdad Merge pull request #30 from QRun-IO/fix/confirmed-central-publication
fix: require confirmed Central release publication
2026-10-20 18:46:32 -05:00
james.maesandCodex 4cb662f076 fix: require confirmed Central release publication
Co-Authored-By: Codex <noreply@openai.com>
2026-10-20 18:44:33 -05:00
13 changed files with 86 additions and 31 deletions

No files matched your search

+1
View File
@@ -72,6 +72,7 @@ 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,6 +81,7 @@ 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
+5 -3
View File
@@ -1,9 +1,8 @@
description: >
Publishes artifacts to Maven Central (Sonatype Central Portal)
- Restores Maven dependency cache
- Debugs Maven settings to verify configuration
- Configures Maven credentials without logging settings
- Sets up GPG signing for artifact verification
- Deploys signed artifacts to Maven Central using release profile
- Deploys signed artifacts and waits for confirmed Central release publication
- Saves Maven cache for future builds
steps:
@@ -15,6 +14,9 @@ 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,7 +27,10 @@ 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
+8 -24
View File
@@ -1,26 +1,10 @@
#!/bin/bash
# Collect unit and integration JUnit reports without losing same-named module suites.
set -euo pipefail
############################################################################
## 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/ \;
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)
+1 -1
View File
@@ -23,7 +23,7 @@ NEXT_TEMPLATE = json.loads(zlib.decompress(base64.b64decode("eNrNVE1v2zAMvedXCFq
ALL_TEMPLATE = json.loads(zlib.decompress(base64.b64decode("eNq1T7EOgjAU3PmKpjNIdHQyJg4ukmDiYkwDUkxt4UkLEkP4dwsSUojootu7u/fu7lUWQvhOpWKQ4iVazOZ2w4AMlYaVnjXKsszRjCYwZ+lFSQDuduSKEM9fk8PG32+9HSFYn9StRwmSxwJKw0gHsfjhBGnkqAQ47RWtXaGNPHYY9YpZwQ2EIC8X47bbSYOkccRhwUTUhuRU5dhYqvu5rfglZ1xxFHMGSbE91G4SYiYmZUmzgkk6/LPTplsjdPrXD3EhxIcf3sk//sEy1QbVVm09Ad15mhY=")))
STARTER_TEMPLATE = json.loads(zlib.decompress(base64.b64decode("eNp1UMGKwkAMvc9XlDmKtejR0yJ42MsKCl5EQnUzZbbTiZ0ZqiL9d1OpWqt7y3t5eS/JRUSRrNB5TVZOo8loPGwYcjvP8MI1o7IsY2aYkLm2mXdEedKSXwCL5QzW8+Xqe/EDIHmkvnkcyeXK0LFjFNAHIGvOD4rJP7plbVocPTrd7KSoLHwab2V7Kg7aIOxQkUPg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vbz2MjqPfh4rjhA==")))
POLICY_TEMPLATE = json.loads(zlib.decompress(base64.b64decode("eNqdVU1v2zAMvedXCL442Rq3aYEegubQQwYMWLGeBgxVESg2nWqVJU9S1gZB/vtIWXbsdCuw+WKJH4+PlEjtR4wlv8A6aXQyZ5fZ7IwkP8za4XaPa9ILJQvhYVoL78HqowqVhcmfwaLkIUpYpwt6WYkNoDrJZbU5r3f+yej5VTa7TDqrQ1w9nrWgFpzZ2hxWuRKOwiWuEkolnYHzULtB0CR/gvzZbH1ndELEbnWPdxRqUQVyn7XzGIDd777f3n3pQTTQpqqELsiwljWT0Xg6LaQTa4WFkfU0VnEaeESgxeI6u8iukh7c4Zj2/xD9Fs+CxbNgpVTg3iMcKn7FOL+5Yeny66eUa1nVxnq2E5XqNm7nuC6tqQj5Sck1i4p73HLNNVhrrGML9vDIdYy+ys1We5RdkEVpbMBcESesUnAdp1k6yexGmfU4/ZCRPp3MuSaesmRC78a1sD7DklrvXmT0YARGCsLpQDOSuNadvtxoL/UWKD7tvd31tATHTA163EFMmHCs7NnQhxUVmAUZZU6UsFJGFONy0qJGsmnbAOcp0XLe9nBPIC383EoLBRUslUV6xlIvvQJa5HiAG2N3tC7A5VbWHq9OUGE+oH36OESrpHNSbwisDKUpiUAXA7mVTJtQLMrlxBvVEeCEJH3NuWaixjJhzjzZdzkd5uwuBi4lqMLhtYxAB55MhljDK/FxwWZt9eA1h7q5bhl1xZIi0jFAj877NMiNroODxhCJwJFCDLAMPyzkv2Evh4B4ua3UnszaZivYfpDdYdh90Q2r3ASKkRsYnnCul03vlOhczDvadI6hTwZuR1dkwNh0kCl2aQav0o9nKADl4CTWLY6l9pKyMLeDK7Y913+ZQu3wHbW7MJeSF2OfS2Ve/vAO9Md/fCl6c/jta/E2wugw+g3AlOQ8")))
MARKETING_TEMPLATE = json.loads(zlib.decompress(base64.b64decode("eNrtW01vozoU3edXWCxmpFEJaWbXxajSW41Gbze7SYUcY4IbY1PbNM2r8t/nmo80IZCq1aN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tfO2I/lTV4qZcK/oBjuF3pKhDPvKrC+h5Jl9XRaSCDb6THarpMT5JPILXJObfXfvh4x/bqgw258bGRCea1i3D8+SzHSzFxWPTEmRAtr2tDtcy8CxVCkuAGsYDJ7w/2gL6likDd0Fr4oWRqhVaKjAwuiib1DBg/rW2G7A0y1O+ckILIRVhhQCVXgzwm7tCNNT1VfIeq7/lpFA/3wf79nZm3xdkvJ/EX2cdNh/R57sJr8BfmwhyA==")))
+1 -1
View File
@@ -164,7 +164,7 @@
"on": {
"push": {
"branches": [
"**"
"main"
]
},
"pull_request": {
+1 -1
View File
@@ -19,7 +19,7 @@
{
"run": {
"name": "Validate pattern files",
"command": "python3 << 'EOF'\nimport yaml\nimport sys\nfrom pathlib import Path\n\nerrors = []\npattern_count = 0\n\nfor yaml_file in Path('.').rglob('*.yaml'):\n if any(part.startswith('.') for part in yaml_file.parts):\n continue\n\n try:\n with open(yaml_file) as f:\n data = yaml.safe_load(f)\n\n if 'patterns/' in str(yaml_file):\n required = ['id', 'title', 'category', 'description', 'content']\n missing = [f for f in required if f not in data]\n if missing:\n errors.append(f\"{yaml_file}: Missing fields: {missing}\")\n pattern_count += 1\n\n except yaml.YAMLError as e:\n errors.append(f\"{yaml_file}: YAML parse error: {e}\")\n except Exception as e:\n errors.append(f\"{yaml_file}: Error: {e}\")\n\nprint(f\"Validated {pattern_count} pattern files\")\n\nif errors:\n print(\"\\nErrors found:\")\n for e in errors:\n print(f\" - {e}\")\n sys.exit(1)\nelse:\n print(\"All patterns valid\")\nEOF\n"
"command": "python3 \\<< 'EOF'\nimport yaml\nimport sys\nfrom pathlib import Path\n\nerrors = []\npattern_count = 0\n\nfor yaml_file in Path('.').rglob('*.yaml'):\n if any(part.startswith('.') for part in yaml_file.parts):\n continue\n\n try:\n with open(yaml_file) as f:\n data = yaml.safe_load(f)\n\n if 'patterns/' in str(yaml_file):\n required = ['id', 'title', 'category', 'description', 'content']\n missing = [f for f in required if f not in data]\n if missing:\n errors.append(f\"{yaml_file}: Missing fields: {missing}\")\n pattern_count += 1\n\n except yaml.YAMLError as e:\n errors.append(f\"{yaml_file}: YAML parse error: {e}\")\n except Exception as e:\n errors.append(f\"{yaml_file}: Error: {e}\")\n\nprint(f\"Validated {pattern_count} pattern files\")\n\nif errors:\n print(\"\\nErrors found:\")\n for e in errors:\n print(f\" - {e}\")\n sys.exit(1)\nelse:\n print(\"All patterns valid\")\nEOF\n"
}
}
]
+2 -1
View File
@@ -51,7 +51,8 @@ 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)
self.assertEqual(caller['on']['push'], {'branches': ['**']})
# Feature branches run once through the PR event, not also on push.
self.assertEqual(caller['on']['push'], {'branches': ['main']})
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,6 +63,17 @@ 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,10 +49,26 @@ 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
@@ -0,0 +1,35 @@
#!/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'
+1
View File
@@ -34,6 +34,7 @@ class MobilePolicyTests(unittest.TestCase):
self.assertEqual(job["resource_class"], "small")
self.assertIn("PyYAML==6.0.3", job["steps"][1]["run"]["command"])
command = job["steps"][2]["run"]["command"]
self.assertTrue(command.startswith("python3 \\<< 'EOF'\n"), "CircleCI requires escaped heredoc interpolation markers")
script = command.split("\n", 1)[1].rsplit("\nEOF", 1)[0]
valid = "id: example\ntitle: Example\ncategory: test\ndescription: test\ncontent: test\n"
for text, expected in ((valid, 0), ("id: incomplete\n", 1), ("[invalid", 1)):