Skip to content

Commit

Permalink
Refactor temporal workflow (#231)
Browse files Browse the repository at this point in the history
* Merge branch 'refactor/temporal_client' into 'main'

Refactor temporal and add workflow tests

See merge request product/starhub/starhub-server!777

* Merge branch 'fix/exec_workflow' into 'main'

Fix temporal workflow run param

See merge request product/starhub/starhub-server!782

* update mockery yaml

---------

Co-authored-by: yiling.ji <yl.ji@opencsg.com>
  • Loading branch information
Yiling-J and yiling.ji authored Jan 3, 2025
1 parent 5bcc387 commit 6419f2d
Show file tree
Hide file tree
Showing 32 changed files with 4,393 additions and 495 deletions.
273 changes: 148 additions & 125 deletions .mockery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,129 +4,152 @@ dir: "_mocks/{{.PackagePath}}"
# https://github.com/vektra/mockery/commit/13fc60740a1eab3fc705fcc131a4b9a6eacfd0fe#diff-4bc8f03915f15ecf2cb9965592fcf933bb06986003613b5633a8dea7962c31a9R40
resolve-type-alias: false
packages:
io:
config:
interfaces:
Reader:
opencsg.com/csghub-server/component:
config:
interfaces:
RepoComponent:
TagComponent:
AccountingComponent:
SpaceComponent:
SpaceResourceComponent:
RuntimeArchitectureComponent:
SensitiveComponent:
CodeComponent:
PromptComponent:
ModelComponent:
UserComponent:
GitHTTPComponent:
DiscussionComponent:
DatasetComponent:
CollectionComponent:
InternalComponent:
MirrorSourceComponent:
MirrorComponent:
EvaluationComponent:
io:
config:
interfaces:
Reader:
opencsg.com/csghub-server/component:
config:
interfaces:
RepoComponent:
TagComponent:
AccountingComponent:
SpaceComponent:
SpaceResourceComponent:
RuntimeArchitectureComponent:
SensitiveComponent:
CodeComponent:
PromptComponent:
ModelComponent:
UserComponent:
GitHTTPComponent:
DiscussionComponent:
DatasetComponent:
CollectionComponent:
InternalComponent:
MirrorSourceComponent:
MirrorComponent:
ImportComponent:
EvaluationComponent:
RecomComponent:
MultiSyncComponent:
opencsg.com/csghub-server/component/callback:
config:
interfaces:
SyncVersionGenerator:
GitCallbackComponent:
opencsg.com/csghub-server/user/component:
config:
interfaces:
MemberComponent:
OrganizationComponent:


opencsg.com/csghub-server/user/component:
config:
interfaces:
MemberComponent:
opencsg.com/csghub-server/builder/store/database:
config:
all: True
opencsg.com/csghub-server/builder/rpc:
config:
interfaces:
UserSvcClient:
ModerationSvcClient:
opencsg.com/csghub-server/builder/sensitive:
config:
interfaces:
GreenClient:
Green2022Client:
SensitiveChecker:
opencsg.com/csghub-server/builder/git/gitserver:
config:
interfaces:
GitServer:
opencsg.com/csghub-server/builder/git/mirrorserver:
config:
interfaces:
MirrorServer:
opencsg.com/csghub-server/builder/git/membership:
config:
interfaces:
GitMemerShip:
opencsg.com/csghub-server/builder/rsa:
config:
interfaces:
KeysReader:
opencsg.com/csghub-server/mirror/cache:
config:
interfaces:
Cache:
opencsg.com/csghub-server/common/types:
config:
interfaces:
SensitiveRequestV2:
opencsg.com/csghub-server/mq:
config:
interfaces:
MessageQueue:
opencsg.com/csghub-server/builder/store/s3:
config:
interfaces:
Client:
opencsg.com/csghub-server/mirror/queue:
config:
interfaces:
PriorityQueue:
opencsg.com/csghub-server/builder/deploy:
config:
interfaces:
Deployer:
opencsg.com/csghub-server/builder/deploy/scheduler:
config:
interfaces:
Scheduler:
opencsg.com/csghub-server/builder/deploy/imagerunner:
config:
interfaces:
Runner:
opencsg.com/csghub-server/builder/deploy/imagebuilder:
config:
interfaces:
Builder:

opencsg.com/csghub-server/accounting/component:
config:
interfaces:
AccountingUserComponent:
AccountingStatementComponent:
AccountingBillComponent:
AccountingPresentComponent:
opencsg.com/csghub-server/builder/accounting:
config:
interfaces:
AccountingClient:
opencsg.com/csghub-server/builder/parquet:
config:
interfaces:
Reader:
opencsg.com/csghub-server/builder/multisync:
config:
interfaces:
Client:
github.com/nats-io/nats.go/jetstream:
config:
interfaces:
Msg:
go.temporal.io/sdk/client:
config:
interfaces:
Client:
opencsg.com/csghub-server/builder/store/database:
config:
all: True
opencsg.com/csghub-server/builder/rpc:
config:
interfaces:
UserSvcClient:
ModerationSvcClient:
opencsg.com/csghub-server/builder/sensitive:
config:
interfaces:
GreenClient:
Green2022Client:
SensitiveChecker:
opencsg.com/csghub-server/builder/git/gitserver:
config:
interfaces:
GitServer:
opencsg.com/csghub-server/builder/git/mirrorserver:
config:
interfaces:
MirrorServer:
opencsg.com/csghub-server/builder/git/membership:
config:
interfaces:
GitMemerShip:
opencsg.com/csghub-server/builder/rsa:
config:
interfaces:
KeysReader:
opencsg.com/csghub-server/mirror/cache:
config:
interfaces:
Cache:
opencsg.com/csghub-server/common/types:
config:
interfaces:
SensitiveRequestV2:
opencsg.com/csghub-server/mq:
config:
interfaces:
MessageQueue:
opencsg.com/csghub-server/builder/store/s3:
config:
interfaces:
Client:
opencsg.com/csghub-server/mirror/queue:
config:
interfaces:
PriorityQueue:
opencsg.com/csghub-server/builder/deploy:
config:
interfaces:
Deployer:
opencsg.com/csghub-server/builder/deploy/scheduler:
config:
interfaces:
Scheduler:
opencsg.com/csghub-server/builder/deploy/imagerunner:
config:
interfaces:
Runner:
opencsg.com/csghub-server/builder/deploy/imagebuilder:
config:
interfaces:
Builder:
opencsg.com/csghub-server/accounting/component:
config:
interfaces:
AccountingUserComponent:
AccountingStatementComponent:
AccountingBillComponent:
AccountingPresentComponent:
MeteringComponent:
AccountingEventComponent:
AccountingPriceComponent:
AccountingOrderComponent:
opencsg.com/csghub-server/builder/accounting:
config:
interfaces:
AccountingClient:
opencsg.com/csghub-server/builder/parquet:
config:
interfaces:
Reader:
opencsg.com/csghub-server/builder/multisync:
config:
interfaces:
Client:
opencsg.com/csghub-server/builder/store/cache:
config:
interfaces:
RedisClient:
github.com/nats-io/nats.go/jetstream:
config:
interfaces:
Msg:
go.temporal.io/sdk/client:
config:
interfaces:
Client:
opencsg.com/csghub-server/builder/temporal:
config:
interfaces:
Client:
opencsg.com/csghub-server/builder/importer:
config:
interfaces:
Importer:
Loading

0 comments on commit 6419f2d

Please sign in to comment.