Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
疯人忠
Cvat
提交
4a453217
C
Cvat
项目概览
疯人忠
/
Cvat
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
Cvat
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
4a453217
编写于
2月 08, 2023
作者:
K
Kirill Sizov
提交者:
GitHub
2月 08, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix Helm tests (#5579)
上级
e24baced
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
12 addition
and
107 deletion
+12
-107
.github/workflows/cache.yml
.github/workflows/cache.yml
+8
-25
.github/workflows/full.yml
.github/workflows/full.yml
+1
-25
.github/workflows/helm.yml
.github/workflows/helm.yml
+1
-1
.github/workflows/main.yml
.github/workflows/main.yml
+1
-27
.github/workflows/schedule.yml
.github/workflows/schedule.yml
+1
-29
未找到文件。
.github/workflows/cache.yml
浏览文件 @
4a453217
...
...
@@ -5,7 +5,11 @@ on:
-
'
develop'
jobs
:
get-sha
:
uses
:
./.github/workflows/search-cache.yml
Caching_CVAT
:
needs
:
search_cache
env
:
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
REPO
:
${{ github.repository }}
...
...
@@ -13,34 +17,13 @@ jobs:
steps
:
-
uses
:
actions/checkout@v3
-
name
:
Getting SHA with cache from the default branch
id
:
get-sha
run
:
|
DEFAULT_BRANCH=$(gh api /repos/$REPO | jq -r '.default_branch')
for sha in $(gh api "/repos/$REPO/commits?per_page=100&sha=${DEFAULT_BRANCH}" | jq -r '.[].sha');
do
RUN_status=$(gh api /repos/${REPO}/actions/workflows/cache.yml/runs | \
jq -r ".workflow_runs[]? | select((.head_sha == \"${sha}\") and (.conclusion == \"success\")) | .status")
if [[ ${RUN_status} == "completed" ]]; then
SHA=$sha
break
fi
done
echo Default branch is ${DEFAULT_BRANCH}
echo Workflow will try to get cache from commit: ${SHA}
echo "default_branch=${DEFAULT_BRANCH}" >> $GITHUB_OUTPUT
echo "sha=${SHA}" >> $GITHUB_OUTPUT
-
uses
:
actions/cache@v3
id
:
server-cache-action
with
:
path
:
/tmp/cvat_cache_server
key
:
${{ runner.os }}-build-server-${{ github.sha }}
restore-keys
:
|
${{ runner.os }}-build-server-${{
step
s.get-sha.outputs.sha }}
${{ runner.os }}-build-server-${{
need
s.get-sha.outputs.sha }}
${{ runner.os }}-build-server-
-
uses
:
actions/cache@v3
...
...
@@ -49,7 +32,7 @@ jobs:
path
:
/tmp/cvat_cache_ui
key
:
${{ runner.os }}-build-ui-${{ github.sha }}
restore-keys
:
|
${{ runner.os }}-build-ui-${{
step
s.get-sha.outputs.sha }}
${{ runner.os }}-build-ui-${{
need
s.get-sha.outputs.sha }}
${{ runner.os }}-build-ui-
-
uses
:
actions/cache@v3
...
...
@@ -58,7 +41,7 @@ jobs:
path
:
/tmp/cvat_cache_elasticsearch
key
:
${{ runner.os }}-build-elasticsearch-${{ github.sha }}
restore-keys
:
|
${{ runner.os }}-build-elasticsearch-${{
step
s.get-sha.outputs.sha }}
${{ runner.os }}-build-elasticsearch-${{
need
s.get-sha.outputs.sha }}
${{ runner.os }}-build-elasticsearch-
-
uses
:
actions/cache@v3
...
...
@@ -67,7 +50,7 @@ jobs:
path
:
/tmp/cvat_cache_logstash
key
:
${{ runner.os }}-build-logstash-${{ github.sha }}
restore-keys
:
|
${{ runner.os }}-build-logstash-${{
step
s.get-sha.outputs.sha }}
${{ runner.os }}-build-logstash-${{
need
s.get-sha.outputs.sha }}
${{ runner.os }}-build-logstash-
-
name
:
Set up Docker Buildx
...
...
.github/workflows/full.yml
浏览文件 @
4a453217
...
...
@@ -17,31 +17,7 @@ env:
jobs
:
search_cache
:
runs-on
:
ubuntu-latest
outputs
:
sha
:
${{ steps.get-sha.outputs.sha}}
env
:
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
REPO
:
${{ github.repository }}
steps
:
-
name
:
Getting SHA with cache from the default branch
id
:
get-sha
run
:
|
DEFAULT_BRANCH=$(gh api /repos/$REPO | jq -r '.default_branch')
for sha in $(gh api "/repos/$REPO/commits?per_page=100&sha=$DEFAULT_BRANCH" | jq -r '.[].sha');
do
RUN_status=$(gh api /repos/${REPO}/actions/workflows/cache.yml/runs | \
jq -r ".workflow_runs[]? | select((.head_sha == \"${sha}\") and (.conclusion == \"success\")) | .status")
if [[ ${RUN_status} == "completed" ]]; then
SHA=$sha
break
fi
done
echo Default branch is ${DEFAULT_BRANCH}
echo Workflow will try to get cache from commit: ${SHA}
echo "default_branch=${DEFAULT_BRANCH}" >> $GITHUB_OUTPUT
echo "sha=${SHA}" >> $GITHUB_OUTPUT
uses
:
./.github/workflows/search-cache.yml
build
:
needs
:
search_cache
...
...
.github/workflows/helm.yml
浏览文件 @
4a453217
...
...
@@ -87,4 +87,4 @@ jobs:
# They are still tested without Helm
run
:
|
kubectl cp tests/mounted_file_share/images $(kubectl get pods -l component=server -o jsonpath='{.items[0].metadata.name}'):/home/django/share
pytest --platform=kube -m "not with_external_services" tests/python
pytest --
timeout 30 --
platform=kube -m "not with_external_services" tests/python
.github/workflows/main.yml
浏览文件 @
4a453217
...
...
@@ -20,33 +20,7 @@ jobs:
github.event.pull_request.draft == false &&
!startsWith(github.event.pull_request.title, '[WIP]') &&
!startsWith(github.event.pull_request.title, '[Dependent]')
runs-on
:
ubuntu-latest
outputs
:
sha
:
${{ steps.get-sha.outputs.sha}}
env
:
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
REPO
:
${{ github.repository }}
steps
:
-
name
:
Getting SHA with cache from the default branch
id
:
get-sha
run
:
|
DEFAULT_BRANCH=$(gh api /repos/$REPO | jq -r '.default_branch')
for sha in $(gh api "/repos/$REPO/commits?per_page=100&sha=$DEFAULT_BRANCH" | jq -r '.[].sha');
do
RUN_status=$(gh api /repos/${REPO}/actions/workflows/cache.yml/runs | \
jq -r ".workflow_runs[]? | select((.head_sha == \"${sha}\") and (.conclusion == \"success\")) | .status")
if [[ ${RUN_status} == "completed" ]]; then
SHA=$sha
break
fi
done
echo Default branch is ${DEFAULT_BRANCH}
echo Workflow will try to get cache from commit: ${SHA}
echo "default_branch=${DEFAULT_BRANCH}" >> $GITHUB_OUTPUT
echo "sha=${SHA}" >> $GITHUB_OUTPUT
uses
:
./.github/workflows/search-cache.yml
build
:
needs
:
search_cache
...
...
.github/workflows/schedule.yml
浏览文件 @
4a453217
...
...
@@ -40,35 +40,7 @@ jobs:
search_cache
:
needs
:
check_updates
if
:
needs.check_updates.outputs.last_commit_time > needs.check_updates.outputs.last_night_time
runs-on
:
ubuntu-latest
outputs
:
sha
:
${{ steps.get-sha.outputs.sha}}
env
:
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
REPO
:
${{ github.repository }}
steps
:
-
name
:
Getting SHA with cache from the default branch
id
:
get-sha
run
:
|
DEFAULT_BRANCH=$(gh api /repos/$REPO | jq -r '.default_branch')
for sha in $(gh api "/repos/$REPO/commits?per_page=100&sha=$DEFAULT_BRANCH" | jq -r '.[].sha');
do
RUN_status=$(gh api /repos/${REPO}/actions/workflows/cache.yml/runs | \
jq -r ".workflow_runs[]? | select((.head_sha == \"${sha}\") and (.conclusion == \"success\")) | .status")
if [[ ${RUN_status} == "completed" ]]; then
SHA=$sha
break
fi
done
echo Default branch is ${DEFAULT_BRANCH}
echo Workflow will try to get cache from commit: ${SHA}
echo "default_branch=${DEFAULT_BRANCH}" >> $GITHUB_OUTPUT
echo "sha=${SHA}" >> $GITHUB_OUTPUT
uses
:
./.github/workflows/search-cache.yml
build
:
needs
:
search_cache
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录