ユーザー機能テストにおけるWiki操作機能のテスト追加#36
Open
lieunguyen-tma wants to merge 3 commits into
Open
Conversation
yacchin1205
self-requested a review
June 13, 2026 12:49
yacchin1205
requested changes
Jun 13, 2026
yacchin1205
left a comment
Collaborator
There was a problem hiding this comment.
gitleaks による検出事項が残っているため、修正をお願いします。
このPRには、リポジトリの .gitleaks.toml で定義されている rdm-nii-url ルールに該当するURLがNotebook内に残っています。(実URLはレビューコメントには記載しません。)
必ず pre-commit hook を実行し、gitleaksを実行した上で再提出をお願いいたします。
lieunguyen-tma
force-pushed
the
feature/wiki-operation
branch
2 times, most recently
from
June 15, 2026 07:08
3c2f2a5 to
ca569cc
Compare
lieunguyen-tma
marked this pull request as draft
June 15, 2026 12:42
lieunguyen-tma
force-pushed
the
feature/wiki-operation
branch
from
July 7, 2026 11:20
8c3bd39 to
289e39a
Compare
上記を含め、「Wiki操作機能」の対応が完了しました。上記の不備があり、申し訳ありませんでした。 CI基盤側の修正内容を本 Pull Request の「Changes」にまとめておりますので、お手数ですが、ご確認よろしくお願いします。 |
lieunguyen-tma
marked this pull request as ready for review
July 17, 2026 03:32
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
Wiki操作のテストのためのNotebookを追加し、これを
結合試験-実行.ipynbから実行するための修正を行った。追加された「テスト手順」ファイルの目的は以下の通りである。
これらを実行するための「取りまとめ」ファイルである以下のファイルも追加した。
なお、Wiki操作のうち「WikiJoint(共同編集)」は、【A】【B】の2セッションを交互に操作する必要があり、現行の試験基盤への拡張実装が前提となること、およびCRDT同期・ネットワーク切断復旧検証の安定化に相応のコストを要することから、本PRではスコープ外とする。
Changes
本PRの変更を「(1) Wiki操作テスト本体」と「(2) それを CI で実行するための共有CI基盤の修正」に分けて記載する。
(1) Wiki操作テスト本体(本リポジトリ内のみ/共有CIへの影響なし)
Wiki操作(Import / Hierarchy / Decoration)のテスト手順を追加し、実行可能にするための変更。
テスト手順-Wiki操作-{WikiImport,WikiHierarchy,WikiDecoration}.ipynbと取りまとめ取りまとめ-Wiki操作.ipynbを新規追加(既存の取りまとめ/テスト手順Notebookと同じ構成)。scripts/grdm.pyに Wiki操作用ヘルパ7件を追加(既存ヘルパと同じ async / Playwright locator 方式)。resources/Datatest-Wiki/にテストデータを追加。結合試験-実行.ipynbに手動実行時のスキップ用フラグskip_wikiを追加。(2) Wiki操作テストを CI で実行するための共有CI基盤の修正(すべて WIKI_ENABLED=true のときのみ動作)
(2-a) Wiki画面を描画させる — wikiバンドルを OSF イメージへ組み込む
.github/workflows/e2e-test.yml:RDM-wiki-frontendをビルドしwiki-edit-page.jsを OSF イメージへ組み込み、OSF_IMAGEを差し替え(既存の WEKO / Flowable の外部リポ取り込み・migration のOSF_IMAGE差し替えと同じ方式)。(2-b) Wiki編集のリアルタイム同期を動かす — y-websocket を起動
.github/workflows/e2e-test.yml(起動):RDM-y-websocketをクローン&ローカルで Docker イメージをビルドし、docker/y-websocket/docker-compose.ymlを使ってdocker compose up -dで起動。.github/workflows/e2e-test.yml(ログ収集・停止ステップ):y-websocket のコンテナログをy-websocket-logs.txtとして収集し Artifact にアップロード(y-websocket-logs-{test-group})。その後docker compose down -vでコンテナを停止(WEKO / Flowable の cleanup ブロックと同じ方式)。.github/scripts/setup_rdm.sh:create_docker_overrideにY_WEBSOCKET_URLの注入を追加(webサービスの環境変数として。未設定時はスキップ)。(2-c) Wikiインポートを成功させる — ユーザー鍵を用意
.github/scripts/setup_test_data.py:create_rdmuserkey()を追加し、WIKI_ENABLED時のみ各テストユーザーの鍵レコードを投入(既存の各機能のデータ投入と同じくガード付き。鍵の実体は保存せずメタデータ行のみ)。WIKI_ENABLED時のみ投入する。(2-d) Wikiテストを専用グループでのみ実行する(他グループへ影響させない)
.github/workflows/e2e-test.yml:user-wikiグループを追加+WIKI_ENABLEDの算出(既存のuser-weko-*/user-jupyterhub/user-workflow-*と同じく専用グループ化)。.github/scripts/generate_ci_config.sh:--wikiフラグを追加しwiki_enabledを CI 設定に出力(既存の--minio/--weko/--flowableと同じ)。run_tests.py:run_wiki_tests()を追加しwiki_enabledが false で早期リターン(既存のrun_jupyterhub_tests/run_weko_tests/run_workflow_testsと同じパターン)。Ticket
Custom Test Configuration