Skip to content

Commit

Permalink
ci(verify): split tests with huge test data
Browse files Browse the repository at this point in the history
  • Loading branch information
Tiphereth-A committed Dec 16, 2024
1 parent e908451 commit 9219559
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 5 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ concurrency:
jobs:
setup:
runs-on: ubuntu-latest
strategy:
matrix:
type: ["all", "normal", "huge"]
steps:
- uses: actions/checkout@v4

Expand All @@ -46,15 +49,19 @@ jobs:

- name: oj-resolve
uses: competitive-verifier/actions/oj-resolve@v2
env:
VERIFY_EXCLUDE: ${{ matrix.type == 'huge' && 'src/test_cpverifier/' || (matrix.type == 'normal' && 'src/test_cpverifier_huge/' || 'src/tinplate/') }}
with:
output-path: verify_files.json
include: |
src/code/
src/doc_md/
src/test_cpverifier/
src/test_cpverifier_huge/
exclude: |
libs/
.github/
$VERIFY_EXCLUDE
config: .verify-helper/config.toml
- name: parse-doxygen
uses: competitive-verifier/actions/parse-doxygen@v2
Expand All @@ -65,9 +72,11 @@ jobs:
uses: competitive-verifier/actions/upload-verify-artifact@v2
with:
file: verify_files.json
artifact-name: ${{ runner.os }}-verify-files${{ matrix.type == 'all' && '' || matrix.type }}-json

- name: Check bundled
id: test-bundled
if: ${{ matrix.type == 'all' }}
run: |
echo "count=$(find .competitive-verifier/bundled/ -type f | wc -l)" >> $GITHUB_OUTPUT
- name: Upload bundled
Expand All @@ -84,8 +93,10 @@ jobs:
env:
SPLIT_SIZE: 16
strategy:
max-parallel: 16
matrix:
# prettier-ignore
type: ["normal", "huge"]
index:
["00", "01", "02", "03", "04", "05", "06", "07",
"08", "09", "10", "11", "12", "13", "14", "15"]
Expand All @@ -106,6 +117,8 @@ jobs:
- name: Download verify_files.json
uses: competitive-verifier/actions/download-verify-artifact@v2
with:
artifact-name: ${{ runner.os }}-verify-files${{ matrix.type }}-json

- name: Set up competitive-verifier
uses: competitive-verifier/actions/setup@v2
Expand Down Expand Up @@ -162,15 +175,15 @@ jobs:
- name: Upload result artifact
uses: actions/upload-artifact@v4
with:
name: Result-${{ runner.os }}-${{ matrix.index }}
name: Result-${{ runner.os }}-${{ matrix.type }}-${{ matrix.index }}
path: ${{runner.temp}}/result.json
retention-days: 1

docs-and-check:
runs-on: ubuntu-latest
needs: [verify]
outputs:
upload-pages: ${{steps.upload-pages.outcome == 'success'}}
upload-pages: ${{ steps.upload-pages.outcome == 'success' }}
steps:
- uses: actions/checkout@v4
with:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define PROBLEM "https://judge.yosupo.jp/problem/convolution_mod"
#define PROBLEM "https://judge.yosupo.jp/problem/convolution_mod_large"

#include "../../code/conv/conv_ntt_large.hpp"
#include "../../code/io/fastio.hpp"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#define AUTO_GENERATED
#define PROBLEM "https://judge.yosupo.jp/problem/convolution_mod"
#define PROBLEM "https://judge.yosupo.jp/problem/convolution_mod_large"

#include "../../code/conv/conv_ntt_large.hpp"
#include "../../code/io/fastio.hpp"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#define AUTO_GENERATED
#define PROBLEM "https://judge.yosupo.jp/problem/convolution_mod"
#define PROBLEM "https://judge.yosupo.jp/problem/convolution_mod_large"

#include "../../code/conv/conv_ntt_large.hpp"
#include "../../code/io/fastio.hpp"
Expand Down

0 comments on commit 9219559

Please sign in to comment.