AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
ci: Fix setting/passing `TELEMETRY_*` environment variables
Reinier van der Leer1ca9b9fa93b8
diff --git a/.github/workflows/autogpt-ci.yml b/.github/workflows/autogpt-ci.ymlindex a66e15a31e..03f0987bac 100644--- a/.github/workflows/autogpt-ci.yml+++ b/.github/workflows/autogpt-ci.yml@@ -22,10 +22,6 @@ defaults:run:working-directory: autogpts/autogpt-env:- TELEMETRY_ENVIRONMENT: autogpt-ci- TELEMETRY_OPT_IN: ${{ github.event_name == 'push' && github.ref_name == 'master' }}-jobs:lint:runs-on: ubuntu-latest@@ -169,6 +165,8 @@ jobs:CI: truePLAIN_OUTPUT: TrueOPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}+ TELEMETRY_ENVIRONMENT: autogpt-ci+ TELEMETRY_OPT_IN: ${{ github.event_name == 'push' && github.ref_name == 'master' }}S3_ENDPOINT_URL: http://localhost:9000AWS_ACCESS_KEY_ID: minioadminAWS_SECRET_ACCESS_KEY: minioadmindiff --git a/.github/workflows/autogpts-benchmark.yml b/.github/workflows/autogpts-benchmark.ymlindex 5607246a5a..93d43ff238 100644--- a/.github/workflows/autogpts-benchmark.yml+++ b/.github/workflows/autogpts-benchmark.yml@@ -5,10 +5,6 @@ on:schedule:- cron: '0 2 * * *'-env:- TELEMETRY_ENVIRONMENT: autogpt-benchmark-ci- TELEMETRY_OPT_IN: ${{ github.event_name == 'push' && github.ref_name == 'master' }}-jobs:benchmark:permissions:@@ -65,6 +61,9 @@ jobs:REQUESTS_CA_BUNDLE: /etc/ssl/certs/ca-certificates.crtREPORTS_FOLDER: ${{ format('../../{0}', env.REPORTS_FOLDER) }} # account for changed workdir+ TELEMETRY_ENVIRONMENT: autogpt-benchmark-ci+ TELEMETRY_OPT_IN: ${{ github.event_name == 'push' && github.ref_name == 'master' }}+- name: Push reports to data branchrun: |git config --global user.name 'GitHub Actions'diff --git a/.github/workflows/autogpts-ci.yml b/.github/workflows/autogpts-ci.ymlindex 15cb1ea697..70c8162372 100644--- a/.github/workflows/autogpts-ci.yml+++ b/.github/workflows/autogpts-ci.yml@@ -25,10 +25,6 @@ on:- 'setup.py'- '!**/*.md'-env:- TELEMETRY_ENVIRONMENT: autogpt-ci- TELEMETRY_OPT_IN: ${{ github.event_name == 'push' && github.ref_name == 'master' }}-jobs:run-tests:runs-on: ubuntu-latest@@ -69,3 +65,5 @@ jobs:HELICONE_CACHE_ENABLED: falseHELICONE_PROPERTY_AGENT: ${{ matrix.agent-name }}REPORTS_FOLDER: ${{ format('../../reports/{0}', matrix.agent-name) }}+ TELEMETRY_ENVIRONMENT: autogpt-ci+ TELEMETRY_OPT_IN: ${{ github.event_name == 'push' && github.ref_name == 'master' }}diff --git a/.github/workflows/benchmark-ci.yml b/.github/workflows/benchmark-ci.ymlindex d381371ddf..f854a5a26e 100644--- a/.github/workflows/benchmark-ci.yml+++ b/.github/workflows/benchmark-ci.yml@@ -16,8 +16,6 @@ on:env:min-python-version: '3.10'- TELEMETRY_ENVIRONMENT: autogpt-benchmark-ci- TELEMETRY_OPT_IN: ${{ github.event_name == 'push' && github.ref_name == 'master' }}jobs:lint:@@ -98,11 +96,10 @@ jobs:- name: Run regression testsrun: |./run agent start ${{ matrix.agent-name }}- sleep 10cd autogpts/${{ matrix.agent-name }}+set +e # Ignore non-zero exit codes and continue executionecho "Running the following command: poetry run agbenchmark --maintain --mock"-poetry run agbenchmark --maintain --mockEXIT_CODE=$?set -e # Stop ignoring non-zero exit codes@@ -129,7 +126,7 @@ jobs:poetry run agbenchmark --mockpoetry run pytest -vv -s tests-+CHANGED=$(git diff --name-only | grep -E '(agbenchmark/challenges)|(../frontend/assets)') || echo "No diffs"if [ ! -z "$CHANGED" ]; thenecho "There are unstaged changes please run agbenchmark and commit those changes since they are needed."@@ -140,3 +137,5 @@ jobs:fienv:OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}+ TELEMETRY_ENVIRONMENT: autogpt-benchmark-ci+ TELEMETRY_OPT_IN: ${{ github.event_name == 'push' && github.ref_name == 'master' }}