Skip to content

Commit

Permalink
Merge branch 'master' of github.com:flyteorg/flyte into agent-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
pingsutw committed Aug 29, 2024
2 parents 2bff62e + 5c147ef commit accd86c
Show file tree
Hide file tree
Showing 662 changed files with 18,456 additions and 21,030 deletions.
6 changes: 0 additions & 6 deletions .codespellrc

This file was deleted.

11 changes: 11 additions & 0 deletions .github/actions/clear-action-cache/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: 'Clear action cache'
description: 'As suggested by GitHub to prevent low disk space: https://github.com/actions/runner-images/issues/2840#issuecomment-790492173'
runs:
using: 'composite'
steps:
- shell: bash
run: |
rm -rf /usr/share/dotnet
rm -rf /opt/ghc
rm -rf "/usr/local/share/boost"
rm -rf "$AGENT_TOOLSDIRECTORY"
11 changes: 11 additions & 0 deletions .github/codespell-ignored-words
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
ThirdParty
bootup
crate
fo
lightyear
nd
notin
querys
ser
te
updAt
4 changes: 2 additions & 2 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Components Checks

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true

on:
Expand All @@ -10,7 +10,7 @@ on:
branches:
- master
env:
GO_VERSION: "1.21"
GO_VERSION: "1.22"
PRIORITIES: "P0"
jobs:
unpack-envvars:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/codespell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: Codespell

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true

on:
Expand All @@ -25,5 +25,5 @@ jobs:
- name: Codespell
uses: codespell-project/actions-codespell@v2
with:
skip: "*.pb,monodocs-environment.lock.yaml"
ignore_words_list: crate,lightyear,fo
skip: "*.pb,monodocs-environment.lock.yaml,.git,*.pdf,*.svg,go.sum,go.mod,*requirements.txt,gen"
ignore_words_file: .github/codespell-ignored-words
4 changes: 3 additions & 1 deletion .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ jobs:
"datacatalog",
"flyteadmin",
"flytecopilot",
"flyteidl",
"flyteplugins",
"flytepropeller",
"flytestdlib",
Expand Down Expand Up @@ -88,6 +87,7 @@ jobs:
[
datacatalog,
flyteadmin,
flyteagent,
flyteconsole,
flytecopilot,
flytepropeller,
Expand All @@ -107,6 +107,8 @@ jobs:
run: |
if [ ${{ matrix.component }} = "flytecopilot" ]; then
echo ::set-output name=version::$(yq eval '.configmap.copilot.plugins.k8s.co-pilot.image' charts/flyte-core/values.yaml | cut -d ":" -f 2 )
elif [ ${{ matrix.component }} = "flyteagent" ]; then
echo ::set-output name=version::$(yq eval '.image.tag' charts/flyteagent/values.yaml)
else
echo ::set-output name=version::$(yq eval '.${{ matrix.component }}.image.tag' charts/flyte-core/values.yaml)
fi
Expand Down
124 changes: 0 additions & 124 deletions .github/workflows/end2end.yml

This file was deleted.

33 changes: 33 additions & 0 deletions .github/workflows/flytectl-install.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Flytectl-specific checks

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true

on:
pull_request:
paths:
- flytectl/**
push:
branches:
- master

jobs:
install-script:
name: Install script
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
version:
- v0.8.20
- latest
# Test the case where no version is specified
- " "
steps:
- uses: actions/checkout@v4
- run: |
chmod +x ./flytectl/install.sh
./flytectl/install.sh ${{ matrix.version }}
./bin/flytectl version
27 changes: 24 additions & 3 deletions .github/workflows/flytectl-release.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,34 @@
name: Flytectl release

on:
push:
tags:
- flytectl/v*.*.*
workflow_dispatch:
inputs:
version:
description: "version. Do *not* use the `flytectl/` prefix, e.g. `flytectl/v1.2.3`, instead use only `v1.2.3` (including the `v`)"
required: true

jobs:
push-flytectl-tag:
name: Push git tag containing the `flyteidl/` prefix
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: '0'
- uses: actions/github-script@v6
with:
github-token: ${{ secrets.FLYTE_BOT_PAT }}
script: |
github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: `refs/tags/flytectl/${{ github.event.inputs.version }}`,
sha: context.sha
})
release:
name: Goreleaser
needs:
- push-flytectl-tag
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/flyteidl-checks.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Flyteidl Verification Tests

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true

on:
Expand All @@ -10,7 +10,7 @@ on:
branches:
- master
env:
GO_VERSION: "1.21"
GO_VERSION: "1.22"
jobs:
unpack-envvars:
runs-on: ubuntu-latest
Expand Down
38 changes: 31 additions & 7 deletions .github/workflows/flyteidl-release.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,41 @@
name: Upload flyteidl to PyPI and npm
name: Release flyteidl

on:
release:
types: [published]
workflow_dispatch:
inputs:
version:
description: "version. Do *not* use the `flyteidl/` prefix, e.g. `flyteidl/v1.2.3`, instead use only `v1.2.3` (including the `v`)"
required: true

jobs:
push-flyteidl-tag:
name: Push git tag containing the `flyteidl/` prefix
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: '0'
- uses: actions/github-script@v6
with:
github-token: ${{ secrets.FLYTE_BOT_PAT }}
script: |
github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: `refs/tags/flyteidl/${{ github.event.inputs.version }}`,
sha: context.sha
})
deploy-to-pypi:
if: "!startsWith(github.event.release.tag_name, 'flytectl/')"
needs:
- push-flyteidl-tag
runs-on: ubuntu-latest
defaults:
run:
working-directory: flyteidl
steps:
- uses: actions/checkout@v4
with:
fetch-depth: '0'
- name: Set up Python
uses: actions/setup-python@v1
with:
Expand All @@ -29,7 +52,8 @@ jobs:
python -m build
twine upload dist/*
deploy-to-npm:
if: "!startsWith(github.event.release.tag_name, 'flytectl/')"
needs:
- push-flyteidl-tag
runs-on: ubuntu-latest
defaults:
run:
Expand All @@ -42,8 +66,8 @@ jobs:
registry-url: "https://registry.npmjs.org"
- name: Set version in npm package
run: |
# from refs/tags/v1.2.3 get 1.2.3
VERSION=$(echo $GITHUB_REF | sed 's#.*/v##')
# v1.2.3 get 1.2.3
VERSION=$(echo ${{ inputs.version }} | sed 's#.*v##')
VERSION=$VERSION make update_npmversion
shell: bash
- run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/generate_flyte_manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: "0"
- uses: actions/setup-go@v4
- uses: actions/setup-go@v5
with:
go-version: "1.21"
go-version: "1.22"
- name: Update references
env:
VERSION: ${{ github.event.inputs.next-version }}
Expand Down
Loading

0 comments on commit accd86c

Please sign in to comment.