Skip to content

Commit

Permalink
feat:add op tx type
Browse files Browse the repository at this point in the history
Signed-off-by: grapebaba <281165273@qq.com>
  • Loading branch information
GrapeBaBa committed Nov 16, 2023
1 parent 287f0c2 commit aceae71
Show file tree
Hide file tree
Showing 21 changed files with 449 additions and 15 deletions.
File renamed without changes.
11 changes: 11 additions & 0 deletions .github/actions/capture_test_logs/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: capture_test_logs
description: "Capture test logs"
runs:
using: composite
steps:
- uses: actions/upload-artifact@v3.1.3
with:
path: acceptance-tests/tests/build/acceptanceTestLogs
- uses: actions/upload-artifact@v3.1.3
with:
path: acceptance-tests/tests/build/jvmErrorLogs
26 changes: 26 additions & 0 deletions .github/actions/capture_test_results/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: capture_test_results
description: "Capture test results"
runs:
using: composite
steps:
- name: Jacoco
run: "./gradlew --no-daemon jacocoTestReport"
shell: bash
- name: Gather test results
run: |-
FILES=`find . -name test-results`
for FILE in $FILES
do
MODULE=`echo "$FILE" | sed -e 's@./\(.*\)/build/test-results@\1@'`
TARGET="build/test-results/$MODULE"
mkdir -p "$TARGET"
cp -rf ${FILE}/*/* "$TARGET"
done
if: always()
shell: bash
- uses: actions/upload-artifact@v3.1.3
with:
path: build/test-results
- uses: actions/upload-artifact@v3.1.3
with:
path: besu/build/reports/jacoco
14 changes: 14 additions & 0 deletions .github/actions/prepare/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: prepare
description: "Prepare the environment for the build"
runs:
using: composite
steps:
- uses: actions/checkout@v4.1.0
- name: Install Packages - LibSodium, nssdb
shell: bash
run: |-
sudo apt-get update
sudo apt-get install -y libsodium23 libsodium-dev libjemalloc-dev apt-transport-https haveged libnss3-tools
sudo service haveged restart
java --version
- uses: "./.github/actions/restore_gradle_cache"
14 changes: 14 additions & 0 deletions .github/actions/restore_gradle_cache/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: restore_gradle_cache
description: "Restore the gradle cache"
runs:
using: composite
steps:
- name: restore_cache
uses: actions/cache@v3.3.2
with:
key: deps-{{ checksum "gradle/versions.gradle" }}-{{ .Branch }}-{{ .Revision }}
path: UPDATE_ME
restore-keys: |-
deps-{{ checksum "gradle/versions.gradle" }}-{{ .Branch }}-{{ .Revision }}
deps-{{ checksum "gradle/versions.gradle" }}
deps-
51 changes: 51 additions & 0 deletions .github/nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
#name: nightly
#on:
# schedule:
# - cron: 0 19 * * *
# # 'filters' was not transformed because there is no suitable equivalent in GitHub Actions
#jobs:
# assemble:
# runs-on: ubuntu-latest
# container:
# image: openjdk:17.0
# steps:
# - uses: actions/checkout@v4.1.0
# - uses: "./.github/actions/prepare"
# - name: Assemble
# run: "./gradlew --no-daemon clean compileJava compileTestJava assemble"
# - name: save_cache
# uses: actions/cache@v3.3.2
# with:
# path: |-
# .gradle
# ~/.gradle
# key: deps-{{ checksum "gradle/versions.gradle" }}-{{ .Branch }}-{{ .Revision }}
# - uses: actions/upload-artifact@v3.1.3
# with:
# path: "~/project/./"
# - uses: actions/upload-artifact@v3.1.3
# with:
# path: build/distributions
# dockerScan:
# runs-on: ubuntu-latest
# container:
# image: docker:stable-git
# steps:
# - uses: actions/checkout@v4.1.0
# - uses: "./.github/actions/restore_gradle_cache"
## # 'setup_remote_docker' was not transformed because there is no suitable equivalent in GitHub Actions
# - name: Install trivy
# run: |-
# apk add --update-cache --upgrade curl bash
# curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin
# - name: Scan with trivy
# run: |-
# for FILE in $(ls docker)
# do
# if [[ $FILE == "test.sh" || $FILE == "tests" ]]; then
# continue
# fi
# docker pull -q "hyperledger/besu:develop-$FILE"
# trivy -q image --exit-code 1 --no-progress --severity HIGH,CRITICAL "hyperledger/besu:develop-$FILE"
# done
# shell: "/bin/sh"
6 changes: 3 additions & 3 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: checks
on:
push:
branches: [ main ]
branches: [ release-23.10.x, main ]
pull_request:
workflow_dispatch:

jobs:
spotless:
runs-on: [besu-research-ubuntu-16]
runs-on: ubuntu-latest
if: ${{ github.actor != 'dependabot[bot]' }}
steps:
- name: Checkout Repo
Expand All @@ -21,7 +21,7 @@ jobs:
- name: spotless
run: ./gradlew --no-daemon --parallel clean spotlessCheck
javadoc_17:
runs-on: [besu-research-ubuntu-8]
runs-on: ubuntu-latest
if: ${{ github.actor != 'dependabot[bot]' }}
steps:
- name: Checkout Repo
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ name: "CodeQL"

on:
push:
branches: [ main ]
branches: [ release-23.10.x, main ]
pull_request:
branches: [ main ]
branches: [ release-23.10.x, main ]
paths-ignore:
- '**/*.json'
- '**/*.md'
Expand All @@ -24,7 +24,7 @@ on:
jobs:
analyze:
name: Analyze
runs-on: [besu-research-ubuntu-16]
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dco-merge-group.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:

jobs:
dco:
runs-on: [besu-research-ubuntu-8]
runs-on: ubuntu-latest
if: ${{ github.actor != 'dependabot[bot]' }}
steps:
- run: echo "This DCO job runs on merge_queue event and doesn't check PR contents"
2 changes: 1 addition & 1 deletion .github/workflows/dco.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

jobs:
dco:
runs-on: [besu-research-ubuntu-8]
runs-on: ubuntu-latest
if: ${{ github.actor != 'dependabot[bot]' }}
steps:
- run: echo "This DCO job runs on pull_request event and workflow_dispatch"
Expand Down
Loading

0 comments on commit aceae71

Please sign in to comment.