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

差分検知のみにして、ログに出す量を減らして高速化する #1801

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

Goryudyuma
Copy link
Member

@massongit
Copy link
Member

# 差分があったときは差分を出力する
- name: Show diff
id: diff
shell: bash
if: github.event_name != 'pull_request' || github.event.action != 'closed'
working-directory: ${{inputs.working-directory}}
run: ${{ github.action_path }}/scripts/action/show_diff.sh

このあたりを差分があるファイル名を出す、といった感じの名前やコメントにすると良さそう。

@Goryudyuma
Copy link
Member Author

Goryudyuma commented Feb 14, 2025

100000のファイルに追記する例を試してみた

https://github.com/Goryudyuma/diff-pr-management-test01

今のバージョンだと、
https://github.com/Goryudyuma/diff-pr-management-test01/actions/runs/13331869254
で、5分経っても終わらなかった

このバージョンだと
https://github.com/Goryudyuma/diff-pr-management-test01/actions/runs/13331869253
で30sで完了

@Goryudyuma Goryudyuma marked this pull request as ready for review February 14, 2025 15:12
@Goryudyuma Goryudyuma changed the title 差分出力のところで、出力対象をファイル名のみにして、差分を減らす 差分検知のみにして、ログに出す量を減らして高速化する Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

2 participants