-
Notifications
You must be signed in to change notification settings - Fork 986
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: upload example db for random test (#4837)
- Loading branch information
1 parent
cfaffa1
commit 19279bf
Showing
6 changed files
with
112 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,18 +91,27 @@ jobs: | |
echo "after remove unused software" | ||
sudo df -h | ||
fi | ||
- name: Download example database | ||
uses: dawidd6/[email protected] | ||
with: | ||
name: hypothesis-example-db | ||
path: .hypothesis/examples | ||
if_no_artifact_found: warn | ||
workflow_conclusion: completed | ||
|
||
- name: Run All | ||
timeout-minutes: 60 | ||
run: | | ||
if [ "${{ github.event_name }}" == "schedule" ]; then | ||
MAX_EXAMPLE=500 | ||
STEP_COUNT=200 | ||
else | ||
MAX_EXAMPLE=100 | ||
STEP_COUNT=50 | ||
fi | ||
sudo MAX_EXAMPLE=$MAX_EXAMPLE STEP_COUNT=$STEP_COUNT META1=redis META2=${{matrix.meta}} .github/scripts/command/random.sh test_run_all | ||
sudo -E LOG_LEVEL=WARNING META1=redis META2=${{matrix.meta}} .github/scripts/command/random.sh test_run_all | ||
- name: Upload example database | ||
uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: hypothesis-example-db | ||
path: .hypothesis/examples | ||
|
||
- name: Log | ||
if: always() | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -94,18 +94,28 @@ jobs: | |
run: | | ||
sudo -E python3 .github/scripts/hypo/fs_test.py | ||
sudo -E python3 .github/scripts/hypo/acl_test.py | ||
- name: Download example database | ||
uses: dawidd6/[email protected] | ||
with: | ||
name: hypothesis-example-db | ||
path: .hypothesis/examples | ||
if_no_artifact_found: warn | ||
workflow_conclusion: completed | ||
|
||
- name: Test | ||
timeout-minutes: 120 | ||
run: | | ||
if [ "${{ github.event_name }}" == "schedule" ]; then | ||
PROFILE='schedule' | ||
else | ||
PROFILE='pull_request' | ||
fi | ||
sudo -E PROFILE=${PROFILE} LOG_LEVEL=WARNING python3 .github/scripts/hypo/fs.py 2>&1 | tee fsrand.log | ||
sudo -E LOG_LEVEL=WARNING python3 .github/scripts/hypo/fs.py 2>&1 | tee fsrand.log | ||
exit ${PIPESTATUS[0]} | ||
- name: Upload example database | ||
uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: hypothesis-example-db | ||
path: .hypothesis/examples | ||
|
||
- name: check fsrand.log | ||
if: always() | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -101,11 +101,26 @@ jobs: | |
- name: Test with example | ||
run: | | ||
sudo python3 .github/scripts/hypo/s3_test.py | ||
sudo -E python3 .github/scripts/hypo/s3_test.py | ||
- name: Download example database | ||
uses: dawidd6/[email protected] | ||
with: | ||
name: hypothesis-example-db | ||
path: .hypothesis/examples | ||
if_no_artifact_found: warn | ||
workflow_conclusion: completed | ||
|
||
- name: Test randomly | ||
run: | | ||
sudo LOG_LEVEL=WARNING python3 .github/scripts/hypo/s3.py | ||
sudo -E LOG_LEVEL=WARNING python3 .github/scripts/hypo/s3.py | ||
- name: Upload example database | ||
uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: hypothesis-example-db | ||
path: .hypothesis/examples | ||
|
||
- name: check log | ||
if: always() | ||
|