Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
G
goyo-syncable-container
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 27
    • Issues 27
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 7
    • Merge Requests 7
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Package Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • kuraemon-goyo
  • packages
  • goyo-syncable-container
  • Merge Requests
  • !27

Merged
Opened Sep 25, 2024 by 工藤 思由@s_kudoDeveloper

クライアントの作業フォルダをローテーション

  • Overview 2
  • Commits 10
  • Changes 3

概要

クライアント側でcontrol以下にできる作業用フォルダがたまり続けるので、ローテーションを実装

実装は Issue #16 に従って行った

変更したインターフェイス

本番用

  • protected GoyoClient.constructor に任意引数 options?: {maxWorkFolderCount?: number} を追加

  • protected get GoyoClient.controlWorkFolderBasePath を追加 ( GoyoClientMockのテスト用公開メソッドのために protected )

  • protected GoyoClient.createControlWorkFolder を追加 ( GoyoClientMockのテスト用公開メソッドのために protected )

テスト用

  • static GoyoClientMock.makeWithOptions options?: {maxWorkFolderCount?: number}を設定できる疑似コンストラクタ

  • GoyoClientMock.createWorkFolderForTest 作業フォルダ作成

  • GoyoClientMock.listWorkFolderForTest 作業フォルダ列挙

備考

作業フォルダが衝突する場合1ミリ秒sleepしてリトライを行う(最大3回) (作業フォルダ名は1ミリ秒ごとに変わるため) テストでは表現できていないが、リトライすること3回リトライしてもダメな場合はエラーになることを目視にて確認

Edited Sep 26, 2024 by 工藤 思由
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
Reference: kuraemon-goyo/packages/goyo-syncable-container!27
Source branch: issues/16-rotate-control-work-directory

Revert this merge request

This will create a new commit in order to revert the existing changes.

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.

Cherry-pick this merge request

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.