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

BigQuery Schema issues #17

Open
jakub-busek opened this issue Mar 22, 2022 · 1 comment
Open

BigQuery Schema issues #17

jakub-busek opened this issue Mar 22, 2022 · 1 comment

Comments

@jakub-busek
Copy link

Hey, anyone here who can help with BigQuery schema issues?

Getting following errors when running npm test


index.unit › should convert lhr to bigquery schema

  /Users/*/multisite-lighthouse-gcp/index.js:37

   36:                                                    
   37: const bqSchema = require(`./bigquery-schema.json`);
   38: const config = require(`./config.json`);           

  Error thrown in test:

  TypeError {
    message: 'Cannot read properties of undefined (reading \'score\')',
  }

  Object._createJSON (index.js:37:2827)
  Test.fn (test/index.unit.test.js:159:33)



  index.unit › should call bigquery load for id when called with id in pubsub message

  /Users/*/multisite-lighthouse-gcp/test/index.unit.test.js:328

   327:   await sample.program.launchLighthouse(event);                          
   328:   t.deepEqual(sample.mocks.bigquery.dataset().table().load.callCount, 1);
   329: });             
@jakub-busek
Copy link
Author

jakub-busek commented Mar 22, 2022

I guess the schema is outdated, but wonder how to update it so it updates throughout all of the dependencies. Is it "just" to edit the bigquery-schema.json file, and if yes, what values should be there?

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

No branches or pull requests

1 participant