Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Add automatic update of spiderpool authors #3506

Merged
merged 1 commit into from
May 30, 2024

Conversation

ty-dc
Copy link
Collaborator

@ty-dc ty-dc commented May 20, 2024

Thanks for contributing!

What type of PR is this?

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

@ty-dc ty-dc added the release/none no release note label May 20, 2024
@ty-dc ty-dc requested a review from weizhoublue as a code owner May 20, 2024 08:28
@ty-dc ty-dc force-pushed the auto-check-authors-x branch 3 times, most recently from 4bffe6d to 02ff7e8 Compare May 20, 2024 09:00
@ty-dc ty-dc added the pr/not-ready not ready for merging label May 20, 2024
Makefile Outdated
@@ -499,3 +499,10 @@ lint_chart_trivy:
.PHONY: build-chart
build-chart:
@ cd charts ; make

update-authors:
Copy link
Collaborator

@weizhoublue weizhoublue May 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

185 行已经有 update-author , 作用类似 ? 建议保持 makefile 的干净,不需要这么多,进行必要的整合
然后这个target 的位置 放在 makefile 合适的位置,不是 随意的加在最后

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done


# exclusion list
# Exclude bots and non-compliant lists
excluded_name=("dependabot[bot]" "root" "weizhou.lan@daocloud.io")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

为什么有 hardcode

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不是一个“真的”贡献者?没有必要加到 authors 里面吧?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

为什么有 exclude 逻辑

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

AUTHORS Outdated
swatchgame a865316182@gmail.com
twoodpecker tysuper@yeah.net
weizhouBlue weizhou.lan@daocloud.io
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里有bug 就是, 我早期用 weizhouBlue , 后来用 weizhoublue , 对应同一个 email

那么应该取为 最新的 weizhoublue

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@ty-dc ty-dc force-pushed the auto-check-authors-x branch 8 times, most recently from 29b61cd to 96dd279 Compare May 25, 2024 07:22
@ty-dc ty-dc removed the pr/not-ready not ready for merging label May 25, 2024

# Copyright 2024 Authors of spidernet-io
# SPDX-License-Identifier: Apache-2.0

Copy link
Collaborator

@weizhoublue weizhoublue May 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shell 代码 健壮性太差
shell 代码顶部 应该有常规的 set -x 等之类的 返回码异常 判断,加强健壮性

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Makefile Outdated
@@ -181,13 +181,12 @@ dev-doctor:

#============ tools ====================

.PHONY: update-authors
update-authors: ## Update AUTHORS file for the repository.
update-authors:
@echo "Updating AUTHORS file..."
@echo "The following people, in alphabetical order, have either authored or signed" > AUTHORS
Copy link
Collaborator

@weizhoublue weizhoublue May 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

如果 extractAuthors.sh 有失败,这里直接 已经 提前 其他把 文件清空了,就会有 bug ,提交一份错的 空文件上来

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

先用 变量 存住 脚本输出,判断返回码,再 打印到文件

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done


- name: update authors of spiderpool
run: |
make update-authors
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里没有任何返回码的判断,如果直接失败了,产生的文件 可能是错的,这里直接提交 错误的

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Signed-off-by: tao.yang <tao.yang@daocloud.io>
Signed-off-by: ty-dc <tao.yang@daocloud.io>
@weizhoublue weizhoublue merged commit dbd30d4 into spidernet-io:main May 30, 2024
43 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release/none no release note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants