From 9d0af0e77d93f2578a8ce73f8290bc4759307e7f Mon Sep 17 00:00:00 2001 From: Danish Sarwar Date: Thu, 11 Jun 2026 15:53:53 +0530 Subject: [PATCH 1/4] Migrate CI from Travis to GitHub Actions Replicates the Travis pipeline on the self-hosted ARC runner: binary builds, multi-platform container builds and tests, all via the existing Docker-based Makefile targets. --- .github/workflows/tipoca-stream.yml | 41 +++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/tipoca-stream.yml diff --git a/.github/workflows/tipoca-stream.yml b/.github/workflows/tipoca-stream.yml new file mode 100644 index 00000000..1b3b328b --- /dev/null +++ b/.github/workflows/tipoca-stream.yml @@ -0,0 +1,41 @@ +name: tipoca-stream +# Migrated from .travis.yml (Travis CI -> GitHub Actions), following the +# platform migration guide conventions used by migrate-to-gha.sh: +# - runs-on: self-hosted ARC runner (arc-runner-pr-ci) +# - no job container: the Makefile already runs the Go toolchain inside +# BUILD_IMAGE (public.ecr.aws/practo/golang:1.17.1-alpine) via `docker run`, +# so the job only needs the runner's Docker daemon (Travis `services: docker`) + +on: + push: + branches: + - master + pull_request: + +jobs: + build: + runs-on: arc-runner-pr-ci + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + # Full history + tags: the Makefile derives VERSION from + # `git describe --tags --always --dirty` + fetch-depth: 0 + + - name: Build binaries + run: | + make build + test -f bin/linux_amd64/redshiftbatcher + test -f bin/linux_amd64/redshiftloader + test -f bin/linux_amd64/redshiftsink + + - name: Build containers + run: | + make all-container + docker images | grep "^public.ecr.aws/practo/redshiftbatcher" + docker images | grep "^public.ecr.aws/practo/redshiftloader" + docker images | grep "^public.ecr.aws/practo/redshiftsink" + + - name: Run tests + run: make test From c32d176e01636e50074fe8f517c66699f82212cd Mon Sep 17 00:00:00 2001 From: Danish Sarwar Date: Thu, 11 Jun 2026 17:31:40 +0530 Subject: [PATCH 2/4] Run CI on GitHub-hosted runners This repo is public; the org self-hosted runner group excludes public repositories, so the job sat queued forever. ubuntu-latest is free for public repos and ships with Docker and make. --- .github/workflows/tipoca-stream.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tipoca-stream.yml b/.github/workflows/tipoca-stream.yml index 1b3b328b..56d64efd 100644 --- a/.github/workflows/tipoca-stream.yml +++ b/.github/workflows/tipoca-stream.yml @@ -1,7 +1,10 @@ name: tipoca-stream # Migrated from .travis.yml (Travis CI -> GitHub Actions), following the -# platform migration guide conventions used by migrate-to-gha.sh: -# - runs-on: self-hosted ARC runner (arc-runner-pr-ci) +# platform migration guide conventions used by migrate-to-gha.sh, EXCEPT: +# - runs-on: ubuntu-latest, NOT the self-hosted ARC runner — this repo is +# PUBLIC, and the org runner group excludes public repos (the run never +# leaves "queued"); GitHub-hosted runners are free for public repos and +# ship with Docker + make # - no job container: the Makefile already runs the Go toolchain inside # BUILD_IMAGE (public.ecr.aws/practo/golang:1.17.1-alpine) via `docker run`, # so the job only needs the runner's Docker daemon (Travis `services: docker`) @@ -14,7 +17,7 @@ on: jobs: build: - runs-on: arc-runner-pr-ci + runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4 From 266a129fee80e54cc098e221bd45b9ca81c90baa Mon Sep 17 00:00:00 2001 From: challapradyumna Date: Mon, 15 Jun 2026 01:07:45 +0530 Subject: [PATCH 3/4] Remove .travis.yml (CI now on GitHub Actions); pin actions/checkout to v6 --- .github/workflows/tipoca-stream.yml | 2 +- .travis.yml | 15 --------------- 2 files changed, 1 insertion(+), 16 deletions(-) delete mode 100644 .travis.yml diff --git a/.github/workflows/tipoca-stream.yml b/.github/workflows/tipoca-stream.yml index 56d64efd..8154c689 100644 --- a/.github/workflows/tipoca-stream.yml +++ b/.github/workflows/tipoca-stream.yml @@ -20,7 +20,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: # Full history + tags: the Makefile derives VERSION from # `git describe --tags --always --dirty` diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index a0680d4d..00000000 --- a/.travis.yml +++ /dev/null @@ -1,15 +0,0 @@ -language: go -go: -- "1.17.1" -services: - - docker -script: -- make build -- test -f bin/linux_amd64/redshiftbatcher -- test -f bin/linux_amd64/redshiftloader -- test -f bin/linux_amd64/redshiftsink -- make all-container -- docker images | grep "^public.ecr.aws/practo/redshiftbatcher" -- docker images | grep "^public.ecr.aws/practo/redshiftloader" -- docker images | grep "^public.ecr.aws/practo/redshiftsink" -- make test From 45f6bc0f7139c915a32b98f8b204eaa523cb2c6e Mon Sep 17 00:00:00 2001 From: Danish Sarwar Date: Mon, 15 Jun 2026 11:39:11 +0530 Subject: [PATCH 4/4] =?UTF-8?q?Bump=20actions/checkout=20v4=E2=86=92v6;=20?= =?UTF-8?q?add=20permissions:=20contents:=20read?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/tipoca-stream.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/tipoca-stream.yml b/.github/workflows/tipoca-stream.yml index 8154c689..ba3af9bd 100644 --- a/.github/workflows/tipoca-stream.yml +++ b/.github/workflows/tipoca-stream.yml @@ -15,6 +15,9 @@ on: - master pull_request: +permissions: + contents: read + jobs: build: runs-on: ubuntu-latest