Repository navigation
112 lines (105 loc) · 3.24 KB
/
Copy pathnightly.yml
File metadata and controls
112 lines (105 loc) · 3.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
# Copyright (c) 2026 devlive-community/grantforge
#
# Licensed under the MIT License. See the LICENSE file in the
# project root for full license text.
name: Nightly
on:
schedule:
- cron: '30 18 * * *'
workflow_dispatch:
inputs:
mode:
description: 'Benchmark scale: full (a million accounts, thresholds enforced) or smoke'
required: false
default: 'full'
type: choice
options:
- full
- smoke
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
hdfs-integration:
name: HDFS Testcontainers (Java ${{ matrix.java }})
runs-on: ubuntu-latest
timeout-minutes: 45
strategy:
fail-fast: false
matrix:
java: ['17', '21']
steps:
- uses: actions/checkout@v6
- uses: actions/setup-java@v6
with:
distribution: temurin
java-version: ${{ matrix.java }}
cache: maven
- name: Verify the release agent in real Hadoop containers
run: bash script/ci/hdfs_integration.sh
- name: Upload HDFS reports and container logs
if: always()
uses: actions/upload-artifact@v4
with:
name: hdfs-testcontainers-java-${{ matrix.java }}
path: |
agents/grantforge-agent-hdfs/target/failsafe-reports
agents/grantforge-agent-hdfs/target/hdfs-testcontainers
if-no-files-found: warn
retention-days: 14
performance:
name: Performance benchmarks (PostgreSQL)
runs-on: ubuntu-latest
timeout-minutes: 120
steps:
- uses: actions/checkout@v6
- uses: actions/setup-java@v6
with:
distribution: temurin
java-version: '21'
cache: maven
- name: Seed at scale, measure and check the thresholds
run: bash script/ci/perf_benchmark.sh "${{ inputs.mode || 'full' }}" postgres:17
- name: Upload the benchmark report
if: always()
uses: actions/upload-artifact@v4
with:
name: performance-report
path: perf/target/perf-report.json
if-no-files-found: warn
retention-days: 30
docker-smoke:
name: Image and compose example (${{ matrix.database }})
runs-on: ubuntu-latest
timeout-minutes: 45
strategy:
fail-fast: false
matrix:
database: [h2, postgres, mariadb, mysql, sqlserver, oracle]
steps:
- uses: actions/checkout@v6
- uses: actions/setup-java@v6
with:
distribution: temurin
java-version: '21'
cache: maven
- uses: pnpm/action-setup@v4
with:
version: 8.10.2
- uses: actions/setup-node@v6
with:
node-version: '22'
cache: pnpm
cache-dependency-path: core/grantforge-web/pnpm-lock.yaml
- name: Build the image, start it with the database and sign in across a restart
run: bash script/ci/docker_smoke.sh "${{ matrix.database }}"
- name: Upload the server log
if: always()
uses: actions/upload-artifact@v4
with:
name: docker-smoke-${{ matrix.database }}
path: target/docker-smoke/server.log
if-no-files-found: warn
retention-days: 14