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

refactor: Yarn Workspaces への移行 #1056

Merged
merged 12 commits into from
Sep 18, 2023
Merged

refactor: Yarn Workspaces への移行 #1056

merged 12 commits into from
Sep 18, 2023

Conversation

m1sk9
Copy link
Contributor

@m1sk9 m1sk9 commented Sep 17, 2023

close #998

Details of implementation (実施内容)

Yarn Workspaces に移行し, それぞれのパッケージを @oreorebot2/bot, @oreorebot2/docs の2つに分割しました.

  • 大半の変更はファイル間の移動です.
  • このビルドの Docker Images のサイズが 527MB -> 915MB に倍増してしまいました. 主な原因として @oreorebot2/docs パッケージを含めてしまっているからだと推測されます.( Yarn Workspaces の仕様上, @oreorebot2/docs パッケージを含めないと Docker Image のビルド時に失敗するため致し方ないと考えていますが, Docker に詳しい人が居たら指摘してくれると助かります. 私にはこれが限界です.)
  • CONTRIBUTING.md は別で変更したい内容があるため, 今回のPRには含めていません.

@github-actions github-actions bot added C-GitHub Actions Category: GitHub Actions T-Documents labels Sep 17, 2023
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Sep 17, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 0b98c7d
Status:🚫  Build failed.

View logs

@m1sk9 m1sk9 force-pushed the yarn-workspaces branch 5 times, most recently from a8bf027 to 2872192 Compare September 17, 2023 08:14
@github-actions
Copy link
Contributor

Hadolint: success


1 similar comment
@github-actions
Copy link
Contributor

Hadolint: success


packages/bot/package.json Outdated Show resolved Hide resolved
Dockerfile Show resolved Hide resolved
@github-actions
Copy link
Contributor

Hadolint: success


@github-actions
Copy link
Contributor

Hadolint: success


1 similar comment
@github-actions
Copy link
Contributor

Hadolint: success


@m1sk9
Copy link
Contributor Author

m1sk9 commented Sep 17, 2023

イメージのビルド自体は成功していますが最適化作業中, 以下の問題が存在しています.

  • Production Install を行うと Husky を実行しようとしてしまいビルドに失敗する.
    image

最適化を後にする場合はこのPRをマージすることができます.
依存関係が絡むPRのため, 放置すればするほど @renovate のPRにより conflict 範囲が広くなってしまうためできれば早くマージしたいところ.

Copy link
Collaborator

@MikuroXina MikuroXina left a comment

Choose a reason for hiding this comment

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

最適化はあとでいいので, コードカバレッジの CI のカバレッジファイルのパスを直しましょう. それで Approve できます

.github/codeql/codeql-config.yml Outdated Show resolved Hide resolved
@github-actions
Copy link
Contributor

Hadolint: success


@github-actions
Copy link
Contributor

Hadolint: success


1 similar comment
@github-actions
Copy link
Contributor

Hadolint: success


@codecov
Copy link

codecov bot commented Sep 18, 2023

Codecov Report

Merging #1056 (0b98c7d) into main (fd4a063) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #1056   +/-   ##
=======================================
  Coverage   73.89%   73.89%           
=======================================
  Files          75       75           
  Lines        5195     5195           
  Branches      459      459           
=======================================
  Hits         3839     3839           
  Misses        898      898           
  Partials      458      458           
Flag Coverage Δ
unittests 73.89% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
packages/bot/src/adaptor/clock.ts 73.33% <ø> (ø)
packages/bot/src/adaptor/discord/output.ts 35.41% <ø> (ø)
packages/bot/src/adaptor/discord/participant.ts 56.52% <ø> (ø)
packages/bot/src/adaptor/discord/voice.ts 26.54% <ø> (ø)
packages/bot/src/adaptor/embed-convert.ts 18.36% <ø> (ø)
packages/bot/src/adaptor/in-memory-reservation.ts 66.66% <ø> (ø)
packages/bot/src/adaptor/in-memory-typo.ts 76.92% <ø> (ø)
packages/bot/src/adaptor/index.ts 100.00% <ø> (ø)
packages/bot/src/adaptor/mock-voice.ts 74.41% <ø> (ø)
packages/bot/src/adaptor/proxy.ts 100.00% <ø> (ø)
... and 65 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@m1sk9 m1sk9 changed the title chore: Yarn Workspaces への移行 refactor: Yarn Workspaces への移行 Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-GitHub Actions Category: GitHub Actions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OreOreBot2 と ドキュメント を yarn workspace にする
2 participants