Skip to content

Convert getCommunities to TRPC and add additional flags. #26142

Convert getCommunities to TRPC and add additional flags.

Convert getCommunities to TRPC and add additional flags. #26142

Triggered via pull request August 8, 2024 18:51
Status Failure
Total duration 8m 35s
Artifacts 2

CI.yml

on: pull_request
Matrix: Cosmos Devnet Tests
Matrix: EVM Devnet Tests
Matrix: Commonwealth Unit And Integration Tests
Matrix: Commonwealth Mature E2E Tests
Matrix: Commonwealth E2E Tests
Matrix: Commonwealth E2E Tests Serial
Matrix: Code Quality Recommendations
Matrix: Code Quality checks
Matrix: Upload Test Coverage Report
Fit to window
Zoom out
Zoom in

Annotations

30 errors and 6 warnings
Code Quality checks (20)
Type 'CommunityMiddleware' is not assignable to type 'CommandHandler<ZodObject<{ id: ZodString; metadata: ZodObject<{ name: ZodString; description: ZodString; required_requirements: ZodOptional<ZodNumber>; membership_ttl: ZodOptional<...>; }, "strip", ZodTypeAny, { ...; }, { ...; }>; requirements: ZodArray<...>; topics: ZodOptional<...>; }, "strip", ZodTypeAny, { ...; ...'.
Code Quality checks (20)
Type '({ payload }: CommandContext<ZodObject<{ id: ZodString; }, "strip", ZodTypeAny, { id: string; }, { id: string; }>>) => Promise<{ groups: { id: number; ... 5 more ...; is_system_managed?: boolean | ... 1 more ... | undefined; }[] | null | undefined; created: false; } | { ...; }>' is not assignable to type 'CommandHandler<ZodObject<{ id: ZodString; }, "strip", ZodTypeAny, { id: string; }, { id: string; }>, ZodObject<{ groups: ZodArray<ZodObject<{ id: ZodNumber; community_id: ZodString; ... 4 more ...; updated_at: ZodDate; }, "strip", ZodTypeAny, { ...; }, { ...; }>, "many">; created: ZodBoolean; }, "strip", ZodTypeAny,...'.
Code Quality checks (20)
Argument of type '{ community_id: string; stake_id: number; stake_token: string; vote_weight: number; stake_enabled: boolean; }' is not assignable to parameter of type 'Optional<CommunityStakeAttributes, NullishPropertiesOf<CommunityStakeAttributes>>'.
Code Quality checks (20)
Type 'CommunityMiddleware' is not assignable to type 'CommandHandler<ZodObject<{ id: ZodString; contest_address: ZodString; }, "strip", ZodTypeAny, { id: string; contest_address: string; }, { id: string; contest_address: string; }>, ZodObject<...>>'.
Code Quality checks (20)
Type 'CommunityMiddleware' is not assignable to type 'CommandHandler<ZodObject<{ id: ZodString; contest_address: ZodString; name: ZodString; image_url: ZodOptional<ZodString>; funding_token_address: ZodOptional<...>; ... 5 more ...; topic_ids: ZodOptional<...>; }, "strip", ZodTypeAny, { ...; }, { ...; }>, ZodObject<...>>'.
Code Quality checks (20)
'r.decimals' is possibly 'null'.
Code Quality checks (20)
Type 'CommunityMiddleware' is not assignable to type 'CommandHandler<ZodObject<{ id: ZodString; contest_address: ZodString; name: ZodOptional<ZodString>; image_url: ZodOptional<ZodString>; topic_ids: ZodOptional<...>; }, "strip", ZodTypeAny, { ...; }, { ...; }>, ZodObject<...>>'.
Code Quality checks (20)
No overload matches this call.
Code Quality checks (20)
Type '{ id: string; chain_node_id: number; name: string; network: ChainNetwork.Ethereum; type: ChainType.Offchain; base: ChainBase.Ethereum; custom_stages: never[]; icon_url: string; active: true; default_symbol: string; custom_domain: string; }' is not assignable to type 'Optional<CommunityAttributes, NullishPropertiesOf<CommunityAttributes>>'.
Code Quality checks (20)
Type '{ id: string; chain_node_id: number; name: string; network: ChainNetwork.Ethereum; type: ChainType.Offchain; base: ChainBase.Ethereum; icon_url: string; active: true; default_symbol: string; custom_domain: string; }' is not assignable to type 'Optional<CommunityAttributes, NullishPropertiesOf<CommunityAttributes>>'.
Commonwealth Unit And Integration Tests (20)
Type 'CommunityMiddleware' is not assignable to type 'CommandHandler<ZodObject<{ id: ZodString; metadata: ZodObject<{ name: ZodString; description: ZodString; required_requirements: ZodOptional<ZodNumber>; membership_ttl: ZodOptional<...>; }, "strip", ZodTypeAny, { ...; }, { ...; }>; requirements: ZodArray<...>; topics: ZodOptional<...>; }, "strip", ZodTypeAny, { ...; ...'.
Commonwealth Unit And Integration Tests (20)
Type '({ payload }: CommandContext<ZodObject<{ id: ZodString; }, "strip", ZodTypeAny, { id: string; }, { id: string; }>>) => Promise<{ groups: { id: number; ... 5 more ...; is_system_managed?: boolean | ... 1 more ... | undefined; }[] | null | undefined; created: false; } | { ...; }>' is not assignable to type 'CommandHandler<ZodObject<{ id: ZodString; }, "strip", ZodTypeAny, { id: string; }, { id: string; }>, ZodObject<{ groups: ZodArray<ZodObject<{ id: ZodNumber; community_id: ZodString; ... 4 more ...; updated_at: ZodDate; }, "strip", ZodTypeAny, { ...; }, { ...; }>, "many">; created: ZodBoolean; }, "strip", ZodTypeAny,...'.
Commonwealth Unit And Integration Tests (20)
Argument of type '{ community_id: string; stake_id: number; stake_token: string; vote_weight: number; stake_enabled: boolean; }' is not assignable to parameter of type 'Optional<CommunityStakeAttributes, NullishPropertiesOf<CommunityStakeAttributes>>'.
Commonwealth Unit And Integration Tests (20)
Type 'CommunityMiddleware' is not assignable to type 'CommandHandler<ZodObject<{ id: ZodString; contest_address: ZodString; }, "strip", ZodTypeAny, { id: string; contest_address: string; }, { id: string; contest_address: string; }>, ZodObject<...>>'.
Commonwealth Unit And Integration Tests (20)
Type 'CommunityMiddleware' is not assignable to type 'CommandHandler<ZodObject<{ id: ZodString; contest_address: ZodString; name: ZodString; image_url: ZodOptional<ZodString>; funding_token_address: ZodOptional<...>; ... 5 more ...; topic_ids: ZodOptional<...>; }, "strip", ZodTypeAny, { ...; }, { ...; }>, ZodObject<...>>'.
Commonwealth Unit And Integration Tests (20)
'r.decimals' is possibly 'null'.
Commonwealth Unit And Integration Tests (20)
Type 'CommunityMiddleware' is not assignable to type 'CommandHandler<ZodObject<{ id: ZodString; contest_address: ZodString; name: ZodOptional<ZodString>; image_url: ZodOptional<ZodString>; topic_ids: ZodOptional<...>; }, "strip", ZodTypeAny, { ...; }, { ...; }>, ZodObject<...>>'.
Commonwealth Unit And Integration Tests (20)
No overload matches this call.
Commonwealth Unit And Integration Tests (20)
Type '{ id: string; chain_node_id: number; name: string; network: ChainNetwork.Ethereum; type: ChainType.Offchain; base: ChainBase.Ethereum; custom_stages: never[]; icon_url: string; active: true; default_symbol: string; custom_domain: string; }' is not assignable to type 'Optional<CommunityAttributes, NullishPropertiesOf<CommunityAttributes>>'.
Commonwealth Unit And Integration Tests (20)
Type '{ id: string; chain_node_id: number; name: string; network: ChainNetwork.Ethereum; type: ChainType.Offchain; base: ChainBase.Ethereum; icon_url: string; active: true; default_symbol: string; custom_domain: string; }' is not assignable to type 'Optional<CommunityAttributes, NullishPropertiesOf<CommunityAttributes>>'.
Commonwealth E2E Tests Serial (20)
Type 'CommunityMiddleware' is not assignable to type 'CommandHandler<ZodObject<{ id: ZodString; metadata: ZodObject<{ name: ZodString; description: ZodString; required_requirements: ZodOptional<ZodNumber>; membership_ttl: ZodOptional<...>; }, "strip", ZodTypeAny, { ...; }, { ...; }>; requirements: ZodArray<...>; topics: ZodOptional<...>; }, "strip", ZodTypeAny, { ...; ...'.
Commonwealth E2E Tests Serial (20)
Type '({ payload }: CommandContext<ZodObject<{ id: ZodString; }, "strip", ZodTypeAny, { id: string; }, { id: string; }>>) => Promise<{ groups: { id: number; ... 5 more ...; is_system_managed?: boolean | ... 1 more ... | undefined; }[] | null | undefined; created: false; } | { ...; }>' is not assignable to type 'CommandHandler<ZodObject<{ id: ZodString; }, "strip", ZodTypeAny, { id: string; }, { id: string; }>, ZodObject<{ groups: ZodArray<ZodObject<{ id: ZodNumber; community_id: ZodString; ... 4 more ...; updated_at: ZodDate; }, "strip", ZodTypeAny, { ...; }, { ...; }>, "many">; created: ZodBoolean; }, "strip", ZodTypeAny,...'.
Commonwealth E2E Tests Serial (20)
Argument of type '{ community_id: string; stake_id: number; stake_token: string; vote_weight: number; stake_enabled: boolean; }' is not assignable to parameter of type 'Optional<CommunityStakeAttributes, NullishPropertiesOf<CommunityStakeAttributes>>'.
Commonwealth E2E Tests Serial (20)
Type 'CommunityMiddleware' is not assignable to type 'CommandHandler<ZodObject<{ id: ZodString; contest_address: ZodString; }, "strip", ZodTypeAny, { id: string; contest_address: string; }, { id: string; contest_address: string; }>, ZodObject<...>>'.
Commonwealth E2E Tests Serial (20)
Type 'CommunityMiddleware' is not assignable to type 'CommandHandler<ZodObject<{ id: ZodString; contest_address: ZodString; name: ZodString; image_url: ZodOptional<ZodString>; funding_token_address: ZodOptional<...>; ... 5 more ...; topic_ids: ZodOptional<...>; }, "strip", ZodTypeAny, { ...; }, { ...; }>, ZodObject<...>>'.
Commonwealth E2E Tests Serial (20)
'r.decimals' is possibly 'null'.
Commonwealth E2E Tests Serial (20)
Type 'CommunityMiddleware' is not assignable to type 'CommandHandler<ZodObject<{ id: ZodString; contest_address: ZodString; name: ZodOptional<ZodString>; image_url: ZodOptional<ZodString>; topic_ids: ZodOptional<...>; }, "strip", ZodTypeAny, { ...; }, { ...; }>, ZodObject<...>>'.
Commonwealth E2E Tests Serial (20)
No overload matches this call.
Commonwealth E2E Tests Serial (20)
Type '{ id: string; chain_node_id: number; name: string; network: ChainNetwork.Ethereum; type: ChainType.Offchain; base: ChainBase.Ethereum; custom_stages: never[]; icon_url: string; active: true; default_symbol: string; custom_domain: string; }' is not assignable to type 'Optional<CommunityAttributes, NullishPropertiesOf<CommunityAttributes>>'.
Commonwealth E2E Tests Serial (20)
Type '{ id: string; chain_node_id: number; name: string; network: ChainNetwork.Ethereum; type: ChainType.Offchain; base: ChainBase.Ethereum; icon_url: string; active: true; default_symbol: string; custom_domain: string; }' is not assignable to type 'Optional<CommunityAttributes, NullishPropertiesOf<CommunityAttributes>>'.
Commonwealth E2E Tests Serial (20)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Commonwealth Mature E2E Tests (20)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/cache@v3, actions/upload-artifact@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Cosmos Devnet Tests (20)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: tj-actions/[email protected]. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Commonwealth E2E Tests (20)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/cache@v3, actions/upload-artifact@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
EVM Devnet Tests (20)
Failed to save: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2
Deprecation notice: v1, v2, and v3 of the artifact actions
The following artifacts were uploaded using a version of actions/upload-artifact that is scheduled for deprecation: "FlakySuiteStatus", "MatureSuiteStatus". Please update your workflow to use v4 of the artifact actions. Learn more: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/

Artifacts

Produced during runtime
Name Size
FlakySuiteStatus Expired
3.24 KB
MatureSuiteStatus Expired
314 Bytes