Skip to content
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

exp: add docker logs #4520

Closed
wants to merge 8 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 35 additions & 14 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ on:
- main
- "release/*"
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.sha }}
cancel-in-progress: true
jobs:
integration:
name: Integration
Expand All @@ -17,14 +14,11 @@ jobs:
matrix:
FEATURES: [ oss ,enterprise ]
steps:
- name: Disable IPv6 (temporary fix)
run: |
sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '~1.21'
check-latest: true
- run: go version
- run: go mod download # Not required, used to segregate module download vs test times
Expand Down Expand Up @@ -67,20 +61,17 @@ jobs:
- package: warehouse/integrations/snowflake
destination: snowflake
steps:
- name: Disable IPv6 (temporary fix)
run: |
sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '~1.21'
check-latest: true
- run: go version
- run: go mod download # Not required, used to segregate module download vs test times
- name: Login to DockerHub
uses: docker/login-action@v3.1.0
uses: docker/login-action@v3
with:
username: rudderlabs
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand All @@ -101,22 +92,37 @@ jobs:
name: Unit
runs-on: 'ubuntu-20.04'
steps:
- name: Disable IPv6 (temporary fix)
- name: disable ipv6
run: |
sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '~1.21'
check-latest: true
- run: go version
- run: go mod download # Not required, used to segregate module download vs test times
- run: make test exclude="/rudder-server/(jobsdb|integration_test|processor|regulation-worker|router|services|suppression-backup-service|warehouse)"
- name: Setup tmate session
if: failure()
uses: mxschmitt/action-tmate@v3
- name: Upload coverage report
uses: actions/upload-artifact@v4
with:
name: unit
path: coverage.txt
- name: docker debug
if: always()
run: |
docker system events --until $(date +%s)
docker system info
docker ps
docker network inspect bridge
docker network inspect host
journalctl -xu docker.service
cat /proc/sys/net/ipv4/ip_local_port_range
docker ps -a
package-unit:
name: Package Unit
runs-on: 'ubuntu-20.04'
Expand Down Expand Up @@ -145,13 +151,14 @@ jobs:
exclude: services/rsources

steps:
- name: Disable IPv6 (temporary fix)
- name: disable ipv6
run: |
sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '~1.21'
check-latest: true
- run: go version
- run: go mod download
Expand All @@ -166,10 +173,23 @@ jobs:
TEST_S3_DATALAKE_CREDENTIALS: ${{ secrets.TEST_S3_DATALAKE_CREDENTIALS }}
BIGQUERY_INTEGRATION_TEST_CREDENTIALS: ${{ secrets.BIGQUERY_INTEGRATION_TEST_CREDENTIALS }}
run: make test exclude="${{ matrix.exclude }}" package=${{ matrix.package }}
- name: Setup tmate session
if: always()
uses: mxschmitt/action-tmate@v3
- name: Sanitize name for Artifact
run: |
name=$(echo -n "${{ matrix.package }}" | sed -e 's/[ \t:\/\\"<>|*?]/-/g' -e 's/--*/-/g')
echo "ARTIFACT_NAME=$name" >> $GITHUB_ENV
- name: docker debug
if: always()
run: |
docker system events --until $(date +%s)
docker system info
docker ps -a
docker network inspect bridge
docker network inspect host
journalctl -xu docker.service
cat /proc/sys/net/ipv4/ip_local_port_range
- name: Upload coverage report
uses: actions/upload-artifact@v4
with:
Expand All @@ -188,6 +208,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '~1.21'
check-latest: true
- name: Download coverage reports
uses: actions/download-artifact@v4
Expand Down
Loading