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

[BUG] GTFSExtractor smoke test: reference resolution before ComputedScopes state #622

Open
georg-schwarz opened this issue Oct 22, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@georg-schwarz
Copy link
Member

Steps to reproduce

  1. Clone repo
  2. npm ci and npm run test

Note: As the issue only happened locally, I assume a timing issue.

Description

  • Expected: Tests run through successfully
  • Actual:
      stderr | src/examples-smoke-test.spec.ts > jv example smoke tests > should have no errors when executing gtfs-static.jv example
      Attempted reference resolution before document reached ComputedScopes state (builtin:/stdlib/domain/mobility/GTFSExtractor.jv).
        error: An unknown error occurred: AssertionError [ERR_ASSERTION]: AstNode GTFSExtractor cannot be wrapped
          at PipelineWrapperFactory.wrap (/home/georg/dev/jvalue/jayvee/libs/language-server/src/lib/ast/wrappers/wrapper-factory-provider.ts:51:5)
          at PipelineWrapperFactory.wrap (/home/georg/dev/jvalue/jayvee/libs/language-server/src/lib/ast/wrappers/wrapper-factory-provider.ts:202:18)
          at Module.executeBlocks (/home/georg/dev/jvalue/jayvee/libs/execution/src/lib/blocks/block-execution-util.ts:37:48)
          at AbstractBlockExecutor.doExecute (/home/georg/dev/jvalue/jayvee/libs/execution/src/lib/blocks/composite-block-executor.ts:71:37)
          at AbstractBlockExecutor.execute (/home/georg/dev/jvalue/jayvee/libs/execution/src/lib/blocks/block-executor.ts:39:40)
          at executeBlock (/home/georg/dev/jvalue/jayvee/libs/execution/src/lib/blocks/block-execution-util.ts:102:34)
          at Module.executeBlocks (/home/georg/dev/jvalue/jayvee/libs/execution/src/lib/blocks/block-execution-util.ts:65:35)
          at DefaultJayveeInterpreter.runPipeline (/home/georg/dev/jvalue/jayvee/libs/interpreter-lib/src/interpreter.ts:284:35)
          at /home/georg/dev/jvalue/jayvee/libs/interpreter-lib/src/interpreter.ts:236:21
          at Array.map (<anonymous>)
          at DefaultJayveeInterpreter.interpretJayveeModel (/home/georg/dev/jvalue/jayvee/libs/interpreter-lib/src/interpreter.ts:234:65)
          at DefaultJayveeInterpreter.interpretModel (/home/georg/dev/jvalue/jayvee/libs/interpreter-lib/src/interpreter.ts:122:47)
          at DefaultJayveeInterpreter.interpretFile (/home/georg/dev/jvalue/jayvee/libs/interpreter-lib/src/interpreter.ts:148:12)
          at Module.runAction (/home/georg/dev/jvalue/jayvee/apps/interpreter/src/run-action.ts:54:20)
          at /home/georg/dev/jvalue/jayvee/apps/interpreter/src/examples-smoke-test.spec.ts:215:5
          at runTest (file:///home/georg/dev/jvalue/jayvee/node_modules/@vitest/runner/dist/index.js:771:11)
        $In /home/georg/dev/jvalue/jayvee/example/gtfs-static.jv:62:9
        62 |   block GTFSSampleFeedExtractor oftype GTFSExtractor {
           |         ^^^^^^^^^^^^^^^^^^^^^^^
      
      
      
      ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯
      
       FAIL  src/examples-smoke-test.spec.ts > jv example smoke tests > should have no errors when executing gtfs-static.jv example
      Error: process.exit: 1
       ❯ processExitMockImplementation ../../libs/execution/test/utils/test-infrastructure-util.ts:39:9
           37|     return undefined as never;
           38|   }
           39|   throw new Error(`process.exit: ${code}`);
             |         ^
           40| }
           41| 
       ❯ Module.runAction src/run-action.ts:57:11
       ❯ src/examples-smoke-test.spec.ts:215:5
@georg-schwarz georg-schwarz added the bug Something isn't working label Oct 22, 2024
@georg-schwarz georg-schwarz changed the title [BUG] <name> [BUG] GTFSExtractor smoke test: reference resolution before ComputedScopes state Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant