Skip to content

Commit 82083ed

Browse files
faster integration testing
1 parent ae5bda7 commit 82083ed

File tree

1 file changed

+34
-34
lines changed

1 file changed

+34
-34
lines changed

.github/workflows/build.yml

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,40 @@ jobs:
679679
sudo apt-get install nginx
680680
sudo nginx -c "$(pwd)/test/tcp/reverse-proxy/nginx/dynamic-sni-proxy.conf"
681681
fi
682+
683+
- name: Run traffic light robot integration tests
684+
if: ((startsWith(github.ref_name, 'build-traffic-lights') && github.ref_type == 'tag') || (github.repository == 'stackql/stackql' && github.event_name == 'push' && github.ref == 'refs/heads/main')) && matrix.registry == 'test/registry'
685+
env:
686+
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
687+
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
688+
AZURE_INTEGRATION_TESTING_SUB_ID: ${{ secrets.AZURE_INTEGRATION_TESTING_SUB_ID }}
689+
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
690+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
691+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
692+
GODEBUG: http2client=0
693+
run: |
694+
echo "## Stray flask apps to be killed before robot tests ##"
695+
pgrep -f flask | xargs kill -9 || true
696+
echo "## End ##"
697+
if python cicd/python/build.py --robot-test-traffic-lights-integration; then
698+
echo "Traffic light robot integration tests **all** passed"
699+
else
700+
rv="$?"
701+
echo "**some** traffic light robot integration tests failed code = $rv"
702+
fi
703+
{
704+
echo "TRAFFIC_LIGHTS_COMPLETED=true"
705+
} >> "$GITHUB_ENV"
706+
707+
- name: Output from traffic lights integration tests
708+
if: env.TRAFFIC_LIGHTS_COMPLETED == 'true'
709+
run: |
710+
cat ./test/robot/reports-integration-traffic-lights/output.xml
711+
712+
- name: Output from traffic lights tmp dir
713+
if: env.TRAFFIC_LIGHTS_COMPLETED == 'true'
714+
run: |
715+
cat ./test/robot/integration-traffic-lights/tmp/*
682716
683717
- name: Install Python dependencies
684718
run: |
@@ -742,40 +776,6 @@ jobs:
742776
echo "## End ##"
743777
python cicd/python/build.py --robot-test-integration
744778
745-
- name: Run traffic light robot integration tests
746-
if: ((startsWith(github.ref_name, 'build-traffic-lights') && github.ref_type == 'tag') || (github.repository == 'stackql/stackql' && github.event_name == 'push' && github.ref == 'refs/heads/main')) && matrix.registry == 'test/registry'
747-
env:
748-
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
749-
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
750-
AZURE_INTEGRATION_TESTING_SUB_ID: ${{ secrets.AZURE_INTEGRATION_TESTING_SUB_ID }}
751-
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
752-
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
753-
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
754-
GODEBUG: http2client=0
755-
run: |
756-
echo "## Stray flask apps to be killed before robot tests ##"
757-
pgrep -f flask | xargs kill -9 || true
758-
echo "## End ##"
759-
if python cicd/python/build.py --robot-test-traffic-lights-integration; then
760-
echo "Traffic light robot integration tests **all** passed"
761-
else
762-
rv="$?"
763-
echo "**some** traffic light robot integration tests failed code = $rv"
764-
fi
765-
{
766-
echo "TRAFFIC_LIGHTS_COMPLETED=true"
767-
} >> "$GITHUB_ENV"
768-
769-
- name: Output from traffic lights integration tests
770-
if: env.TRAFFIC_LIGHTS_COMPLETED == 'true'
771-
run: |
772-
cat ./test/robot/reports-integration-traffic-lights/output.xml
773-
774-
- name: Output from traffic lights tmp dir
775-
if: env.TRAFFIC_LIGHTS_COMPLETED == 'true'
776-
run: |
777-
cat ./test/robot/integration-traffic-lights/tmp/*
778-
779779
- name: Prepare Test DB
780780
if: success() && matrix.registry != 'test/registry'
781781
run: cp test/db/db.sqlite test/db/tmp/python-tests-tmp-db.sqlite

0 commit comments

Comments
 (0)