Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

export cosmos module #267

Merged
merged 2 commits into from
Jun 25, 2024
Merged

export cosmos module #267

merged 2 commits into from
Jun 25, 2024

Conversation

jiqiang90
Copy link
Contributor

@jiqiang90 jiqiang90 commented Jun 24, 2024

Description

Part of task subquery/subql#2456, export interface to support generic cli method

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist

  • I have tested locally
  • I have performed a self review of my changes
  • Updated any relevant documentation
  • Linked to any relevant issues
  • I have added tests relevant to my changes
  • Any dependent changes have been merged and published in downstream modules
  • My code is up to date with the base branch
  • I have updated relevant changelogs. We suggest using chan

Copy link
Contributor

github-actions bot commented Jun 24, 2024

Coverage report

Caution

Test run failed

St.
Category Percentage Covered / Total
🔴 Statements 39.71% 2151/5417
🟡 Branches 75.71% 240/317
🔴 Functions 46.56% 115/247
🔴 Lines 39.71% 2151/5417

Test suite run failed

Failed tests: 17/66. Failed suites: 3/8.
  ● CosmosUtils › filter message data for true

    Request failed with status code 502

      at createError (node_modules/axios/lib/core/createError.js:16:15)
      at settle (node_modules/axios/lib/core/settle.js:17:12)
      at IncomingMessage.handleStreamEnd (node_modules/axios/lib/adapters/http.js:269:11)

  ● CosmosUtils › filter message data for false

    Request failed with status code 502

      at createError (node_modules/axios/lib/core/createError.js:16:15)
      at settle (node_modules/axios/lib/core/settle.js:17:12)
      at IncomingMessage.handleStreamEnd (node_modules/axios/lib/adapters/http.js:269:11)

  ● CosmosUtils › filter nested message data for true

    Request failed with status code 502

      at createError (node_modules/axios/lib/core/createError.js:16:15)
      at settle (node_modules/axios/lib/core/settle.js:17:12)
      at IncomingMessage.handleStreamEnd (node_modules/axios/lib/adapters/http.js:269:11)

  ● CosmosUtils › filter nested message data for false

    Request failed with status code 502

      at createError (node_modules/axios/lib/core/createError.js:16:15)
      at settle (node_modules/axios/lib/core/settle.js:17:12)
      at IncomingMessage.handleStreamEnd (node_modules/axios/lib/adapters/http.js:269:11)

  ● CosmosUtils › filter nested message data for invalid path

    Request failed with status code 502

      at createError (node_modules/axios/lib/core/createError.js:16:15)
      at settle (node_modules/axios/lib/core/settle.js:17:12)
      at IncomingMessage.handleStreamEnd (node_modules/axios/lib/adapters/http.js:269:11)

  ● CosmosUtils › does not wrap events of failed transaction

    Request failed with status code 502

      at createError (node_modules/axios/lib/core/createError.js:16:15)
      at settle (node_modules/axios/lib/core/settle.js:17:12)
      at IncomingMessage.handleStreamEnd (node_modules/axios/lib/adapters/http.js:269:11)

  ● CosmosUtils › does not lazy decode failed message filters

    Request failed with status code 502

      at createError (node_modules/axios/lib/core/createError.js:16:15)
      at settle (node_modules/axios/lib/core/settle.js:17:12)
      at IncomingMessage.handleStreamEnd (node_modules/axios/lib/adapters/http.js:269:11)

  ● CosmosUtils › lazy decode passed message filters

    Request failed with status code 502

      at createError (node_modules/axios/lib/core/createError.js:16:15)
      at settle (node_modules/axios/lib/core/settle.js:17:12)
      at IncomingMessage.handleStreamEnd (node_modules/axios/lib/adapters/http.js:269:11)

  ● CosmosUtils › can filter long type decoded msg for true

    Request failed with status code 502

      at createError (node_modules/axios/lib/core/createError.js:16:15)
      at settle (node_modules/axios/lib/core/settle.js:17:12)
      at IncomingMessage.handleStreamEnd (node_modules/axios/lib/adapters/http.js:269:11)

  ● CosmosUtils › can filter long type decoded msg for number filter

    Request failed with status code 502

      at createError (node_modules/axios/lib/core/createError.js:16:15)
      at settle (node_modules/axios/lib/core/settle.js:17:12)
      at IncomingMessage.handleStreamEnd (node_modules/axios/lib/adapters/http.js:269:11)

  ● CosmosUtils › can filter long type decoded msg for false

    Request failed with status code 502

      at createError (node_modules/axios/lib/core/createError.js:16:15)
      at settle (node_modules/axios/lib/core/settle.js:17:12)
      at IncomingMessage.handleStreamEnd (node_modules/axios/lib/adapters/http.js:269:11)

  ● CosmosUtils › filterMessageData function › contractCall filtering › should return true for non-object contractCall in msg

    Request failed with status code 502

      at createError (node_modules/axios/lib/core/createError.js:16:15)
      at settle (node_modules/axios/lib/core/settle.js:17:12)
      at IncomingMessage.handleStreamEnd (node_modules/axios/lib/adapters/http.js:269:11)

  ● CosmosUtils › filterMessageData function › contractCall filtering › should return false for non-object contractCall not in msg

    Request failed with status code 502

      at createError (node_modules/axios/lib/core/createError.js:16:15)
      at settle (node_modules/axios/lib/core/settle.js:17:12)
      at IncomingMessage.handleStreamEnd (node_modules/axios/lib/adapters/http.js:269:11)

  ● CosmosUtils › filterMessageData function › contractCall filtering › should return false for object contractCall not in msg

    Request failed with status code 502

      at createError (node_modules/axios/lib/core/createError.js:16:15)
      at settle (node_modules/axios/lib/core/settle.js:17:12)
      at IncomingMessage.handleStreamEnd (node_modules/axios/lib/adapters/http.js:269:11)

  ● CosmosUtils › filterMessageData function › contractCall filtering › should return true for object contractCall in msg

    Request failed with status code 502

      at createError (node_modules/axios/lib/core/createError.js:16:15)
      at settle (node_modules/axios/lib/core/settle.js:17:12)
      at IncomingMessage.handleStreamEnd (node_modules/axios/lib/adapters/http.js:269:11)


  ● project.yaml › Validate incorrect chaintypes

    expect(received).toThrow(expected)

    Expected substring: "failed to parse project.yaml"
    Received message:   "Failed to parse project. Please see below for more information.
    An instance of DeploymentV1_0_0 has failed the validation:
     - property network.chaintypes.osmosis.gamm.v1beta1.file has failed the following constraints: isString·
     - property network.chaintypes.osmosis.gamm.v1beta1.messages has failed the following constraints: isArray·
    "

          49 |
          50 |   validate(): void {
        > 51 |     return this._impl.validate();
             |                       ^
          52 |   }
          53 |
          54 |   get dataSources(): CosmosDatasource[] {

      at ProjectManifestV1_0_0Impl.validate (packages/common-cosmos/node_modules/@subql/common/src/project/versioned/base.ts:57:13)
      at CosmosProjectManifestVersioned.validate (packages/common-cosmos/src/project/versioned/ProjectManifestVersioned.ts:51:23)
      at parseCosmosProjectManifest (packages/common-cosmos/src/project/load.ts:8:19)
      at packages/common-cosmos/src/project/project.spec.ts:47:44
      at Object.<anonymous> (node_modules/expect/build/toThrowMatchers.js:74:11)
      at Object.throwingMatcher [as toThrow] (node_modules/expect/build/index.js:320:21)
      at Object.<anonymous> (packages/common-cosmos/src/project/project.spec.ts:47:62)
      at Object.<anonymous> (packages/common-cosmos/src/project/project.spec.ts:47:62)


  ● KyveApi › able to fetch/write/read blocks using Kyve api

    ENOENT: no such file or directory, open '/tmp/AVSrsh/bundle_2_0.json'



Report generated by 🧪jest coverage report action from 7348854

Copy link
Contributor

@stwiname stwiname left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we could address the mkdirProto warning as well.

packages/common-cosmos/src/codegen/codegen-controller.ts Outdated Show resolved Hide resolved
packages/common-cosmos/src/codegen/codegen-controller.ts Outdated Show resolved Hide resolved
@jiqiang90 jiqiang90 merged commit af1c287 into main Jun 25, 2024
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants