-
Notifications
You must be signed in to change notification settings - Fork 17
Setup pipelines #41
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
Open
Baraujo25
wants to merge
12
commits into
master
Choose a base branch
from
SETUP_PIPELINES
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Setup pipelines #41
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
471e448
Setup pipelines
Baraujo25 d276b99
Trigger compatibility workflow
Baraujo25 de7eee0
Trigger master slave workflow
Baraujo25 25f9589
Update testcontainers base image
Baraujo25 8a76940
Fix taurus and urwid versions
Baraujo25 9d01123
Run masterSlave tests in runner machine instead of docker in docker
Baraujo25 a971c63
Setup tiny image container
Baraujo25 e361cbb
Configure test containers for CI
Baraujo25 0ba1003
Install bzt and urwid as fixed combo
Baraujo25 3a99e6e
Remove bzt log call
Baraujo25 b165cda
Update testcontainers version
Baraujo25 a2f99d3
Provide artifacts for master-slave execution
Baraujo25 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 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,5 @@ | ||
| # Pin Taurus to a known-good combination. | ||
| # bzt 1.16.49 currently resolves urwid>=3 and fails at runtime on | ||
| # `from urwid.decoration import Padding`. | ||
| bzt==1.16.40 | ||
| urwid==2.1.2 |
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,46 @@ | ||
| name: CI Build | ||
|
|
||
| on: | ||
| push: | ||
| pull_request: | ||
|
|
||
| concurrency: | ||
| group: ci-build-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up Java 8 | ||
| uses: actions/setup-java@v4 | ||
| with: | ||
| distribution: temurin | ||
| java-version: "8" | ||
| cache: maven | ||
|
|
||
| - name: Restore JMeter cache | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: .jmeter | ||
| key: jmeter-${{ runner.os }}-${{ hashFiles('pom.xml', 'src/test/resources/jmeter/**') }} | ||
| restore-keys: | | ||
| jmeter-${{ runner.os }}- | ||
|
|
||
| - name: Build and test | ||
| run: xvfb-run -a mvn -U --batch-mode clean install | ||
|
|
||
| - name: Upload build artifacts | ||
| if: always() | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: ci-build-artifacts-${{ github.run_id }} | ||
| path: | | ||
| target/jmeter-bzm-hls-*.jar | ||
| target/jmeter-test | ||
| target/failsafe-reports | ||
| if-no-files-found: warn | ||
| retention-days: 30 |
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,101 @@ | ||
| name: CI JMeter Compatibility | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - SETUP_PIPELINES | ||
| workflow_dispatch: | ||
| inputs: | ||
| run_cloud_test: | ||
| description: "Run BlazeMeter cloud Taurus test (requires BZ_TOKEN)" | ||
| required: false | ||
| default: true | ||
| type: boolean | ||
|
|
||
| jobs: | ||
| jmeter_compatibility: | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 120 | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up Java 8 | ||
| uses: actions/setup-java@v4 | ||
| with: | ||
| distribution: temurin | ||
| java-version: "8" | ||
| cache: maven | ||
|
|
||
| - name: Set up Python | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: "3.11" | ||
|
|
||
| - name: Install Taurus | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| # Install Taurus from pinned constraints to avoid upstream resolver drift. | ||
| python -m pip install -r .github/taurus-constraints.txt | ||
| python --version | ||
| python - <<'PY' | ||
| import importlib.metadata as metadata | ||
| for pkg in ("bzt", "urwid"): | ||
| print(f"{pkg}=={metadata.version(pkg)}") | ||
| PY | ||
|
|
||
| - name: Restore JMeter cache | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: .jmeter | ||
| key: jmeter-${{ runner.os }}-${{ hashFiles('pom.xml', 'src/test/resources/jmeter/**') }} | ||
| restore-keys: | | ||
| jmeter-${{ runner.os }}- | ||
|
|
||
| - name: Build project and jmeter-test bundle | ||
| run: xvfb-run -a mvn -U --batch-mode clean install | ||
|
|
||
| - name: Run compatibility matrix on Java 8 | ||
| working-directory: target/jmeter-test | ||
| run: | | ||
| JMETER_VERSION=3.3 sh testJmeter.sh | ||
| JMETER_VERSION=4.0 sh testJmeter.sh | ||
| JMETER_VERSION=5.1 sh testJmeter.sh | ||
| JMETER_VERSION=5.1.1 sh testJmeter.sh | ||
| JMETER_VERSION=5.2.1 sh testJmeter.sh | ||
| JMETER_VERSION=5.3 sh testJmeter.sh | ||
| JMETER_VERSION=5.4.1 sh testJmeter.sh | ||
| JMETER_VERSION=5.5 sh testJmeter.sh | ||
|
|
||
| - name: Set up Java 11 | ||
| uses: actions/setup-java@v4 | ||
| with: | ||
| distribution: temurin | ||
| java-version: "11" | ||
| cache: maven | ||
|
|
||
| - name: Run Java 11 compatibility case | ||
| working-directory: target/jmeter-test | ||
| run: | | ||
| JMETER_VERSION=5.0 sh testJmeter.sh | ||
|
|
||
| - name: Run BlazeMeter cloud test | ||
| if: ${{ inputs.run_cloud_test }} | ||
| working-directory: target/jmeter-test | ||
| env: | ||
| BZ_TOKEN: ${{ secrets.BZ_TOKEN }} | ||
| run: | | ||
| if [ -z "$BZ_TOKEN" ]; then | ||
| echo "BZ_TOKEN secret is required when run_cloud_test is enabled." | ||
| exit 1 | ||
| fi | ||
| bzt testJMeterBZ.yaml -o modules.cloud.token=${BZ_TOKEN} | ||
|
|
||
| - name: Upload compatibility artifacts on failure | ||
| if: failure() | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: ci-jmeter-compat-failure-${{ github.run_id }} | ||
| path: target/jmeter-test | ||
| if-no-files-found: warn | ||
| retention-days: 1 | ||
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,45 @@ | ||
| name: CI Master Slave Test | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| push: | ||
| branches: | ||
| - SETUP_PIPELINES | ||
|
|
||
| jobs: | ||
| master_slave_test: | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 60 | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up Java 8 | ||
| uses: actions/setup-java@v4 | ||
| with: | ||
| distribution: temurin | ||
| java-version: "8" | ||
| cache: maven | ||
|
|
||
| - name: Clean known corrupted Maven artifact | ||
| run: | | ||
| rm -f ~/.m2/repository/xml-apis/xmlParserAPIs/2.0.2/xmlParserAPIs-2.0.2.pom | ||
|
|
||
| - name: Run MasterSlaveIT | ||
| env: | ||
| TESTCONTAINERS_RYUK_DISABLED: "true" | ||
| run: | | ||
| mvn -U --batch-mode clean install -DskipTests | ||
| mvn -U --batch-mode -Dtest=MasterSlaveIT test | ||
|
|
||
| - name: Upload master-slave artifacts | ||
| if: always() | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: ci-master-slave-artifacts-${{ github.run_id }} | ||
| path: | | ||
| target/jmeter-bzm-hls-*.jar | ||
| target/jmeter-test | ||
| target/failsafe-reports | ||
| if-no-files-found: warn | ||
| retention-days: 30 |
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,65 @@ | ||
| name: CI Release | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: write | ||
|
|
||
| jobs: | ||
| release: | ||
| runs-on: ubuntu-latest | ||
| environment: release | ||
| timeout-minutes: 90 | ||
| steps: | ||
| - name: Checkout full history | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Ensure workflow runs on master | ||
| run: | | ||
| if [ "${GITHUB_REF_NAME}" != "master" ]; then | ||
| echo "This workflow must be run from master. Current ref: ${GITHUB_REF_NAME}" | ||
| exit 1 | ||
| fi | ||
|
|
||
| - name: Set up Java 8 | ||
| uses: actions/setup-java@v4 | ||
| with: | ||
| distribution: temurin | ||
| java-version: "8" | ||
| cache: maven | ||
|
|
||
| - name: Install VNC dependencies | ||
| run: | | ||
| sudo apt-get update | ||
| sudo apt-get install -y tightvncserver x11-utils | ||
|
|
||
| - name: Wire release scripts to root paths | ||
| run: | | ||
| chmod +x pipeline/jmeter-plugins-build/scripts/*.sh | ||
| sudo ln -sf "${GITHUB_WORKSPACE}/pipeline/jmeter-plugins-build/scripts/release.sh" /release.sh | ||
| sudo ln -sf "${GITHUB_WORKSPACE}/pipeline/jmeter-plugins-build/scripts/set-git-credentials.sh" /set-git-credentials.sh | ||
| sudo ln -sf "${GITHUB_WORKSPACE}/pipeline/jmeter-plugins-build/scripts/execute-on-vnc.sh" /execute-on-vnc.sh | ||
| sudo chmod +x /release.sh /set-git-credentials.sh /execute-on-vnc.sh | ||
|
|
||
| - name: Run release script | ||
| env: | ||
| SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} | ||
| SSH_KNOWN_HOSTS: ${{ secrets.SSH_KNOWN_HOSTS }} | ||
| run: | | ||
| if [ -z "$SSH_PRIVATE_KEY" ] || [ -z "$SSH_KNOWN_HOSTS" ]; then | ||
| echo "SSH_PRIVATE_KEY and SSH_KNOWN_HOSTS secrets are required for release." | ||
| exit 1 | ||
| fi | ||
| /release.sh | ||
|
|
||
| - name: Upload release artifacts | ||
| if: always() | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: ci-release-artifacts-${{ github.run_id }} | ||
| path: target/jmeter-bzm-hls-*.jar | ||
| if-no-files-found: warn | ||
| retention-days: 30 |
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
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
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.
no new jmeter version here.
maybe 5.6.3 it's good to be added.