Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
460a65c
feat: Allow option `publicServerURL` to be set dynamically as asynchr…
dblythy Nov 7, 2025
d5e7d6e
chore(release): 8.5.0-alpha.1 [skip ci]
semantic-release-bot Nov 7, 2025
1b661e9
feat: Add support for MongoDB driver options `serverSelectionTimeoutM…
mtrezza Nov 7, 2025
4124069
chore(release): 8.5.0-alpha.2 [skip ci]
semantic-release-bot Nov 7, 2025
cff451e
feat: Add support for more MongoDB driver options (#9911)
mtrezza Nov 7, 2025
2424054
chore(release): 8.5.0-alpha.3 [skip ci]
semantic-release-bot Nov 7, 2025
b760733
feat: Add MongoDB client event logging via database option `logClient…
mtrezza Nov 8, 2025
15c8b1a
chore(release): 8.5.0-alpha.4 [skip ci]
semantic-release-bot Nov 8, 2025
4456b02
feat: Add Parse Server option `allowPublicExplain` to allow `Parse.Qu…
coratgerl Nov 8, 2025
502a512
chore(release): 8.5.0-alpha.5 [skip ci]
semantic-release-bot Nov 8, 2025
d3d4003
fix: `GridFSBucketAdapter` throws when using some Parse Server specif…
mtrezza Nov 8, 2025
9f1fc7c
chore(release): 8.5.0-alpha.6 [skip ci]
semantic-release-bot Nov 8, 2025
3c9af48
perf: Upgrade MongoDB driver to 6.20.0 (#9887)
mtrezza Nov 8, 2025
7682644
chore(release): 8.5.0-alpha.7 [skip ci]
semantic-release-bot Nov 8, 2025
92788a1
ci: Add performance impact step to CI (#9916)
mtrezza Nov 8, 2025
06f25ff
ci: Fix performance step in CI missing permissions (#9917)
mtrezza Nov 8, 2025
a85ba19
ci: Fix performance step in CI missing permissions (#9918)
mtrezza Nov 8, 2025
b73ebac
ci: Fix performance step in CI (#9921)
mtrezza Nov 9, 2025
818824f
ci: Fix performance step in CI (#9922)
mtrezza Nov 9, 2025
d94f348
ci: Cancel obsolete performance benchmark jobs (#9923)
mtrezza Nov 9, 2025
36e166c
ci: Fix performance step in CI (#9925)
mtrezza Nov 9, 2025
3cc8c1a
ci: Fix performance step in CI (#9926)
mtrezza Nov 9, 2025
133660f
ci: Fix performance step in CI (#9927)
mtrezza Nov 9, 2025
52f7c89
ci: Fix performance step in CI (#9931)
mtrezza Nov 17, 2025
dafea21
perf: `Parse.Query.include` now fetches pointers at same level in par…
Moumouls Nov 17, 2025
306c5fd
chore(release): 8.5.0-alpha.8 [skip ci]
semantic-release-bot Nov 17, 2025
7d5e9fc
fix: Race condition can cause multiple Apollo server initializations …
Moumouls Nov 17, 2025
8ff1d89
chore(release): 8.5.0-alpha.9 [skip ci]
semantic-release-bot Nov 17, 2025
7b9fa18
fix: Queries with object field `authData.provider.id` are incorrectly…
mtrezza Nov 17, 2025
fcede16
chore(release): 8.5.0-alpha.10 [skip ci]
semantic-release-bot Nov 17, 2025
5e15403
refactor: Bump js-yaml from 3.14.1 to 3.14.2 (#9933)
dependabot[bot] Nov 17, 2025
c22cb0a
fix: Deprecation warning logged at server launch for nested Parse Ser…
mtrezza Nov 17, 2025
50650a3
chore(release): 8.5.0-alpha.11 [skip ci]
semantic-release-bot Nov 17, 2025
94cee5b
feat: Add `beforePasswordResetRequest` hook (#9906)
coratgerl Nov 19, 2025
9ed9af4
chore(release): 8.5.0-alpha.12 [skip ci]
semantic-release-bot Nov 19, 2025
69a9258
refactor: Add lint rules for no unused vars and unused import (#9940)
coratgerl Nov 22, 2025
38c9d2e
test: Add tests for `Parse.Query.includeAll` for circular and self-re…
mtrezza Nov 23, 2025
50edb5a
fix: Server internal error details leaking in error messages returned…
coratgerl Nov 23, 2025
0ff9779
chore(release): 8.5.0-alpha.13 [skip ci]
semantic-release-bot Nov 23, 2025
12beb8f
fix: Parse Server option `rateLimit.zone` does not use default value …
mtrezza Nov 23, 2025
8aae732
chore(release): 8.5.0-alpha.14 [skip ci]
semantic-release-bot Nov 23, 2025
d4c6de0
perf: Remove unused dependencies (#9943)
coratgerl Nov 23, 2025
73e7812
chore(release): 8.5.0-alpha.15 [skip ci]
semantic-release-bot Nov 23, 2025
4752197
feat: Add Parse Server option `enableSanitizedErrorResponse` to remov…
coratgerl Nov 28, 2025
a906a11
chore(release): 8.5.0-alpha.16 [skip ci]
semantic-release-bot Nov 28, 2025
fa57d69
feat: Upgrade to parse 7.1.1 (#9954)
mtrezza Dec 1, 2025
0e1cb33
chore(release): 8.5.0-alpha.17 [skip ci]
semantic-release-bot Dec 1, 2025
5c644a5
feat: Upgrade to parse 7.1.2 (#9955)
mtrezza Dec 1, 2025
bdc71be
chore(release): 8.5.0-alpha.18 [skip ci]
semantic-release-bot Dec 1, 2025
77bcdfc
empty commit to trigger CI
github-actions[bot] Dec 1, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
328 changes: 328 additions & 0 deletions .github/workflows/ci-performance.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,328 @@
name: ci-performance
on:
pull_request_target:
branches:
- alpha
- beta
- release
- 'release-[0-9]+.x.x'
- next-major
paths-ignore:
- '**.md'
- 'docs/**'

env:
NODE_VERSION: 24.11.0
MONGODB_VERSION: 8.0.4

permissions:
contents: read
pull-requests: write
issues: write

jobs:
performance-check:
name: Benchmarks
runs-on: ubuntu-latest
timeout-minutes: 30

steps:
- name: Checkout PR branch (for benchmark script)
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 1

- name: Save PR benchmark script
run: |
mkdir -p /tmp/pr-benchmark
cp -r benchmark /tmp/pr-benchmark/ || echo "No benchmark directory"
cp package.json /tmp/pr-benchmark/ || true

- name: Checkout base branch
uses: actions/checkout@v4
with:
ref: ${{ github.base_ref }}
fetch-depth: 1
clean: true

- name: Restore PR benchmark script
run: |
if [ -d "/tmp/pr-benchmark/benchmark" ]; then
rm -rf benchmark
cp -r /tmp/pr-benchmark/benchmark .
fi

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'

- name: Install dependencies (base)
run: npm ci

- name: Build Parse Server (base)
run: npm run build

- name: Run baseline benchmarks
id: baseline
env:
NODE_ENV: production
run: |
echo "Running baseline benchmarks..."
if [ ! -f "benchmark/performance.js" ]; then
echo "⚠️ Benchmark script not found - this is expected for new features"
echo "Skipping baseline benchmark"
echo '[]' > baseline.json
echo "Baseline: N/A (no benchmark script)" > baseline-output.txt
exit 0
fi
taskset -c 0 npm run benchmark > baseline-output.txt 2>&1 || npm run benchmark > baseline-output.txt 2>&1 || true
echo "Benchmark command completed with exit code: $?"
echo "Output file size: $(wc -c < baseline-output.txt) bytes"
echo "--- Begin baseline-output.txt ---"
cat baseline-output.txt
echo "--- End baseline-output.txt ---"
# Extract JSON from output (everything between first [ and last ])
sed -n '/^\[/,/^\]/p' baseline-output.txt > baseline.json || echo '[]' > baseline.json
echo "Extracted JSON size: $(wc -c < baseline.json) bytes"
echo "Baseline benchmark results:"
cat baseline.json
continue-on-error: true

- name: Save baseline results to temp location
run: |
mkdir -p /tmp/benchmark-results
cp baseline.json /tmp/benchmark-results/ || echo '[]' > /tmp/benchmark-results/baseline.json
cp baseline-output.txt /tmp/benchmark-results/ || echo 'No baseline output' > /tmp/benchmark-results/baseline-output.txt

- name: Upload baseline results
uses: actions/upload-artifact@v4
with:
name: baseline-benchmark
path: |
/tmp/benchmark-results/baseline.json
/tmp/benchmark-results/baseline-output.txt
retention-days: 7

- name: Checkout PR branch
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 1
clean: true

- name: Restore baseline results
run: |
cp /tmp/benchmark-results/baseline.json ./ || echo '[]' > baseline.json
cp /tmp/benchmark-results/baseline-output.txt ./ || echo 'No baseline output' > baseline-output.txt

- name: Setup Node.js (PR)
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'

- name: Install dependencies (PR)
run: npm ci

- name: Build Parse Server (PR)
run: npm run build

- name: Run PR benchmarks
id: pr-bench
env:
NODE_ENV: production
run: |
echo "Running PR benchmarks..."
taskset -c 0 npm run benchmark > pr-output.txt 2>&1 || npm run benchmark > pr-output.txt 2>&1 || true
echo "Benchmark command completed with exit code: $?"
echo "Output file size: $(wc -c < pr-output.txt) bytes"
echo "--- Begin pr-output.txt ---"
cat pr-output.txt
echo "--- End pr-output.txt ---"
# Extract JSON from output (everything between first [ and last ])
sed -n '/^\[/,/^\]/p' pr-output.txt > pr.json || echo '[]' > pr.json
echo "Extracted JSON size: $(wc -c < pr.json) bytes"
echo "PR benchmark results:"
cat pr.json
continue-on-error: true

- name: Upload PR results
uses: actions/upload-artifact@v4
with:
name: pr-benchmark
path: |
pr.json
pr-output.txt
retention-days: 7

- name: Verify benchmark files exist
run: |
echo "Checking for benchmark result files..."
if [ ! -f baseline.json ] || [ ! -s baseline.json ]; then
echo "⚠️ baseline.json is missing or empty, creating empty array"
echo '[]' > baseline.json
fi
if [ ! -f pr.json ] || [ ! -s pr.json ]; then
echo "⚠️ pr.json is missing or empty, creating empty array"
echo '[]' > pr.json
fi
echo "baseline.json size: $(wc -c < baseline.json) bytes"
echo "pr.json size: $(wc -c < pr.json) bytes"

- name: Store benchmark result (PR)
uses: benchmark-action/github-action-benchmark@v1
if: github.event_name == 'pull_request' && hashFiles('pr.json') != ''
continue-on-error: true
with:
name: Parse Server Performance
tool: 'customSmallerIsBetter'
output-file-path: pr.json
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: false
save-data-file: false
alert-threshold: '110%'
comment-on-alert: true
fail-on-alert: false
alert-comment-cc-users: '@parse-community/maintainers'
summary-always: true

- name: Compare benchmark results
id: compare
run: |
node -e "
const fs = require('fs');

let baseline, pr;
try {
baseline = JSON.parse(fs.readFileSync('baseline.json', 'utf8'));
pr = JSON.parse(fs.readFileSync('pr.json', 'utf8'));
} catch (e) {
console.log('⚠️ Could not parse benchmark results');
process.exit(0);
}

// Handle case where baseline doesn't exist (new feature)
if (!Array.isArray(baseline) || baseline.length === 0) {
if (!Array.isArray(pr) || pr.length === 0) {
console.log('⚠️ Benchmark results are empty or invalid');
process.exit(0);
}
console.log('# Performance Benchmark Results\n');
console.log('> ℹ️ Baseline not available - this appears to be a new feature\n');
console.log('| Benchmark | Value | Details |');
console.log('|-----------|-------|---------|');
pr.forEach(result => {
console.log(\`| \${result.name} | \${result.value.toFixed(2)} ms | \${result.extra} |\`);
});
console.log('');
console.log('✅ **New benchmarks established for this feature.**');
process.exit(0);
}

if (!Array.isArray(pr) || pr.length === 0) {
console.log('⚠️ PR benchmark results are empty or invalid');
process.exit(0);
}

console.log('# Performance Comparison\n');
console.log('| Benchmark | Baseline | PR | Change | Status |');
console.log('|-----------|----------|----|---------| ------ |');

let hasRegression = false;
let hasImprovement = false;

baseline.forEach(baseResult => {
const prResult = pr.find(p => p.name === baseResult.name);
if (!prResult) {
console.log(\`| \${baseResult.name} | \${baseResult.value.toFixed(2)} ms | N/A | - | ⚠️ Missing |\`);
return;
}

const baseValue = parseFloat(baseResult.value);
const prValue = parseFloat(prResult.value);
const change = ((prValue - baseValue) / baseValue * 100);
const changeStr = change > 0 ? \`+\${change.toFixed(1)}%\` : \`\${change.toFixed(1)}%\`;

let status = '✅';
if (change > 50) {
status = '❌ Much Slower';
hasRegression = true;
} else if (change > 25) {
status = '⚠️ Slower';
hasRegression = true;
} else if (change < -25) {
status = '🚀 Faster';
hasImprovement = true;
}

console.log(\`| \${baseResult.name} | \${baseValue.toFixed(2)} ms | \${prValue.toFixed(2)} ms | \${changeStr} | \${status} |\`);
});

console.log('');
if (hasRegression) {
console.log('⚠️ **Performance regressions detected.** Please review the changes.');
} else if (hasImprovement) {
console.log('🚀 **Performance improvements detected!** Great work!');
} else {
console.log('✅ **No significant performance changes.**');
}
" | tee comparison.md

- name: Upload comparison
uses: actions/upload-artifact@v4
with:
name: benchmark-comparison
path: comparison.md
retention-days: 30

- name: Prepare comment body
if: github.event_name == 'pull_request'
run: |
echo "## Performance Impact Report" > comment.md
echo "" >> comment.md
if [ -f comparison.md ]; then
cat comparison.md >> comment.md
else
echo "⚠️ Could not generate performance comparison." >> comment.md
fi
echo "" >> comment.md
echo "<details>" >> comment.md
echo "<summary>📊 View detailed results</summary>" >> comment.md
echo "" >> comment.md
echo "### Baseline Results" >> comment.md
echo "\`\`\`json" >> comment.md
cat baseline.json >> comment.md
echo "\`\`\`" >> comment.md
echo "" >> comment.md
echo "### PR Results" >> comment.md
echo "\`\`\`json" >> comment.md
cat pr.json >> comment.md
echo "\`\`\`" >> comment.md
echo "" >> comment.md
echo "</details>" >> comment.md
echo "" >> comment.md
echo "> **Note:** Thresholds: ⚠️ >25%, ❌ >50%." >> comment.md

- name: Comment PR with results
if: github.event_name == 'pull_request'
uses: thollander/actions-comment-pull-request@v2
continue-on-error: true
with:
filePath: comment.md
comment_tag: performance-benchmark
mode: recreate

- name: Generate job summary
if: always()
run: |
if [ -f comparison.md ]; then
cat comparison.md >> $GITHUB_STEP_SUMMARY
else
echo "⚠️ Benchmark comparison not available" >> $GITHUB_STEP_SUMMARY
fi
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
Loading
Loading