Skip to content

Commit

Permalink
Merge branch 'master' into fix/timeout-issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tanmaya-panda1 committed Jul 5, 2024
2 parents a70b60f + 66970cb commit 3ea1f90
Show file tree
Hide file tree
Showing 4,599 changed files with 469,979 additions and 283,927 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
4 changes: 2 additions & 2 deletions .github/workflows/build-legacy-branch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:
- name: Build the legacy x86_64 debug image
if: matrix.arch == 'amd64'
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
file: ./Dockerfile.x86_64.debug
context: .
Expand All @@ -102,7 +102,7 @@ jobs:
raw,${{ matrix.suffix }}-${{ inputs.ref }}
- name: Build the legacy ${{ matrix.arch }} image
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
file: ./Dockerfile.${{ matrix.suffix }}
context: .
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/call-build-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
# E.g. if we build version 1.9.2 we want to tag with 1.9.2 and 1.9.
- name: Determine major version tag
id: determine-major-version
uses: frabert/replace-string-action@v2.4
uses: frabert/replace-string-action@v2.5
with:
pattern: '^(\d+\.\d+).*$'
string: ${{ inputs.version }}
Expand Down Expand Up @@ -114,7 +114,7 @@ jobs:
- name: Build the production images
id: build_push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
file: ./dockerfiles/Dockerfile
context: .
Expand All @@ -141,7 +141,7 @@ jobs:
- name: Build the debug multi-arch images
id: debug_build_push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
file: ./dockerfiles/Dockerfile
context: .
Expand Down Expand Up @@ -181,7 +181,7 @@ jobs:
shell: bash

- name: Upload the schema
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
path: ./fluent-bit-schema*.json
name: fluent-bit-schema-${{ inputs.version }}
Expand Down Expand Up @@ -314,7 +314,7 @@ jobs:
docker push ${{ inputs.registry }}/${{ inputs.image }}:windows-${{ matrix.windows-base-version }}-${{ inputs.version }}
# We cannot use this action as it requires privileged mode
# uses: docker/build-push-action@v5
# uses: docker/build-push-action@v6
# with:
# file: ./dockerfiles/Dockerfile.windows
# context: .
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/call-build-linux-packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
SOURCE_FILENAME_PREFIX: source-${{ inputs.version }}

- name: Upload the source artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: source-${{ inputs.version }}
path: source-packages/*
Expand Down Expand Up @@ -132,7 +132,7 @@ jobs:

- name: Replace all special characters with dashes
id: formatted_distro
run:
run: |
output=${INPUT//[\/]/-}
echo "$INPUT --> $output"
echo "replaced=$output" >> "$GITHUB_OUTPUT"
Expand All @@ -151,7 +151,7 @@ jobs:
working-directory: packaging

- name: Upload the ${{ steps.formatted_distro.outputs.replaced }} artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: packages-${{ inputs.version }}-${{ steps.formatted_distro.outputs.replaced }}
path: packaging/packages/
Expand Down
28 changes: 23 additions & 5 deletions .github/workflows/call-build-macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,21 @@ jobs:

call-build-macos-package:
if: needs.call-build-macos-legacy-check.outputs.build-type == 'modern'
runs-on: macos-latest
runs-on: ${{ matrix.config.runner }}
environment: ${{ inputs.environment }}
needs:
- call-build-macos-legacy-check
permissions:
contents: read
strategy:
fail-fast: false
matrix:
config:
- name: "Normal macOS-latest runner (Intel)"
runner: macos-12
- name: "Apple Silicon macOS runner"
runner: macos-14

steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -90,9 +99,9 @@ jobs:
working-directory: build

- name: Upload build packages
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: macos-packages
name: macos-packages on ${{ matrix.config.runner }}
path: |
build/fluent-bit-*-apple*
build/fluent-bit-*-intel*
Expand All @@ -108,6 +117,15 @@ jobs:
- call-build-macos-package
permissions:
contents: read
strategy:
fail-fast: false
matrix:
config:
- name: "Normal macOS-latest package (Intel)"
os: macos-12
- name: "Apple Silicon macOS package"
os: macos-14

steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -116,9 +134,9 @@ jobs:

- name: Download all artefacts
continue-on-error: true
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: macos-packages
name: macos-packages on ${{ matrix.config.os }}
path: artifacts/

- name: Push MacOS packages to S3
Expand Down
26 changes: 18 additions & 8 deletions .github/workflows/call-build-windows.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
---
name: Reusable workflow to build Windows packages optionally into S3 bucket

#
# If you change dependencies etc here, please also check and update
# the other Windows build resources:
#
# - DEVELOPER_GUIDE.md "Windows" section
# - appveyor.yml
# - .github/workflows/call-build-windows.yaml
# - dockerfiles/Dockerfile.windows
#

on:
workflow_call:
inputs:
Expand Down Expand Up @@ -98,7 +108,7 @@ jobs:

- name: Get dependencies
run: |
Invoke-WebRequest -O winflexbison.zip $env:WINFLEXBISON
Invoke-WebRequest -OutFile winflexbison.zip $env:WINFLEXBISON
Expand-Archive winflexbison.zip -Destination C:\WinFlexBison
Copy-Item -Path C:\WinFlexBison/win_bison.exe C:\WinFlexBison/bison.exe
Copy-Item -Path C:\WinFlexBison/win_flex.exe C:\WinFlexBison/flex.exe
Expand Down Expand Up @@ -126,7 +136,7 @@ jobs:

- name: Restore cached packages of vcpkg
id: cache-vcpkg-sources
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
with:
path: |
C:\vcpkg\packages
Expand All @@ -147,7 +157,7 @@ jobs:

- name: Save packages of vcpkg
id: save-vcpkg-sources
uses: actions/cache/save@v3
uses: actions/cache/save@v4
with:
path: |
C:\vcpkg\packages
Expand All @@ -168,9 +178,9 @@ jobs:
- name: Upload build packages
# Skip upload if we skipped build.
if: ${{ matrix.config.arch != 'amd64_arm64' || needs.call-build-windows-get-meta.outputs.armSupported == 'true' }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: windows-packages
name: windows-packages-${{ matrix.config.arch }}
path: |
build/*-bit-*.exe
build/*-bit-*.msi
Expand All @@ -195,10 +205,10 @@ jobs:
ref: master

- name: Download all artefacts
continue-on-error: true
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: windows-packages
pattern: windows-packages-*
merge-multiple: true
path: artifacts/

- name: Set up Windows checksums
Expand Down
19 changes: 2 additions & 17 deletions .github/workflows/call-integration-image-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
raw,${{ inputs.image-tag }}
- name: Build the AMD64 image
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
file: ./dockerfiles/Dockerfile
context: .
Expand All @@ -74,21 +74,6 @@ jobs:
push: true
load: false

- name: Upload the image just in case as an artefact
run: |
docker pull $IMAGE
docker save --output /tmp/pr-image.tar $IMAGE
env:
IMAGE: ${{ steps.meta.outputs.tags }}
shell: bash

- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: pr-${{ github.event.pull_request.number }}-image
path: /tmp/pr-image.tar
if-no-files-found: error

- name: Extract metadata from Github
id: meta-debug
uses: docker/metadata-action@v5
Expand All @@ -98,7 +83,7 @@ jobs:
raw,${{ inputs.image-tag }}-debug
- name: Build the AMD64 debug image
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
file: ./dockerfiles/Dockerfile
context: .
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/call-run-integration-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ jobs:
cli_config_credentials_token: ${{ secrets.terraform_api_token }}

- id: 'auth'
uses: 'google-github-actions/auth@v1'
uses: 'google-github-actions/auth@v2'
with:
credentials_json: ${{ secrets.gcp-service-account-key }}

- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v1'
uses: 'google-github-actions/setup-gcloud@v2'

- name: Replace terraform variables.
run: |
Expand Down Expand Up @@ -192,18 +192,18 @@ jobs:
bats-version: 1.9.0

- name: Create k8s Kind Cluster
uses: helm/kind-action@v1.8.0
uses: helm/kind-action@v1.10.0
with:
node_image: kindest/node:${{ matrix.k8s-release }}
cluster_name: kind

- name: Set up Helm
uses: azure/setup-helm@v3.5
uses: azure/setup-helm@v4
with:
version: v3.8.1

- name: Set up Kubectl
uses: azure/setup-kubectl@v3.2
uses: azure/setup-kubectl@v4

- name: Run tests
timeout-minutes: 60
Expand Down Expand Up @@ -240,12 +240,12 @@ jobs:
repository: fluent/fluent-bit-ci

- if: matrix.cloud == 'gke'
uses: 'google-github-actions/auth@v1'
uses: 'google-github-actions/auth@v2'
with:
credentials_json: ${{ secrets.gcp-service-account-key }}

- if: matrix.cloud == 'gke'
uses: 'google-github-actions/setup-gcloud@v1'
uses: 'google-github-actions/setup-gcloud@v2'
with:
install_components: 'gke-gcloud-auth-plugin'

Expand All @@ -255,16 +255,16 @@ jobs:
bats-version: 1.9.0

- name: Set up Helm
uses: azure/setup-helm@v3.5
uses: azure/setup-helm@v4
with:
version: v3.8.1

- name: Set up Kubectl
uses: azure/setup-kubectl@v3.2
uses: azure/setup-kubectl@v4

- name: Get the GKE Kubeconfig
if: matrix.cloud == 'gke'
uses: 'google-github-actions/get-gke-credentials@v1'
uses: 'google-github-actions/get-gke-credentials@v2'
with:
cluster_name: ${{ needs.call-run-terraform-setup.outputs.gke-cluster-name }}
location: ${{ needs.call-run-terraform-setup.outputs.gke-cluster-zone }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/call-test-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -184,15 +184,15 @@ jobs:
ref: ${{ inputs.ref }}

- name: Create k8s Kind Cluster
uses: helm/kind-action@v1.8.0
uses: helm/kind-action@v1.10.0

- name: Set up Helm
uses: azure/setup-helm@v3.5
uses: azure/setup-helm@v4
with:
version: v3.6.3

- name: Set up Kubectl
uses: azure/setup-kubectl@v3.2
uses: azure/setup-kubectl@v4

- name: Test the HTTP server is responding
timeout-minutes: 5
Expand Down
Loading

0 comments on commit 3ea1f90

Please sign in to comment.