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

[Flaky CI]: suites/tracing/tedious/test.ts > tedious auto instrumentation > should auto-instrument tedious package #15579

Open
AbhiPrasad opened this issue Mar 4, 2025 · 0 comments

Comments

@AbhiPrasad
Copy link
Member

Flakiness Type

Assertion failure

Name of Job

Node (20) Integration Tests

Name of Test

suites/tracing/tedious/test.ts > tedious auto instrumentation > should auto-instrument tedious package

Link to Test Run

https://github.com/getsentry/sentry-javascript/actions/runs/13659077993/job/38185995154?pr=15577

Details

 FAIL  suites/tracing/tedious/test.ts > tedious auto instrumentation > should auto-instrument `tedious` package
Error: Expected envelope item type 'transaction' but got 'event'. 
Item: [{"type":"event"},{"exception":{"values":[{"type":"Error","value":"Login failed for user 'sa'.","stacktrace":{"frames":[{"filename":"node:internal/process/task_queues","module":"task_queues","function":"process.processTicksAndRejections","lineno":95,"colno":5,"in_app":false},{"filename":"node:internal/streams/from","module":"from","function":"nextAsync","lineno":194,"colno":22,"in_app":false},{"filename":"node:internal/streams/readable","module":"readable","function":"Readable.push","lineno":393,"colno":5,"in_app":false},{"filename":"node:internal/streams/readable","module":"readable","function":"readableAddChunkPushObjectMode","lineno":538,"colno":3,"in_app":false},{"filename":"node:internal/streams/readable","module":"readable","function":"addChunk","lineno":561,"colno":12,"in_app":false},{"filename":"node:events","module":"node:events","function":"Readable.emit","lineno":518,"colno":28,"in_app":false},{"filename":"/home/runner/work/sentry-javascript/sentry-javascript/node_modules/tedious/lib/token/token-stream-parser.js","module":"tedious.lib.token:token-stream-parser","function":"Readable.?","lineno":19,"colno":33,"in_app":false,"pre_context":["  constructor(message, debug, handler, options) {","    super();","    this.debug = debug;","    this.options = options;","    this.parser = _stream.Readable.from(_streamParser.default.parseTokens(message, this.debug, this.options));","    this.parser.on('data', token => {","      debug.token(token);"],"context_line":"      handler[token.handlerName](token);","post_context":["    });","    this.parser.on('drain', () => {","      this.emit('drain');","    });","    this.parser.on('end', () => {","      this.emit('end');","    });"]},{"filename":"/home/runner/work/sentry-javascript/sentry-javascript/node_modules/tedious/lib/token/handler.js","module":"tedious.lib.token:handler","function":"Login7TokenHandler.onErrorMessage","lineno":186,"colno":19,"in_app":false,"pre_context":["    this.connection = connection;","  }","  onInfoMessage(token) {","    this.connection.emit('infoMessage', token);","  }","  onErrorMessage(token) {","    this.connection.emit('errorMessage', token);"],"context_line":"    const error = new _errors.ConnectionError(token.message, 'ELOGIN');","post_context":["    const isLoginErrorTransient = this.connection.transientErrorLookup.isTransientError(token.number);","    if (isLoginErrorTransient && this.connection.curTransientRetryCount !== this.connection.config.options.maxRetriesOnTransientErrors) {","      error.isTransient = true;","    }","    this.connection.loginError = error;","  }","  onSSPI(token) {"]}]},"mechanism":{"type":"onuncaughtexception","handled":false}}]},"event_id":"e88cfcc2946a4de1887b5236923d345b","level":"fatal","platform":"node","contexts":{"trace":{"trace_id":"3bab3b1cd29942c6b70849e2399a02e7","span_id":"ada3ebe295d0d973"},"runtime":{"name":"node","version":"v20.18.3"},"app":{"app_start_time":"2025-03-04T17:17:23.710Z","app_memory":100597760,"free_memory":14273273856},"os":{"kernel_version":"6.8.0-1021-azure","name":"Ubuntu Linux","version":"24.04"},"device":{"boot_time":"2025-03-04T17:11:30.901Z","arch":"x64","memory_size":16766767104,"free_memory":14273273856,"processor_count":4,"cpu_description":"AMD EPYC 7763 64-Core Processor","processor_frequency":0},"culture":{"locale":"en-US","timezone":"UTC"},"cloud_resource":{}},"server_name":"fv-az1695-964","timestamp":1741108644.522,"environment":"production","release":"1.0","sdk":{"integrations":["InboundFilters","FunctionToString","LinkedErrors","RequestData","Console","Http","NodeFetch","OnUncaughtException","OnUnhandledRejection","ContextLines","LocalVariablesAsync","Context","ChildProcess","ProcessSession","Modules","Express","Fastify","Graphql","Mongo","Mongoose","Mysql","Mysql2","Redis","Postgres","Hapi","Koa","Connect","Tedious","GenericPool","Kafka","Amqplib","LruMemoizer","VercelAI"],"name":"sentry.javascript.node","version":"9.3.0","packages":[{"name":"npm:@sentry/node","version":"9.3.0"}]},"modules":{"semver":"7.6.3","shimmer":"1.2.1","require-in-the-middle":"7.2.0","resolve":"1.22.8","is-core-module":"2.13.0","has":"1.0.3","function-bind":"1.1.2","debug":"4.4.0","supports-color":"7.2.0","has-flag":"4.0.0","ms":"2.1.3","module-details-from-path":"1.0.3","import-in-the-middle":"1.13.0","forwarded-parse":"2.1.2","tedious":"18.6.1","tslib":"2.8.1","uuid":"8.3.2","jsonwebtoken":"9.0.2","safe-buffer":"5.2.1","buffer-equal-constant-time":"1.0.1","ecdsa-sig-formatter":"1.0.11","lodash.includes":"4.3.0","lodash.isboolean":"3.0.3","lodash.isinteger":"4.0.4","lodash.isnumber":"3.0.3","lodash.isplainobject":"4.0.6","lodash.isstring":"4.0.1","lodash.once":"4.1.1","open":"8.4.2","is-wsl":"2.2.0","is-docker":"2.2.1","define-lazy-prop":"2.0.0","sprintf-js":"1.1.3","js-md4":"0.3.2","native-duplexpair":"1.0.0","process":"0.11.10","inherits":"2.0.4","iconv-lite":"0.6.3","safer-buffer":"2.1.2"}}]
 ❯ newEnvelope utils/runner.ts:303:21
    301| 
 Test Files  1 failed | 169 passed (170)
    302|             if (expectedType !== envelopeItemType) {
      Tests  1 failed | 318 passed (319)
    303|               throw new Error(
       |                     ^
    304|                 `Expected envelope item type '${expectedType}' but got…
    305|                   item,
 ❯ tryParseEnvelopeFromStdoutLine utils/runner.ts:421:15
 ❯ Socket.<anonymous> utils/runner.ts:439:15

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/1]⎯

codecov: https://app.codecov.io/gh/getsentry/sentry-javascript/tests/develop?testSuites%5B0%5D=tedious%20auto%20instrumentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant