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

feat: WIP: POC: TRPC lazy routers #14075

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

zomars
Copy link
Member

@zomars zomars commented Mar 14, 2024

What does this PR do?

Putting this POC into test here:

trpc/trpc#5489

Fixes #13760

Requirement/Documentation

  • If there is a requirement document, please, share it here.
  • If there is ab UI/UX design document, please, share it here.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • Chore (refactoring code, technical debt, workflow improvements)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Tests (Unit/Integration/E2E or any other test)
  • This change requires a documentation update

How should this be tested?

  • Are there environment variables that should be set?
  • What are the minimal test data to have?
  • What is expected (happy path) to have (input and output)?
  • Any other important info that could help to test that PR

Mandatory Tasks

  • Make sure you have self-reviewed the code. A decent size PR without self-review might be rejected.

Checklist

  • I haven't read the contributing guide
  • My code doesn't follow the style guidelines of this project
  • I haven't commented my code, particularly in hard-to-understand areas
  • I haven't checked if my PR needs changes to the documentation
  • I haven't checked if my changes generate no new warnings
  • I haven't added tests that prove my fix is effective or that my feature works
  • I haven't checked if new and existing unit tests pass locally with my changes

Copy link

linear bot commented Mar 14, 2024

@zomars zomars requested a review from KATT March 14, 2024 00:34
Copy link
Contributor

github-actions bot commented Mar 14, 2024

Thank you for following the naming conventions! 🙏 Feel free to join our discord and post your PR link.

@keithwillcode keithwillcode added api area: API, enterprise API, access token, OAuth core area: core, team members only foundation labels Mar 14, 2024
Copy link

vercel bot commented Mar 14, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

4 Ignored Deployments
Name Status Preview Comments Updated (UTC)
ai ⬜️ Ignored (Inspect) Visit Preview Mar 14, 2024 2:29am
cal ⬜️ Ignored (Inspect) Visit Preview Mar 14, 2024 2:29am
calcom-web-canary ⬜️ Ignored (Inspect) Visit Preview Mar 14, 2024 2:29am
qa ⬜️ Ignored (Inspect) Visit Preview Mar 14, 2024 2:29am

@zomars zomars changed the title WIP: POC: TRPC lazy routers feat: WIP: POC: TRPC lazy routers Mar 14, 2024
@@ -37,7 +36,6 @@ export type CreateInnerContextOptions = {
selectedCalendars?: Partial<SelectedCalendar>[];
rawAvatar?: string;
};
i18n?: Awaited<ReturnType<typeof serverSideTranslations>>;
Copy link
Member Author

Choose a reason for hiding this comment

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

I didn't found anywhere we're using this. And I think this is too heavy for TS inferring.

Copy link

socket-security bot commented Mar 14, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@types/node@16.9.1 None 0 1.63 MB types
npm/@types/react@18.0.26 None 0 178 kB types
npm/rrule@2.8.1 None 0 687 kB davidgoli
npm/superjson@1.9.1 environment 0 212 kB skn0tt

🚮 Removed packages: npm/@babel/code-frame@7.23.5, npm/@babel/compat-data@7.23.5, npm/@babel/core@7.24.0, npm/@babel/helper-annotate-as-pure@7.22.5, npm/@babel/helper-builder-binary-assignment-operator-visitor@7.22.15, npm/@babel/helper-create-class-features-plugin@7.24.0, npm/@babel/helper-environment-visitor@7.22.20, npm/@babel/helper-function-name@7.23.0, npm/@babel/helper-hoist-variables@7.22.5, npm/@babel/helper-member-expression-to-functions@7.23.0, npm/@babel/helper-module-imports@7.22.15, npm/@babel/helper-module-transforms@7.23.3, npm/@babel/helper-optimise-call-expression@7.22.5, npm/@babel/helper-plugin-utils@7.24.0, npm/@babel/helper-remap-async-to-generator@7.22.20, npm/@babel/helper-replace-supers@7.22.20, npm/@babel/helper-simple-access@7.22.5, npm/@babel/helper-skip-transparent-expression-wrappers@7.22.5, npm/@babel/helper-split-export-declaration@7.22.6, npm/@babel/helper-string-parser@7.23.4, npm/@babel/helper-validator-identifier@7.22.20, npm/@babel/helper-validator-option@7.23.5, npm/@babel/helper-wrap-function@7.22.20, npm/@babel/helpers@7.24.0, npm/@babel/highlight@7.23.4, npm/@babel/parser@7.24.0, npm/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@7.23.3, npm/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@7.23.3, npm/@babel/plugin-proposal-class-properties@7.18.6, npm/@babel/plugin-proposal-object-rest-spread@7.20.7, npm/@babel/plugin-proposal-private-property-in-object@7.21.0-placeholder-for-preset-env.2, npm/@babel/plugin-syntax-async-generators@7.8.4, npm/@babel/plugin-syntax-bigint@7.8.3, npm/@babel/plugin-syntax-class-properties@7.12.13, npm/@babel/plugin-syntax-class-static-block@7.14.5, npm/@babel/plugin-syntax-dynamic-import@7.8.3, npm/@babel/plugin-syntax-export-namespace-from@7.8.3, npm/@babel/plugin-syntax-flow@7.23.3, npm/@babel/plugin-syntax-import-assertions@7.23.3, npm/@babel/plugin-syntax-import-attributes@7.23.3, npm/@babel/plugin-syntax-import-meta@7.10.4, npm/@babel/plugin-syntax-json-strings@7.8.3, npm/@babel/plugin-syntax-jsx@7.23.3, npm/@babel/plugin-syntax-logical-assignment-operators@7.10.4, npm/@babel/plugin-syntax-nullish-coalescing-operator@7.8.3, npm/@babel/plugin-syntax-numeric-separator@7.10.4, npm/@babel/plugin-syntax-object-rest-spread@7.8.3, npm/@babel/plugin-syntax-optional-catch-binding@7.8.3, npm/@babel/plugin-syntax-optional-chaining@7.8.3, npm/@babel/plugin-syntax-private-property-in-object@7.14.5, npm/@babel/plugin-syntax-top-level-await@7.14.5, npm/@babel/plugin-syntax-typescript@7.23.3, npm/@babel/plugin-syntax-unicode-sets-regex@7.18.6, npm/@babel/plugin-transform-arrow-functions@7.23.3, npm/@babel/plugin-transform-async-to-generator@7.23.3, npm/@babel/plugin-transform-block-scoped-functions@7.23.3, npm/@babel/plugin-transform-block-scoping@7.23.4, npm/@babel/plugin-transform-class-static-block@7.23.4, npm/@babel/plugin-transform-computed-properties@7.23.3, npm/@babel/plugin-transform-destructuring@7.23.3, npm/@babel/plugin-transform-duplicate-keys@7.23.3, npm/@babel/plugin-transform-dynamic-import@7.23.4, npm/@babel/plugin-transform-exponentiation-operator@7.23.3, npm/@babel/plugin-transform-flow-strip-types@7.23.3, npm/@babel/plugin-transform-for-of@7.23.6, npm/@babel/plugin-transform-function-name@7.23.3, npm/@babel/plugin-transform-json-strings@7.23.4, npm/@babel/plugin-transform-literals@7.23.3, npm/@babel/plugin-transform-logical-assignment-operators@7.23.4, npm/@babel/plugin-transform-member-expression-literals@7.23.3, npm/@babel/plugin-transform-modules-amd@7.23.3, npm/@babel/plugin-transform-modules-commonjs@7.23.3, npm/@babel/plugin-transform-modules-umd@7.23.3, npm/@babel/plugin-transform-named-capturing-groups-regex@7.22.5, npm/@babel/plugin-transform-new-target@7.23.3, npm/@babel/plugin-transform-object-super@7.23.3, npm/@babel/plugin-transform-optional-catch-binding@7.23.4, npm/@babel/plugin-transform-optional-chaining@7.23.4, npm/@babel/plugin-transform-parameters@7.23.3, npm/@babel/plugin-transform-private-property-in-object@7.23.4, npm/@babel/plugin-transform-property-literals@7.23.3, npm/@babel/plugin-transform-react-display-name@7.23.3, npm/@babel/plugin-transform-react-jsx@7.23.4, npm/@babel/plugin-transform-regenerator@7.23.3, npm/@babel/plugin-transform-reserved-words@7.23.3, npm/@babel/plugin-transform-shorthand-properties@7.23.3, npm/@babel/plugin-transform-spread@7.23.3, npm/@babel/plugin-transform-sticky-regex@7.23.3, npm/@babel/plugin-transform-template-literals@7.23.3, npm/@babel/plugin-transform-typeof-symbol@7.23.3, npm/@babel/plugin-transform-unicode-escapes@7.23.3, npm/@babel/preset-modules@0.1.6-no-external-plugins, npm/@babel/preset-typescript@7.23.3, npm/@babel/regjsgen@0.8.0, npm/@babel/runtime@7.24.0, npm/@babel/template@7.24.0, npm/@babel/types@7.24.0, npm/@bcoe/v8-coverage@0.2.3, npm/@hapi/hoek@9.3.0, npm/@hapi/topo@5.1.0, npm/@humanwhocodes/config-array@0.11.14, npm/@humanwhocodes/module-importer@1.0.1, npm/@humanwhocodes/object-schema@2.0.2, npm/@isaacs/cliui@8.0.2, npm/@istanbuljs/load-nyc-config@1.1.0, npm/@istanbuljs/schema@0.1.3, npm/@jest/expect-utils@29.7.0, npm/@jest/schemas@29.6.3, npm/@jest/types@29.6.3, npm/@jridgewell/resolve-uri@3.1.2, npm/@jridgewell/set-array@1.2.1, npm/@jridgewell/sourcemap-codec@1.4.15, npm/@nodelib/fs.scandir@2.1.5, npm/@nodelib/fs.stat@2.0.5, npm/@nodelib/fs.walk@1.2.8, npm/@pkgjs/parseargs@0.11.0, npm/@sideway/address@4.1.5, npm/@sideway/formula@3.0.1, npm/@sideway/pinpoint@2.0.0, npm/@sinclair/typebox@0.27.8, npm/@types/babel__core@7.20.5, npm/@types/babel__generator@7.6.8, npm/@types/babel__template@7.4.4, npm/@types/babel__traverse@7.20.5, npm/@types/graceful-fs@4.1.9, npm/@types/istanbul-lib-coverage@2.0.6, npm/@types/istanbul-lib-report@3.0.3, npm/@types/istanbul-reports@3.0.4, npm/@types/json-schema@7.0.15, npm/@types/keyv@3.1.4, npm/@types/lodash@4.17.0, npm/@types/normalize-package-data@2.4.4, npm/@types/prop-types@15.7.11, npm/@types/react@18.2.65, npm/@types/responselike@1.0.3, npm/@types/scheduler@0.16.8, npm/@types/semver@7.5.8, npm/@types/stack-utils@2.0.3, npm/@types/yargs-parser@21.0.3, npm/@types/yargs@17.0.32, npm/@ungap/structured-clone@1.2.0, npm/abort-controller@3.0.0, npm/accepts@1.3.8, npm/acorn-jsx@5.3.2, npm/agent-base@6.0.2, npm/ansi-regex@6.0.1, npm/ansi-styles@4.3.0, npm/anymatch@3.1.3, npm/argparse@2.0.1, npm/aria-query@5.3.0, npm/array-buffer-byte-length@1.0.1, npm/array-union@2.1.0, npm/array.prototype.flat@1.3.2, npm/asap@2.0.6, npm/asynckit@0.4.0, npm/available-typed-arrays@1.0.7, npm/babel-plugin-istanbul@6.1.1, npm/babel-plugin-polyfill-regenerator@0.5.5, npm/balanced-match@1.0.2, npm/base64-js@1.5.1, npm/bl@4.1.0, npm/brace-expansion@1.1.11, npm/braces@3.0.2, npm/browserslist@4.23.0, npm/bser@2.1.1, npm/buffer-from@1.1.2, npm/buffer@5.7.1, npm/call-bind@1.0.7, npm/call-me-maybe@1.0.2, npm/callsites@3.1.0, npm/camelcase@5.3.1, npm/caniuse-lite@1.0.30001597, npm/chardet@0.7.0, npm/ci-info@3.9.0, npm/cli-cursor@3.1.0, npm/cli-spinners@2.9.2, npm/cli-width@3.0.0, npm/clone-deep@4.0.1, npm/clone@1.0.4, npm/color-convert@2.0.1, npm/color-name@1.1.3, npm/color-string@1.9.1, npm/color@4.2.3, npm/combined-stream@1.0.8, npm/commondir@1.0.1, npm/concat-map@0.0.1, npm/convert-source-map@2.0.0, npm/core-js-compat@3.36.0, npm/cross-spawn@7.0.3, npm/csstype@3.1.3, npm/date-fns@2.30.0, npm/dayjs@1.11.10, npm/debug@4.3.4, npm/decamelize@1.2.0, npm/deep-is@0.1.4, npm/deepmerge@4.3.1, npm/defaults@1.0.4, npm/delayed-stream@1.0.0, npm/depd@2.0.0, npm/dequal@2.0.3, npm/diff-sequences@29.6.3, npm/dir-glob@3.0.1, npm/doctrine@3.0.0, npm/domelementtype@2.3.0, npm/domhandler@5.0.3, npm/dotenv@16.4.5, npm/eastasianwidth@0.2.0, npm/electron-to-chromium@1.4.703, npm/emoji-regex@9.2.2, npm/encodeurl@1.0.2, npm/end-of-stream@1.4.4, npm/enhanced-resolve@5.16.0, npm/entities@4.5.0, npm/env-paths@2.2.1, npm/error-ex@1.3.2, npm/error-stack-parser@2.1.4, npm/es-set-tostringtag@2.0.3, npm/es-shim-unscopables@1.0.2, npm/es-to-primitive@1.2.1, npm/escalade@3.1.2, npm/escape-html@1.0.3, npm/escape-string-regexp@1.0.5, npm/eslint-scope@7.2.2, npm/eslint-visitor-keys@3.4.3, npm/esprima@4.0.1, npm/esquery@1.5.0, npm/esrecurse@4.3.0, npm/estraverse@5.3.0, npm/esutils@2.0.3, npm/etag@1.8.1, npm/event-target-shim@5.0.1, npm/expect@29.7.0, npm/fast-deep-equal@3.1.3, npm/fast-glob@3.3.2, npm/fast-json-stable-stringify@2.1.0, npm/fastq@1.17.1, npm/fb-watchman@2.0.2, npm/file-entry-cache@6.0.1, npm/fill-range@7.0.1, npm/find-cache-dir@2.1.0, npm/find-up@4.1.0, npm/flat-cache@3.2.0, npm/flatted@3.3.1, npm/follow-redirects@1.15.5, npm/for-each@0.3.3, npm/form-data@4.0.0, npm/fs-constants@1.0.0, npm/fs.realpath@1.0.0, npm/fsevents@2.3.3, npm/function-bind@1.1.2, npm/function.prototype.name@1.1.6, npm/functions-have-names@1.2.3, npm/gensync@1.0.0-beta.2, npm/get-caller-file@2.0.5, npm/get-package-type@0.1.0, npm/get-stream@4.1.0, npm/glob-parent@6.0.2, npm/globalthis@1.0.3, npm/globby@11.1.0, npm/gopd@1.0.1, npm/graceful-fs@4.2.11, npm/has-bigints@1.0.2, npm/has-flag@3.0.0, npm/has-proto@1.0.3, npm/has-symbols@1.0.3, npm/has-tostringtag@1.0.2, npm/hasown@2.0.2, npm/hosted-git-info@2.8.9, npm/html-escaper@2.0.2, npm/http-cache-semantics@4.1.1, npm/https-proxy-agent@5.0.1, npm/human-signals@2.1.0, npm/iconv-lite@0.4.24, npm/ieee754@1.2.1, npm/ignore@5.3.1, npm/immediate@3.0.6, npm/import-fresh@3.3.0, npm/imurmurhash@0.1.4, npm/indent-string@4.0.0, npm/inflight@1.0.6, npm/inherits@2.0.4, npm/invariant@2.2.4, npm/is-array-buffer@3.0.4, npm/is-arrayish@0.2.1, npm/is-bigint@1.0.4, npm/is-boolean-object@1.1.2, npm/is-buffer@1.1.6, npm/is-callable@1.2.7, npm/is-core-module@2.13.1, npm/is-date-object@1.0.5, npm/is-docker@2.2.1, npm/is-extglob@2.1.1, npm/is-generator-function@1.0.10, npm/is-glob@4.0.3, npm/is-interactive@1.0.0, npm/is-negative-zero@2.0.3, npm/is-number-object@1.0.7, npm/is-number@7.0.0, npm/is-path-inside@3.0.3, npm/is-plain-obj@1.1.0, npm/is-plain-object@2.0.4, npm/is-regex@1.1.4, npm/is-shared-array-buffer@1.0.3, npm/is-stream@1.1.0, npm/is-string@1.0.7, npm/is-symbol@1.0.4, npm/is-typed-array@1.1.13, npm/is-unicode-supported@0.1.0, npm/is-weakref@1.0.2, npm/is-windows@1.0.2, npm/is-wsl@2.2.0, npm/isarray@2.0.5, npm/isexe@2.0.0, npm/isobject@3.0.1, npm/istanbul-lib-coverage@3.2.2, npm/istanbul-lib-instrument@5.2.1, npm/istanbul-lib-report@3.0.1, npm/istanbul-reports@3.1.7, npm/jackspeak@2.3.6, npm/jest-diff@29.7.0, npm/jest-get-type@29.6.3, npm/jest-haste-map@29.7.0, npm/jest-matcher-utils@29.7.0, npm/jest-message-util@29.7.0, npm/jest-regex-util@29.6.3, npm/jest-util@29.7.0, npm/jest-worker@29.7.0, npm/js-tokens@4.0.0, npm/js-yaml@3.14.1, npm/jsesc@2.5.2, npm/json-buffer@3.0.1, npm/json-parse-better-errors@1.0.2, npm/json-parse-even-better-errors@2.3.1, npm/json-stable-stringify-without-jsonify@1.0.1, npm/json5@2.2.3, npm/keyv@4.5.4, npm/kind-of@6.0.3, npm/kleur@3.0.3, npm/levn@0.4.1, npm/lie@3.1.1, npm/lines-and-columns@1.2.4, npm/localforage@1.10.0, npm/locate-path@6.0.0, npm/lodash.debounce@4.0.8, npm/lodash.merge@4.6.2, npm/lodash@4.17.21, npm/log-symbols@4.1.0, npm/loose-envify@1.4.0, npm/make-dir@4.0.0, npm/makeerror@1.0.12, npm/map-cache@0.2.2, npm/merge-stream@2.0.0, npm/merge2@1.4.1, npm/micromatch@4.0.5, npm/mime-db@1.52.0, npm/mime-types@2.1.35, npm/mime@1.6.0, npm/mimic-response@1.0.1, npm/minimatch@9.0.3, npm/minimist@1.2.8, npm/ms@2.1.2, npm/mute-stream@0.0.8, npm/nanoid@3.3.7, npm/natural-compare@1.4.0, npm/neo-async@2.6.2, npm/node-abort-controller@3.1.1, npm/node-int64@0.4.0, npm/node-releases@2.0.14, npm/normalize-package-data@2.5.0, npm/normalize-path@3.0.0, npm/npm-run-path@4.0.1, npm/nullthrows@1.1.1, npm/object-assign@4.1.1, npm/object-inspect@1.13.1, npm/object-keys@1.1.1, npm/object.assign@4.1.5, npm/once@1.4.0, npm/ora@5.4.1, npm/os-tmpdir@1.0.2, npm/p-finally@1.0.0, npm/p-limit@2.3.0, npm/p-map@4.0.0, npm/p-try@2.2.0, npm/parent-module@1.0.1, npm/parse-json@4.0.0, npm/path-exists@4.0.0, npm/path-is-absolute@1.0.1, npm/path-key@3.1.1, npm/path-parse@1.0.7, npm/path-scurry@1.10.1, npm/path-type@4.0.0, npm/picocolors@1.0.0, npm/picomatch@2.3.1, npm/pify@4.0.1, npm/pirates@4.0.6, npm/pkg-dir@4.2.0, npm/pkg-up@3.1.0, npm/prelude-ls@1.2.1, npm/prettier@2.8.8, npm/process-nextick-args@2.0.1, npm/progress@2.0.3, npm/prompts@2.4.2, npm/proxy-from-env@1.1.0, npm/pump@3.0.0, npm/punycode@2.3.1, npm/queue-microtask@1.2.3, npm/react-dom@18.2.0, npm/react-is@18.2.0, npm/react-refresh@0.14.0, npm/react@18.2.0, npm/readable-stream@3.6.2, npm/regenerate-unicode-properties@10.1.1, npm/regenerate@1.4.2, npm/regenerator-runtime@0.14.1, npm/regenerator-transform@0.15.2, npm/regexpu-core@5.3.2, npm/regjsparser@0.9.1, npm/require-directory@2.1.1, npm/require-main-filename@2.0.0, npm/resize-observer-polyfill@1.5.1, npm/resolve-from@5.0.0, npm/resolve@1.22.8, npm/restore-cursor@3.1.0, npm/reusify@1.0.4, npm/run-async@2.4.1, npm/run-parallel@1.2.0, npm/rxjs@7.8.1, npm/safe-array-concat@1.1.2, npm/safe-buffer@5.2.1, npm/safer-buffer@2.1.2, npm/scheduler@0.23.0, npm/set-blocking@2.0.0, npm/shallow-clone@3.0.1, npm/shell-quote@1.8.1, npm/signal-exit@3.0.7, npm/simple-swizzle@0.2.2, npm/sisteransi@1.0.5, npm/slash@3.0.0, npm/source-map-support@0.5.21, npm/source-map@0.6.1, npm/spdx-correct@3.2.0, npm/spdx-exceptions@2.5.0, npm/spdx-expression-parse@3.0.1, npm/spdx-license-ids@3.0.17, npm/sprintf-js@1.0.3, npm/stack-utils@2.0.6, npm/stackframe@1.3.4, npm/stacktrace-parser@0.1.10, npm/string-width@4.2.3, npm/string.prototype.trim@1.2.8, npm/string.prototype.trimend@1.0.7, npm/string.prototype.trimstart@1.0.7, npm/strip-bom@3.0.0, npm/strip-final-newline@2.0.0, npm/strip-json-comments@3.1.1, npm/strnum@1.0.5, npm/supports-color@7.2.0, npm/supports-preserve-symlinks-flag@1.0.0, npm/tapable@2.2.1, npm/text-table@0.2.0, npm/through2@2.0.5, npm/through@2.3.8, npm/tiny-warning@1.0.3, npm/tmp@0.0.33, npm/tmpl@1.0.5, npm/to-fast-properties@2.0.0, npm/tr46@0.0.3, npm/ts-api-utils@1.3.0, npm/tslib@2.6.2, npm/type-check@0.4.0, npm/type-detect@4.0.8, npm/type-fest@0.21.3, npm/typed-array-byte-length@1.0.1, npm/typed-array-byte-offset@1.0.2, npm/unbox-primitive@1.0.2, npm/unicode-canonical-property-names-ecmascript@2.0.0, npm/unicode-match-property-ecmascript@2.0.0, npm/unicode-match-property-value-ecmascript@2.1.0, npm/unicode-property-aliases-ecmascript@2.1.0, npm/universalify@0.1.2, npm/update-browserslist-db@1.0.13, npm/uri-js@4.4.1, npm/util-deprecate@1.0.2, npm/validate-npm-package-license@3.0.4, npm/walker@1.0.8, npm/wcwidth@1.0.1, npm/whatwg-fetch@3.6.20, npm/which-boxed-primitive@1.0.2, npm/which-module@2.0.1, npm/which-typed-array@1.1.15, npm/which@2.0.2, npm/wrap-ansi@7.0.0, npm/wrappy@1.0.2, npm/write-file-atomic@4.0.2, npm/xtend@4.0.2, npm/y18n@5.0.8, npm/yallist@4.0.0, npm/yocto-queue@0.1.0

View full report↗︎

Copy link

socket-security bot commented Mar 14, 2024

🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎

To accept the risk, merge this PR and you will not be notified again.

Alert Package NoteSource
Install scripts npm/core-js@3.36.0
  • Install script: postinstall
  • Source: node -e "try{require('./postinstall')}catch(e){}"
  • orphan: npm/core-js@3.36.0

View full report↗︎

Next steps

What is an install script?

Install scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.

Packages should not be running non-essential scripts during install and there are often solutions to problems people solve with install scripts that can be run at publish time instead.

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of ecosystem/package-name@version specifiers. e.g. @SocketSecurity ignore npm/foo@1.0.0 or ignore all packages with @SocketSecurity ignore-all

  • @SocketSecurity ignore npm/core-js@3.36.0

Copy link

deploysentinel bot commented Mar 14, 2024

Current Playwright Test Results Summary

✅ 82 Passing - ❌ 13 Failing - ⚠️ 2 Flaky

Run may still be in progress, this comment will be updated as current testing workflow or job completes...

(Last updated on 03/14/2024 03:47:10pm UTC)

Run Details

Running Workflow PR Update on Github Actions

Commit: 2da898d

Started: 03/14/2024 03:43:27pm UTC

❌ Failures

📄   apps/web/playwright/booking-limits.e2e.ts • 3 Failures

Top 1 Common Error Messages

Timed out 10000ms waiting for expect(received).toBeVisible()

3 Test Cases Affected

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Duration limits day
Retry 2Retry 1Initial Attempt
Error: Timed out 10000ms waiting for expect(received).toBeVisible()...
Timed out 10000ms waiting for expect(received).toBeVisible()
Call log:
  - expect.toBeVisible with timeout 10000ms
  - waiting for locator('[data-testid="day"][data-disabled="false"]').getByText('8', { exact: true })
  - waiting for locator('[data-testid="day"][data-disabled="false"]').getByText('8', { exact: true })

4.78% (12) 12 / 251 runs
failed over last 7 days
0% (0) 0 / 251 runs
flaked over last 7 days
Duration limits week
Retry 2Retry 1Initial Attempt
Error: Timed out 10000ms waiting for expect(received).toBeVisible()...
Timed out 10000ms waiting for expect(received).toBeVisible()
Call log:
  - expect.toBeVisible with timeout 10000ms
  - waiting for locator('[data-testid="day"][data-disabled="false"]').getByText('8', { exact: true })
  - waiting for locator('[data-testid="day"][data-disabled="false"]').getByText('8', { exact: true })

5.16% (13) 13 / 252 runs
failed over last 7 days
0% (0) 0 / 252 runs
flaked over last 7 days
Duration limits month
Retry 1Initial Attempt
Error: Timed out 10000ms waiting for expect(received).toBeVisible()...
Timed out 10000ms waiting for expect(received).toBeVisible()
Call log:
  - expect.toBeVisible with timeout 10000ms
  - waiting for locator('[data-testid="day"][data-disabled="false"]').getByText('8', { exact: true })
  - waiting for locator('[data-testid="day"][data-disabled="false"]').getByText('8', { exact: true })

4.80% (12) 12 / 250 runs
failed over last 7 days
0.40% (1) 1 / 250 run
flaked over last 7 days

📄   apps/web/playwright/organization/booking.e2e.ts • 2 Failures

Top 1 Common Error Messages

Test timeout of 60000ms exceeded.

2 Test Cases Affected

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Bookings Team Event Can create a booking for Collective EventType
Retry 2Retry 1Initial Attempt
Error: Test timeout of 60000ms exceeded.
Test timeout of 60000ms exceeded.
5.45% (14) 14 / 257 runs
failed over last 7 days
0% (0) 0 / 257 runs
flaked over last 7 days
Bookings Team Event Can create a booking for Round Robin EventType
Retry 2Retry 1Initial Attempt
Error: Test timeout of 60000ms exceeded.
Test timeout of 60000ms exceeded.
5.08% (13) 13 / 256 runs
failed over last 7 days
0% (0) 0 / 256 runs
flaked over last 7 days

📄   apps/web/playwright/integrations-stripe.e2e.ts • 2 Failures

Top 1 Common Error Messages

Test timeout of 60000ms exceeded.

2 Test Cases Affected

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Stripe integration when enabling Stripe, credentialId is included
Retry 2Retry 1Initial Attempt
Error: Test timeout of 60000ms exceeded.
Test timeout of 60000ms exceeded.
1.56% (4) 4 / 257 runs
failed over last 7 days
0.39% (1) 1 / 257 run
flaked over last 7 days
Stripe integration when enabling Stripe, team credentialId is included
Retry 2Retry 1Initial Attempt
Error: Test timeout of 60000ms exceeded.
Test timeout of 60000ms exceeded.
1.95% (5) 5 / 257 runs
failed over last 7 days
0.39% (1) 1 / 257 run
flaked over last 7 days

📄   apps/web/playwright/dynamic-booking-pages.e2e.ts • 2 Failures

Top 1 Common Error Messages

Test timeout of 60000ms exceeded.

2 Test Cases Affected

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
dynamic booking
Retry 2Retry 1Initial Attempt
Error: Test timeout of 60000ms exceeded.
Test timeout of 60000ms exceeded.
1.97% (5) 5 / 254 runs
failed over last 7 days
0.39% (1) 1 / 254 run
flaked over last 7 days
Organization: Can book a time slot for an organization
Retry 2Retry 1Initial Attempt
Error: Test timeout of 60000ms exceeded.
Test timeout of 60000ms exceeded.
0.78% (2) 2 / 255 runs
failed over last 7 days
0% (0) 0 / 255 runs
flaked over last 7 days

📄   apps/web/playwright/teams.e2e.ts • 1 Failure

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Teams - NonOrg -- legacy Can create a booking for Round Robin EventType
Retry 1Initial Attempt
Error: Test timeout of 60000ms exceeded.
Test timeout of 60000ms exceeded.
3.83% (10) 10 / 261 runs
failed over last 7 days
0.38% (1) 1 / 261 run
flaked over last 7 days

📄   packages/embeds/embed-core/playwright/tests/action-based.e2e.ts • 1 Failure

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Popup Tests should open embed iframe on click - Configured with light theme
Retry 2Retry 1Initial Attempt
Error: Test timeout of 60000ms exceeded.
Test timeout of 60000ms exceeded.
5.49% (14) 14 / 255 runs
failed over last 7 days
44.31% (113) 113 / 255 runs
flaked over last 7 days

📄   packages/embeds/embed-core/playwright/tests/embed-pages.e2e.ts • 1 Failure

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Embed Pages Event Type Page: should not have margin top on embed page
Retry 2Retry 1Initial Attempt
Error: Test timeout of 60000ms exceeded.
Test timeout of 60000ms exceeded.
4.71% (12) 12 / 255 runs
failed over last 7 days
0% (0) 0 / 255 runs
flaked over last 7 days

📄   packages/embeds/embed-core/playwright/tests/inline.e2e.ts • 1 Failure

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Inline Iframe Inline Iframe - Configured with Dark Theme
Retry 2Retry 1Initial Attempt
Error: Test timeout of 60000ms exceeded.
Test timeout of 60000ms exceeded.
5.47% (14) 14 / 256 runs
failed over last 7 days
47.27% (121) 121 / 256 runs
flaked over last 7 days

⚠️ Flakes

📄   packages/app-store/routing-forms/playwright/tests/basic.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Routing Forms Seeded Routing Form Test preview should return correct route
Retry 1Initial Attempt
0% (0) 0 / 252 runs
failed over last 7 days
7.54% (19) 19 / 252 runs
flaked over last 7 days

📄   apps/web/playwright/signup.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Signup Flow Test Signup with valid (non premium) username
Retry 2Retry 1Initial Attempt
1.87% (5) 5 / 268 runs
failed over last 7 days
10.07% (27) 27 / 268 runs
flaked over last 7 days

View Detailed Build Results


Copy link
Contributor

github-actions bot commented Mar 14, 2024

📦 Next.js Bundle Analysis for @calcom/web

This analysis was generated by the Next.js Bundle Analysis action. 🤖

🎉 Global Bundle Size Decreased

Page Size (compressed)
global 166.48 KB (🟢 -21.91 KB)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

Copy link
Member Author

@zomars zomars left a comment

Choose a reason for hiding this comment

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

Getting some type errors when trying to build. Will revisit in a second pass.

Comment on lines +17 to +20
type AppRouterType = typeof appRouter;
/** @see https://github.com/trpc/trpc/issues/2568#issuecomment-1264683718 */
// eslint-disable-next-line @typescript-eslint/no-empty-interface
export interface AppRouter extends AppRouterType {}
Copy link
Member Author

Choose a reason for hiding this comment

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

We're starting to see these kind of errors in every import { router } from "@calcom/trpc/server/trpc"; invocation:

image

import { ssoRouter } from "./sso/_router";
import { viewerTeamsRouter } from "./teams/_router";
import { webhookRouter } from "./webhook/_router";
import { workflowsRouter } from "./workflows/_router";

export const viewerRouter = mergeRouters(
Copy link
Member Author

Choose a reason for hiding this comment

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

Same here:

The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed.ts(7056)

Copy link
Contributor

This PR is being marked as stale due to inactivity.

@github-actions github-actions bot added the Stale label Apr 11, 2024
@dosubot dosubot bot modified the milestones: v4.0, v4.1 Apr 15, 2024
@keithwillcode keithwillcode modified the milestones: v4.0, v4.1 Apr 15, 2024
@github-actions github-actions bot removed the Stale label Apr 16, 2024
Copy link
Contributor

This PR is being marked as stale due to inactivity.

@github-actions github-actions bot added the Stale label Apr 30, 2024
@dosubot dosubot bot removed this from the v4.1 milestone May 9, 2024
@github-actions github-actions bot removed the Stale label May 10, 2024
@keithwillcode keithwillcode added this to the v4.3 milestone May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api area: API, enterprise API, access token, OAuth core area: core, team members only ✨ feature New feature or request foundation Low priority Created by Linear-GitHub Sync
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CAL-3166] POC: tRPC lazy loaded routers
2 participants