Skip to content

Commit

Permalink
Temporary run for python debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeauchesne committed Nov 15, 2024
1 parent 21d2ed0 commit ec2a4ab
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/python-temporary-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: python-temporary-test

on:
workflow_dispatch: {}
schedule:
- cron: 00 02 * * 2-6

env:
REGISTRY: ghcr.io

jobs:
end-to-end:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
repository: 'DataDog/system-tests'
branch: 'christophe-papazian/add_stderr_observability_for_nightly_on_standalone'
- name: Install runner
uses: ./.github/actions/install_runner
- name: Pull images
uses: ./.github/actions/pull_images
with:
library: python
weblog: uwsgi-poc
scenarios: '"APPSEC_STANDALONE"'
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build agent
run: SYSTEM_TEST_BUILD_ATTEMPTS=3 ./build.sh -i agent
- name: Build weblog
id: build
run: SYSTEM_TEST_BUILD_ATTEMPTS=3 ./build.sh python -i weblog -w uwsgi-poc
- name: Run APPSEC_STANDALONE scenario
if: always() && steps.build.outcome == 'success'
run: ./run.sh APPSEC_STANDALONE

- name: Compress logs
id: compress_logs
if: always() && steps.build.outcome == 'success'
run: tar -czvf artifact.tar.gz $(ls | grep logs)
- name: Upload artifact
if: always() && steps.compress_logs.outcome == 'success'
uses: actions/upload-artifact@v4
with:
# log name convention to respect : logs_$SCENARIO-FAMILY_$LIBRARY_$WEBLOG_$CI-ENVIRONMENT
name: logs_endtoend
path: artifact.tar.gz

0 comments on commit ec2a4ab

Please sign in to comment.