Skip to content

Commit

Permalink
introduce ARM github workflows
Browse files Browse the repository at this point in the history
This commit adds the GH workflow to run on arm machines. This
effectively means that we can remove our travis integration and only use
GH actions from now on.

Signed-off-by: André Martins <andre@cilium.io>
  • Loading branch information
aanm committed Mar 6, 2024
1 parent 2b51393 commit 7a301a4
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 48 deletions.
File renamed without changes.
Expand Up @@ -45,5 +45,4 @@ install_clang

export PATH="/usr/local/clang/bin:$PATH"

go install github.com/mattn/goveralls@a36c7ef8f23b2952fa6e39663f52107dfc8ad69d # v0.0.11
go install github.com/mfridman/tparse@28967170dce4f9f13de77ec857f7aed4c4294a5f # v0.12.3 (main) with -progress
9 changes: 0 additions & 9 deletions .github/renovate.json5
Expand Up @@ -18,7 +18,6 @@
"go.mod",
"go.sum",
"Makefile.defs",
".travis.yml",
"test/kubernetes-test.sh",
"test/packet/scripts/install.sh",
"install/kubernetes/cilium/templates/spire/**",
Expand Down Expand Up @@ -500,14 +499,6 @@
"# renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)\\s+.+_VERSION = (?<currentValue>.*)\\s+.+_SHA = (?<currentDigest>sha256:[a-f0-9]+)"
]
},
{
"fileMatch": [
"^\\.travis\\.yml$"
],
"matchStrings": [
"# renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)\\s+go: \"(?<currentValue>.*)\""
]
},
{
"fileMatch": [
"^test/kubernetes-test\\.sh$",
Expand Down
36 changes: 33 additions & 3 deletions .github/workflows/integration-test.yaml
Expand Up @@ -66,9 +66,39 @@ jobs:

integration-test:
name: Integration Test
runs-on: ubuntu-20.04
strategy:
matrix:
arch: [ubuntu-22.04, ubuntu-22.04-arm64]
runs-on: ${{ matrix.arch }}
timeout-minutes: 45
steps:
- name: Install Dependencies
shell: bash
run: |
sudo apt update && sudo apt install -y --no-install-recommends build-essential make libncurses5
- name: Install Docker (arm64)
if: ${{ matrix.arch == 'ubuntu-22.04-arm64' }}
shell: bash
run: |
# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
# Add the repository to Apt sources:
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y
sudo usermod -aG docker $USER
sudo apt-get install acl
sudo setfacl --modify user:$USER:rw /var/run/docker.sock
- name: Checkout context ref (trusted)
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
Expand Down Expand Up @@ -105,15 +135,15 @@ jobs:
- name: Prepare environment
timeout-minutes: 15
run: |
./.travis/prepare.sh
./.github/actions/unit-tests/prepare.sh
- name: Run integration tests
timeout-minutes: 60
run: |
export PATH=/usr/local/clang/bin:$PATH
export V=0
export DOCKER_BUILD_FLAGS=--quiet
./.travis/build.sh
./.github/actions/unit-tests/build.sh
commit-status-final:
if: ${{ always() && github.event_name != 'push' }}
Expand Down
33 changes: 0 additions & 33 deletions .travis.yml

This file was deleted.

2 changes: 0 additions & 2 deletions CODEOWNERS
Validating CODEOWNERS rules …
Expand Up @@ -250,8 +250,6 @@
/.golangci.yaml @cilium/ci-structure
/.mailmap @cilium/tophat
/.nvim @cilium/contributing
/.travis/ @cilium/ci-structure
/.travis.yml @cilium/ci-structure
/.vscode @cilium/contributing
/api/ @cilium/api
/api/v1/Makefile @cilium/sig-hubble-api
Expand Down

0 comments on commit 7a301a4

Please sign in to comment.