mirror of
https://github.com/vacp2p/status-linea-besu.git
synced 2026-01-09 13:58:02 -05:00
Fix acceptance reports path and how to get the latest merged PR (#7147)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
This commit is contained in:
2
.github/workflows/acceptance-tests.yml
vendored
2
.github/workflows/acceptance-tests.yml
vendored
@@ -87,6 +87,8 @@ jobs:
|
|||||||
path: '*.txt'
|
path: '*.txt'
|
||||||
- name: run acceptance tests
|
- name: run acceptance tests
|
||||||
run: ./gradlew acceptanceTestNotPrivacy `cat gradleArgs.txt` -Dorg.gradle.parallel=true -Dorg.gradle.caching=true
|
run: ./gradlew acceptanceTestNotPrivacy `cat gradleArgs.txt` -Dorg.gradle.parallel=true -Dorg.gradle.caching=true
|
||||||
|
- name: Remove downloaded test results
|
||||||
|
run: rm -rf tmp/junit-xml-reports-downloaded
|
||||||
- name: Upload Acceptance Test Results
|
- name: Upload Acceptance Test Results
|
||||||
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3
|
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3
|
||||||
with:
|
with:
|
||||||
|
|||||||
2
.github/workflows/pre-review.yml
vendored
2
.github/workflows/pre-review.yml
vendored
@@ -143,6 +143,8 @@ jobs:
|
|||||||
path: testList.txt
|
path: testList.txt
|
||||||
- name: run unit tests
|
- name: run unit tests
|
||||||
run: cat testList.txt | xargs -P 1 ./gradlew -Dorg.gradle.parallel=true -Dorg.gradle.caching=true
|
run: cat testList.txt | xargs -P 1 ./gradlew -Dorg.gradle.parallel=true -Dorg.gradle.caching=true
|
||||||
|
- name: Remove downloaded test results
|
||||||
|
run: rm -rf tmp/junit-xml-reports-downloaded
|
||||||
- name: Upload Unit Test Results
|
- name: Upload Unit Test Results
|
||||||
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3
|
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3
|
||||||
with:
|
with:
|
||||||
|
|||||||
6
.github/workflows/splitTestsByTime.sh
vendored
6
.github/workflows/splitTestsByTime.sh
vendored
@@ -46,6 +46,12 @@ for line in "${sorted[@]}"; do
|
|||||||
module_dir=${line_parts[2]}
|
module_dir=${line_parts[2]}
|
||||||
test_with_module="$test_name $module_dir"
|
test_with_module="$test_name $module_dir"
|
||||||
|
|
||||||
|
# temp deduplication during the transition phase
|
||||||
|
if grep -F -q --line-regexp "$test_with_module" tmp/processedTests.list
|
||||||
|
then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
# Does the test still exists?
|
# Does the test still exists?
|
||||||
if grep -F -q --line-regexp "$test_with_module" tmp/currentTests.list
|
if grep -F -q --line-regexp "$test_with_module" tmp/currentTests.list
|
||||||
then
|
then
|
||||||
|
|||||||
4
.github/workflows/update-test-reports.yml
vendored
4
.github/workflows/update-test-reports.yml
vendored
@@ -12,7 +12,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Get latest merge PR number
|
- name: Get latest merge PR number
|
||||||
id: latest_merged_pr_number
|
id: latest_merged_pr_number
|
||||||
run: echo "PULL_REQUEST_NUMBER=$(gh pr list --repo hyperledger/besu --base main --state merged --limit 1 --json number | jq '.[].number')" >> "$GITHUB_OUTPUT"
|
run: echo "PULL_REQUEST_NUMBER=$(gh pr list --repo hyperledger/besu --base main --state merged --json "number,mergedAt" --search "sort:updated-desc" --jq 'max_by(.mergedAt)|.number')" >> "$GITHUB_OUTPUT"
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Get unit test reports from latest merged PR
|
- name: Get unit test reports from latest merged PR
|
||||||
@@ -48,4 +48,4 @@ jobs:
|
|||||||
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3
|
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3
|
||||||
with:
|
with:
|
||||||
name: acceptance-test-results
|
name: acceptance-test-results
|
||||||
path: 'acceptance-test-results/**/test-results/**/TEST-*.xml'
|
path: 'acceptance-test-results/**/TEST-*.xml'
|
||||||
|
|||||||
Reference in New Issue
Block a user