-
Notifications
You must be signed in to change notification settings - Fork 412
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into romain.komorn/SDTEST-225/use_bytearrays_for_…
…coverage
- Loading branch information
Showing
49 changed files
with
1,889 additions
and
494 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
name: Generate Package Versions | ||
|
||
on: | ||
workflow_dispatch: # can be triggered manually | ||
schedule: | ||
- cron: '0 0 * * 0' # weekly on Sunday at midnight | ||
|
||
|
||
jobs: | ||
generate-package-versions: | ||
name: Generate package versions | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup Python 3.7 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.7" | ||
|
||
- name: Setup Python 3.8 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.8" | ||
|
||
- name: Setup Python 3.9 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.9" | ||
|
||
- name: Setup Python 3.10 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Setup Python 3.11 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.11" | ||
|
||
- name: Setup Python 3.12 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Install Docker Compose | ||
run: | | ||
sudo curl -L "https://github.com/docker/compose/releases/download/v2.20.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | ||
sudo chmod +x /usr/local/bin/docker-compose | ||
docker-compose --version | ||
- name: Start docker service | ||
run: docker-compose up -d testagent | ||
|
||
- name: Install system dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y libmariadb-dev | ||
- name: Install Python dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install packaging | ||
pip install riot==0.19.1 | ||
pip install hatch~=1.8.0 hatch-containers==0.7.0 | ||
- name: Run regenerate-riot-latest | ||
run: scripts/regenerate-riot-latest.sh | ||
|
||
- name: Create Pull Request | ||
id: pr | ||
uses: peter-evans/create-pull-request@v6 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: "upgrade-${{ env.VENV_NAME }}-version" | ||
commit-message: "Test Package Versions update" | ||
delete-branch: true | ||
base: main | ||
title: "chore: update ${{ env.VENV_NAME }} latest version" | ||
body: | | ||
Updates the ${{ env.VENV_NAME }} integration latest version and regenerates lockfiles. |
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,6 +1,7 @@ | ||
name: Testrunner | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- 'main' | ||
|
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
variables: | ||
PYPI_PUBLISH_IMAGE: registry.ddbuild.io/images/mirror/python:3.12.0 | ||
|
||
.release_base: | ||
stage: release | ||
only: | ||
# v2.10.0 | ||
# v2.10.1 | ||
# v2.10.0rc0 | ||
# v2.10.0rc5 | ||
- /^v[0-9]+\.[0-9]+\.[0-9]+(rc[0-9]+)?$/ | ||
|
||
.release_pypi: | ||
extends: .release_base | ||
image: ${PYPI_PUBLISH_IMAGE} | ||
tags: [ "arch:amd64" ] | ||
variables: | ||
TWINE_USERNAME: "__token__" | ||
TWINE_NON_INTERACTIVE: "1" | ||
before_script: | ||
- export TWINE_PASSWORD=$(aws ssm get-parameter --region us-east-1 --name "ci.${CI_PROJECT_NAME}.${PYPI_REPOSITORY}_token" --with-decryption --query "Parameter.Value" --out text) | ||
- python -m pip install twine | ||
- python -m twine check --strict pywheels/* | ||
script: | ||
- echo "python -m twine upload --repository ${PYPI_REPOSITORY} pywheels/*" | ||
artifacts: | ||
paths: | ||
- pywheels/*.whl | ||
- pywheels/*.tar.gz | ||
|
||
release_pypi_test: | ||
extends: .release_pypi | ||
dependencies: [ "download_ddtrace_wheels" ] | ||
variables: | ||
PYPI_REPOSITORY: testpypi | ||
|
||
# TODO: Replace GitHub Action PyPI upload with this job | ||
# release_pypi_prod: | ||
# extends: .release_pypi | ||
# needs: [ "release_pypi_test" ] | ||
# variables: | ||
# PYPI_REPOSITORY: pypi |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
tracer: | ||
extends: .test_base_riot | ||
parallel: 9 | ||
variables: | ||
SUITE_NAME: "tracer" |
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
Oops, something went wrong.