-
Notifications
You must be signed in to change notification settings - Fork 6.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use the correct Docker Image for RocksJava on Linux #12169
Closed
Closed
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
e1ffb8a
Use the correct Docker Image for RocksJava on Linux in CircleCI
adamretter 22af2ed
Install latest Maven in GitHub Actions CI
adamretter b1ec11f
Use the correct Docker Image for RocksJava on Linux in GitHub Actions CI
adamretter ab17c58
Use the latest version of upload-artifact
adamretter 6b55097
Switch to Rocky Linux 8 (CentOS 8 successor) for Java PMD checks as i…
adamretter 8cb4ca0
Inline post-pmd-steps action as it is only used in build-linux-java-p…
adamretter 97b62f9
Simplify upload-artifacts of post-steps
adamretter 0098324
fixup! Use the latest version of upload-artifact
adamretter File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,9 +2,12 @@ name: post-benchmarks | |
runs: | ||
using: composite | ||
steps: | ||
- uses: actions/[email protected] | ||
- name: Upload Benchmark Results artifact | ||
uses: actions/[email protected] | ||
with: | ||
path: "${{ runner.temp }}/benchmark-results" | ||
name: benchmark-results | ||
path: "${{ runner.temp }}/benchmark-results/**" | ||
if-no-files-found: error | ||
- name: Send benchmark report to visualisation | ||
run: |- | ||
set +e | ||
|
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,25 +1,38 @@ | ||
name: post-steps | ||
description: Steps that are taken after a RocksDB job | ||
inputs: | ||
artifact-prefix: | ||
description: Prefix to append to the name of artifacts that are uploaded | ||
required: true | ||
default: "${{ github.job }}" | ||
runs: | ||
using: composite | ||
steps: | ||
- uses: actions/[email protected] | ||
- name: Upload Test Results artifact | ||
uses: actions/[email protected] | ||
with: | ||
path: "${{ runner.temp }}/test-results" | ||
- uses: actions/[email protected] | ||
name: "${{ inputs.artifact-prefix }}-test-results" | ||
path: "${{ runner.temp }}/test-results/**" | ||
- name: Upload DB LOG file artifact | ||
uses: actions/[email protected] | ||
with: | ||
name: "${{ inputs.artifact-prefix }}-db-log-file" | ||
path: LOG | ||
- name: Compress Test Logs | ||
run: tar -cvzf t.tar.gz t | ||
- name: Copy Test Logs (on Failure) | ||
if: ${{ failure() }} | ||
run: | | ||
mkdir -p ${{ runner.temp }}/failure-test-logs | ||
cp -r t/* ${{ runner.temp }}/failure-test-logs | ||
shell: bash | ||
- uses: actions/[email protected] | ||
- name: Upload Test Logs (on Failure) artifact | ||
uses: actions/[email protected] | ||
with: | ||
path: t.tar.gz | ||
- run: |- | ||
mkdir -p ${{ runner.temp }}/core_dumps | ||
cp core.* ${{ runner.temp }}/core_dumps | ||
if: ${{ failure() }} | ||
shell: bash | ||
- uses: actions/[email protected] | ||
name: "${{ inputs.artifact-prefix }}-failure-test-logs" | ||
path: ${{ runner.temp }}/failure-test-logs/** | ||
if-no-files-found: ignore | ||
- name: Upload Core Dumps artifact | ||
uses: actions/[email protected] | ||
with: | ||
path: "${{ runner.temp }}/core_dumps" | ||
name: "${{ inputs.artifact-prefix }}-core-dumps" | ||
path: "core.*" | ||
if-no-files-found: ignore |
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 |
---|---|---|
|
@@ -324,8 +324,9 @@ jobs: | |
- name: compress test report | ||
run: tar -cvzf scan_build_report.tar.gz scan_build_report | ||
if: failure() | ||
- uses: actions/upload-artifact@v3.1.3 | ||
- uses: actions/upload-artifact@v4.0.0 | ||
with: | ||
name: scan-build-report | ||
path: scan_build_report.tar.gz | ||
build-linux-unity-and-headers: | ||
if: ${{ github.repository_owner == 'facebook' }} | ||
|
@@ -461,19 +462,29 @@ jobs: | |
runs-on: | ||
labels: 4-core-ubuntu | ||
container: | ||
image: zjay437/rocksdb:0.6 | ||
image: evolvedbinary/rocksjava:centos6_x64-be | ||
options: --shm-size=16gb | ||
steps: | ||
- uses: actions/[email protected] | ||
# The docker image is intentionally based on an OS that has an older GLIBC version. | ||
# That GLIBC is incompatibile with GitHub's actions/checkout. Thus we implement a manual checkout step. | ||
- name: Checkout | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
run: | | ||
chown `whoami` . || true | ||
git clone --no-checkout https://oath2:[email protected]/${{ github.repository }}.git . | ||
git -c protocol.version=2 fetch --update-head-ok --no-tags --prune --no-recurse-submodules --depth=1 origin +${{ github.sha }}:${{ github.ref }} | ||
git checkout --progress --force ${{ github.ref }} | ||
git log -1 --format='%H' | ||
- uses: "./.github/actions/pre-steps" | ||
- name: Set Java Environment | ||
run: |- | ||
echo "JAVA_HOME=${JAVA_HOME}" | ||
which java && java -version | ||
which javac && javac -version | ||
- name: Test RocksDBJava | ||
run: make V=1 J=8 -j8 jtest | ||
- uses: "./.github/actions/post-steps" | ||
run: scl enable devtoolset-7 'make V=1 J=8 -j8 jtest' | ||
# NOTE: post-steps skipped because of compatibility issues with docker image | ||
build-linux-java-static: | ||
if: ${{ github.repository_owner == 'facebook' }} | ||
runs-on: | ||
|
@@ -482,9 +493,8 @@ jobs: | |
image: evolvedbinary/rocksjava:centos6_x64-be | ||
options: --shm-size=16gb | ||
steps: | ||
# The docker image is based on such an old OS that it has a GLIBC | ||
# incompatibility with actions/checkout and other actions. Thus we | ||
# implement a manual checkout step. | ||
# The docker image is intentionally based on an OS that has an older GLIBC version. | ||
# That GLIBC is incompatibile with GitHub's actions/checkout. Thus we implement a manual checkout step. | ||
- name: Checkout | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
|
@@ -574,6 +584,9 @@ jobs: | |
if: ${{ github.repository_owner == 'facebook' }} | ||
runs-on: | ||
labels: 4-core-ubuntu | ||
container: | ||
image: evolvedbinary/rocksjava:rockylinux8_x64-be | ||
options: --shm-size=16gb | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: "./.github/actions/install-maven" | ||
|
@@ -585,4 +598,11 @@ jobs: | |
which javac && javac -version | ||
- name: PMD RocksDBJava | ||
run: make V=1 J=8 -j8 jpmd | ||
- uses: "./.github/actions/post-pmd-steps" | ||
- uses: actions/[email protected] | ||
with: | ||
name: pmd-report | ||
path: "${{ github.workspace }}/java/target/pmd.xml" | ||
- uses: actions/[email protected] | ||
with: | ||
name: maven-site | ||
path: "${{ github.workspace }}/java/target/site" |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is copy-pasting a complex piece of functionality. Presumably it can go into a sharable "uses" step.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pdillinger I did try that, but unfortunately it is not possible as you end up in a "chicken or egg" situation. i.e. if you put the code in a separate GitHub action file of this repo, then it isn't yet available as the code hasn't been checked out from Git until after this step would run.