Fix acceptance reports path and how to get the latest merged PR (#7147)

Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
pull/7152/head
Fabio Di Fabio 6 months ago committed by GitHub
parent 7a5a3e0957
commit 3c57ca2821
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      .github/workflows/acceptance-tests.yml
  2. 2
      .github/workflows/pre-review.yml
  3. 6
      .github/workflows/splitTestsByTime.sh
  4. 4
      .github/workflows/update-test-reports.yml

@ -87,6 +87,8 @@ jobs:
path: '*.txt'
- name: run acceptance tests
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
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3
with:

@ -143,6 +143,8 @@ jobs:
path: testList.txt
- name: run unit tests
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
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3
with:

@ -46,6 +46,12 @@ for line in "${sorted[@]}"; do
module_dir=${line_parts[2]}
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?
if grep -F -q --line-regexp "$test_with_module" tmp/currentTests.list
then

@ -12,7 +12,7 @@ jobs:
steps:
- name: Get latest merge 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:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Get unit test reports from latest merged PR
@ -48,4 +48,4 @@ jobs:
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3
with:
name: acceptance-test-results
path: 'acceptance-test-results/**/test-results/**/TEST-*.xml'
path: 'acceptance-test-results/**/TEST-*.xml'

Loading…
Cancel
Save