Skip to content

Commit

Permalink
Fix github actions (#7623)
Browse files Browse the repository at this point in the history
* Bump ubuntu version for actions

* Fix changes

* test

* test2

* test3

* test4

* Good for now

---------

Co-authored-by: Nir Ozery <nir.ozery@treeverse.io>
  • Loading branch information
guy-har and N-o-Z authored Apr 4, 2024
1 parent 727b090 commit 391c9ea
Show file tree
Hide file tree
Showing 28 changed files with 124 additions and 104 deletions.
13 changes: 6 additions & 7 deletions .github/actions/bootstrap-test-lakefs/action.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
name: 'Start lakeFS for testing'
description: 'Get generated code, authenticate to ECR, and run docker-compose up'
description: 'Get generated code, authenticate to ECR, and run docker compose up'
inputs:
compose-flags:
description: flags to add to docker-compose up command
description: flags to add to docker compose up command
required: false
default: "-d"
compose-file:
description: alternative path to docker-compose file
description: alternative path to docker compose file
required: false
compose-directory:
description: working directory for the docker-compose step
description: working directory for the docker compose step
required: false
default: "."
runs:
Expand All @@ -32,12 +32,11 @@ runs:
- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2
- name: Start docker-compose
- name: Start docker compose
env:
LAKEFS_STATS_ENABLED: "false"
LAKEFS_GATEWAYS_S3_DOMAIN_NAME: s3.docker.lakefs.io:8000
shell: bash
working-directory: ${{ inputs.compose-directory }}
run: |
[[ -z "${{ inputs.compose-file }}" ]] && flags="" || flags="-f ${{ inputs.compose-file }}"
docker-compose ${flags} up ${{ inputs.compose-flags }}
docker compose --project-directory ${{ inputs.compose-directory }} ${flags} up ${{ inputs.compose-flags }}
2 changes: 1 addition & 1 deletion .github/workflows/check-ui-links.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
jobs:
preview:
name: Check links from UI
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Check-out
uses: actions/checkout@v4
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/compatibility-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ permissions:
jobs:
gen-code:
name: Generate code from latest lakeFS app
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Check-out code
uses: actions/checkout@v4
Expand Down Expand Up @@ -62,7 +62,7 @@ jobs:
deploy-image:
name: Build and cache Docker image
needs: [gen-code]
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
outputs:
tag: ${{ steps.version.outputs.tag }}
image_id: ${{ steps.build_export.outputs.ImageID }}
Expand Down Expand Up @@ -122,7 +122,7 @@ jobs:
# Removing a version from this list means the published client is no longer compatible with
# that lakeFS version.
lakefs_version: [ 0.108.0, 0.109.0, 0.110.0, 0.111.0, 0.111.1, 0.112.1, 0.113.0, 1.0.0, 1.1.0, 1.2.0, 1.3.0, 1.3.1, 1.4.0, 1.5.0, 1.6.0, 1.7.0, 1.8.0, 1.9.0, 1.9.1, 1.10.0, 1.11.0, 1.11.1, 1.12.0, 1.12.1, 1.13.0, 1.14.0, 1.14.1, 1.15.0 ]
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
env:
TAG: ${{ matrix.lakefs_version }}
REPO: treeverse
Expand Down Expand Up @@ -187,7 +187,7 @@ jobs:
if: ${{ failure() }}
continue-on-error: true
working-directory: test/spark
run: docker-compose logs --tail=15000 lakefs
run: docker compose logs --tail=15000 lakefs

compatibility-checks-server:
name: Test lakeFS server FileSystem compatibility
Expand All @@ -198,7 +198,7 @@ jobs:
# Removing a version from this list means the current lakeFS is no longer compatible with
# that Hadoop lakeFS client version.
client_version: [ 0.1.10, 0.1.11, 0.1.12, 0.1.13, 0.1.14, 0.1.15, 0.2.1 ]
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
env:
CLIENT_VERSION: ${{ matrix.client_version }}
TAG: ${{ needs.deploy-image.outputs.tag }}
Expand Down Expand Up @@ -272,12 +272,12 @@ jobs:
if: ${{ failure() }}
continue-on-error: true
working-directory: test/spark
run: docker-compose logs --tail=15000 lakefs
run: docker compose logs --tail=15000 lakefs

notify-slack:
name: Notify slack on workflow failures
needs: [compatibility-checks-client, compatibility-checks-server]
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
if: ${{ always() && contains(needs.*.result, 'failure') }}
steps:
- name: slack-send
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker-publish-exp-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ permissions:
jobs:
deploy:
name: Build and push Docker image
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:

- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker-publish-lakefs-rclone-export.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ permissions:
jobs:
deploy-rclone-export-image:
name: Build and push rclone export Docker image
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ permissions:
jobs:
deploy:
name: Build and push Docker image
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:

- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs-latest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
jobs:
docs-latest:
name: Documentation latest
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Check-out
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
# This job name kept short because it's used in the preview URL
preview:
name: Docs PR - Publish preview and check links
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Check-out
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
jobs:
docs-release:
name: Documentation release
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Check-out
uses: actions/checkout@v4
Expand Down
Loading

0 comments on commit 391c9ea

Please sign in to comment.