Closed syuilo closed 1 month ago
Attention: Patch coverage is 24.30556%
with 109 lines
in your changes missing coverage. Please review.
Project coverage is 41.65%. Comparing base (
45d8857
) to head (daeab84
). Report is 2 commits behind head on develop.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
pnpm build-misskey-js-with-types すると
Oops! Something went wrong! :(
ESLint: 9.8.0
SyntaxError: Unexpected identifier 'assert'
at compileSourceTextModule (node:internal/modules/esm/utils:337:16)
at ModuleLoader.moduleStrategy (node:internal/modules/esm/translators:166:18)
at callTranslator (node:internal/modules/esm/loader:436:14)
at ModuleLoader.moduleProvider (node:internal/modules/esm/loader:442:30)
tasukete
依存関係更新したら出なくなったけど
Unsupported schema format, expected openapi: 3.x
と言われる
直った
今度は
✘ Every operation must have a unique `operationId`.
✘ Every operation must have a unique `operationId`.
✘ Every operation must have a unique `operationId`.
✘ Every operation must have a unique `operationId`.
✘ Every operation must have a unique `operationId`.
✘ Every operation must have a unique `operationId`.
✘ Every operation must have a unique `operationId`.
✘ Every operation must have a unique `operationId`.
✘ Every operation must have a unique `operationId`.
✘ Every operation must have a unique `operationId`.
✘ Every operation must have a unique `operationId`.
✘ Every operation must have a unique `operationId`.
✘ Every operation must have a unique `operationId`.
✘ Every operation must have a unique `operationId`.
✘ Every operation must have a unique `operationId`.
✘ Every operation must have a unique `operationId`.
✘ Every operation must have a unique `operationId`.
✘ Every operation must have a unique `operationId`.
✘ Every operation must have a unique `operationId`.
✘ Every operation must have a unique `operationId`.
✘ Every operation must have a unique `operationId`.
✘ Every operation must have a unique `operationId`.
✘ Every operation must have a unique `operationId`.
✘ Every operation must have a unique `operationId`.
✘ Every operation must have a unique `operationId`.
tasukete
// misskey-jsはPOST固定で送っているので、こちらも決め打ちする。別メソッドに対応することがあればこちらも直す必要あり
が関係している?
pnpm --filter misskey-js api
(api extractor生成物の再生成)する必要がありそう(build-misskey-js-with-types
をすれば普通は自動で生成されるけど)
Every operation must have a unique
operationId
.
getとpostがあるエンドポイントに同一のoperationidがあてがわれていることが原因と推測します。 この辺と関連ありそう https://github.com/misskey-dev/misskey/issues/13498
(というかなんの対応を行うprなんだろう…)
(というかなんの対応を行うprなんだろう…)
物理削除に対してモデログを残す対応っぽい?
(というかなんの対応を行うprなんだろう…)
物理削除に対してモデログを残す対応っぽい?
なんかいろいろやる
コード以外にも何したかわかるような情報を残してくれるとちぇりぴする時とかに嬉しいかも
語彙力がないから説明できないわね
SyntaxError: Unexpected identifier 'assert' が再発した
eslint ./built/*/.ts --fix って要る??
/home/runner/work/misskey/misskey/packages/misskey-js/generator/built/autogen/types.ts 4:8 error Parsing error: ',' expected
nani
misskey-jsまわりのupdate deps、必須でないのであれば後回しが丸いのでは…
必須っぽそう
自分のnodeを20に下げれば良いかもしれないけど
SyntaxError: Unexpected identifier 'assert'
eslint周りのどっかのパッケージが node v22 で廃止された import asserts を使ってそう。てもとでもnode v22だと再現した
/home/runner/work/misskey/misskey/packages/misskey-js/generator/built/autogen/types.ts 4:8 error Parsing error: ',' expected
nani
types.ts
がこうなってたのでジェネレータのどっかがおかしい。openapi-typescript
のmajor更新が原因そう
/* eslint @typescript-eslint/naming-convention: 0 */
/* eslint @typescript-eslint/no-explicit-any: 0 */
[object Object],[object Object],[object Object],[object Object],[object Object]
misskey-dev/eslint-pluginがimport assert使ってるからそれじゃないかな
🙏🏿🙏🏿🙏🏿
misskey-dev/eslint-pluginがimport assert使ってるからそれじゃないかな
とりあえず issueだけ misskey-dev/eslint-plugin-misskey-dev#4
misskey-dev/eslint-plugin を直せば misskey js 周りの変更を全体的に戻しても node v22 でも問題なく動きそうとりあえず戻すPRと、eslint-plugin側の修正を準備します
当面は node v20 で作業していただけると多分ありがたいです
近いうちにやらなきゃいけないし戻さなくても良さそう
一つのPRにまとめるとわけがわからなくなるので分けてほしい気持ち
難しい
PR形式でやるとこうなっちゃうからdevelopに直接入れようと思ったけどテストの様子を見たいからPR形式にした
どかっとなんかいろいろな言葉にできないような変更を一括的に行いたいときの良い方法がなさそう
どかっとなんかいろいろな言葉にできないような変更を一括的に行いたいとき
分割できない範囲はまぁまとまっててもいいと思いますが分割できる範囲は別にしてて欲しい...
あとはSquashせずにPRにして、Mergeまえにrebase iで適宜reward . fixupするとかがあとから遡るときにわかりやすくていいと思ってます
🙏🏻
What
Why
Additional info (optional)
Checklist