forked from apple/foundationdb
-
Notifications
You must be signed in to change notification settings - Fork 6
XDB-494 merge from upstream #216
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
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
366ac38
XDB-494 merge from upstream
MarkSh1 a13b127
XDB-494 fixed path for fdb_version.py
MarkSh1 a52faf0
XDB-494 added wrapper for TestRunner
MarkSh1 55e2cbf
XDB-494 set new joshua agent image
MarkSh1 0735471
XDB-460 restore , supress boost build oytput
MarkSh1 a610664
XDB-494 the number of simulation tests has been reduced to 300
MarkSh1 aa5bf49
XDB-494 increased joshua agents up to 4 and set quantity tests to 150
MarkSh1 735dd99
XDB-494 added manual test run
MarkSh1 f147f71
XDB-494 added run_id for tests
MarkSh1 e78eaec
XDB-494 added joshua container check
MarkSh1 c18f9d4
XDB-494 added AGENT_TIMEOUT in build.yml
MarkSh1 2832a0d
XDB-494 Revert Update copyright years to 2013-2026 (#12653)
MarkSh1 8607341
XDB-494 extract tests job into reusable workflow to eliminate duplic…
MarkSh1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,95 @@ | ||
| name: Run Tests (reusable) | ||
|
|
||
| on: | ||
| workflow_call: | ||
| inputs: | ||
| full_ver: | ||
| description: 'Version of the build to test (e.g. 7.4.0-3.1.ow)' | ||
| required: true | ||
| type: string | ||
| build_run_id: | ||
| description: 'Run ID to download the correctness package from' | ||
| required: true | ||
| type: string | ||
|
|
||
| jobs: | ||
| tests: | ||
| runs-on: ubuntu-latest | ||
| env: | ||
| JOSHUA_DB_VER: "7.1.57" | ||
| N_OF_TESTS: 500 # to fit in 360 minutes job run limit | ||
| JOSHUA_AGENT_TAG: "rockylinux9.6-20260309" | ||
| # parameter that controls the maximum lifetime of the Joshua agent (in seconds). | ||
| AGENT_TIMEOUT: 18000 | ||
|
|
||
| steps: | ||
| - name: Set agent URL | ||
| run: | | ||
| echo "JOSHUA_AGENT_URL=ghcr.io/${GITHUB_REPOSITORY_OWNER,,}" >> $GITHUB_ENV | ||
| echo "Agent URL: ghcr.io/${GITHUB_REPOSITORY_OWNER,,}" | ||
|
|
||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| path: ${{github.workspace}}/src | ||
|
|
||
| - name: Install dependencies | ||
| shell: bash | ||
| run: | | ||
| sudo apt-get update | ||
| sudo apt-get install -y sudo wget crudini git python3 python3-pip | ||
| sudo pip3 install wheel setuptools python-dateutil lxml boto3 | ||
|
|
||
| - name: Install FoundationDb | ||
| shell: bash | ||
| run: | | ||
| mkdir deb | ||
| pushd deb | ||
| MY_ARCH=`dpkg-architecture -q DEB_BUILD_ARCH` | ||
| wget https://github.com/apple/foundationdb/releases/download/${{ env.JOSHUA_DB_VER }}/foundationdb-clients_${{ env.JOSHUA_DB_VER }}-1_${MY_ARCH}.deb https://github.com/apple/foundationdb/releases/download/${{ env.JOSHUA_DB_VER }}/foundationdb-server_${{ env.JOSHUA_DB_VER }}-1_${MY_ARCH}.deb | ||
| sudo apt-get install -y ./foundationdb-clients_${{ env.JOSHUA_DB_VER }}-1_${MY_ARCH}.deb ./foundationdb-server_${{ env.JOSHUA_DB_VER }}-1_${MY_ARCH}.deb | ||
| popd | ||
| sudo systemctl stop foundationdb | ||
| MY_IP=`hostname -I | awk '{print $1}'` | ||
| sudo sed -i s/127.0.0.1/$MY_IP/ /etc/foundationdb/fdb.cluster | ||
| sudo crudini --set /etc/foundationdb/foundationdb.conf fdbserver memory 4GiB | ||
| sudo systemctl start foundationdb | ||
| pip3 install 'foundationdb==${{ env.JOSHUA_DB_VER }}' | ||
|
|
||
| - name: Download the correctness package | ||
| uses: actions/download-artifact@v4 | ||
| id: download_correctness | ||
| with: | ||
| name: correctness-${{ inputs.full_ver }}.tar.gz | ||
| run-id: ${{ inputs.build_run_id }} | ||
| github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| - name: Echo download path | ||
| run: echo ${{steps.download_correctness.outputs.download-path}} | ||
|
|
||
| - name: Display structure of downloaded files | ||
| run: ls -R | ||
| working-directory: ${{github.workspace}} | ||
|
|
||
| - name: Download joshua | ||
| shell: bash | ||
| run: | | ||
| git clone https://github.com/FoundationDB/fdb-joshua.git | ||
|
|
||
| - name: run joshua-agent | ||
| shell: bash | ||
| run: | | ||
| podman pull ${{ env.JOSHUA_AGENT_URL }}/joshua-agent:${{ env.JOSHUA_AGENT_TAG }} | ||
| for i in 1 2 3 4; do | ||
| podman run -d \ | ||
| -v /etc/foundationdb:/etc/foundationdb \ | ||
| -e AGENT_TIMEOUT=${{ env.AGENT_TIMEOUT }} \ | ||
| joshua-agent:${{ env.JOSHUA_AGENT_TAG }} | ||
| done | ||
|
|
||
| - name: run tests | ||
| shell: bash | ||
| working-directory: ${{github.workspace}}/fdb-joshua | ||
| run: | | ||
| podman ps | ||
| ${{github.workspace}}/src/build-scripts/for-linux/test-joshua.bash ${{github.workspace}}/correctness-${{ inputs.full_ver }}.tar.gz ${{env.N_OF_TESTS}} |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| name: Tests only | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| full_ver: | ||
| description: 'Version of the build to test (e.g. 7.4.0-3.1.ow)' | ||
| required: true | ||
| build_run_id: | ||
| description: 'Run ID of the build workflow (find it in the URL of the build run)' | ||
| required: true | ||
|
|
||
| jobs: | ||
| tests: | ||
| uses: ./.github/workflows/run-tests.yml | ||
| with: | ||
| full_ver: ${{ github.event.inputs.full_ver }} | ||
| build_run_id: ${{ github.event.inputs.build_run_id }} | ||
| secrets: inherit | ||
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| name: Windows Boost CONFIG Test | ||
|
oleg68 marked this conversation as resolved.
|
||
|
|
||
| on: | ||
| pull_request: | ||
| push: | ||
| branches: | ||
| - 'test-*' | ||
| - 'boost-*' | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| test-windows-boost: | ||
| name: Test Boost CONFIG Mode on Windows | ||
| runs-on: windows-latest | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup CMake | ||
| uses: lukka/get-cmake@latest | ||
|
|
||
| - name: Install Boost via vcpkg | ||
| run: | | ||
| vcpkg install boost-filesystem:x64-windows boost-iostreams:x64-windows boost-serialization:x64-windows boost-system:x64-windows boost-program-options:x64-windows boost-url:x64-windows boost-context:x64-windows | ||
| shell: cmd | ||
|
|
||
| - name: Configure and Build FoundationDB (without Swift) | ||
| run: | | ||
| mkdir build | ||
| cd build | ||
| cmake .. -DCMAKE_TOOLCHAIN_FILE=%VCPKG_INSTALLATION_ROOT%\scripts\buildsystems\vcpkg.cmake -DCMAKE_BUILD_TYPE=Release -DWITH_SWIFT=OFF -DBUILD_TESTING=OFF | ||
| shell: cmd | ||
|
|
||
| - name: Verify Build Success | ||
| run: | | ||
| echo "Build completed successfully - Boost CONFIG mode works on Windows!" | ||
| shell: cmd | ||
|
|
||
| - name: Report Success | ||
| run: echo "✓ Boost CONFIG mode working on Windows!" | ||
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| # This file maps author names and email addresses to canonical identities | ||
| # Format: Preferred Name <preferred@email> [Commit Name <commit@email>] | ||
| # See git-shortlog(1) for more information | ||
| # | ||
| # Single entries establish the canonical identity for a contributor | ||
|
|
||
| A.J. Beamon <aj.beamon@snowflake.com> <ajbeamon@apple.com> | ||
| Alex Miller <alex.r.miller@snowflake.com> <alexander_r_miller@apple.com> <alexmiller@apple.com> <millerdevel@gmail.com> | ||
| Evan Tschannen <evan.tschannen@snowflake.com> <ejt@apple.com> | ||
| Jingyu Zhou <jingyu_zhou@apple.com> <jingyuzhou@gmail.com> | ||
| Steve Atherton <steve.atherton@snowflake.com> <stevea@apple.com> <steve.atherton@gmail.com> <s_atherton@apple.com> | ||
| Trevor Clinkenbeard <tclinkenbeard@openai.com> <trevor.clinkenbeard@snowflake.com> |
This file contains hidden or 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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.