Skip to content

ref(symbol-collector): Verbose output of command - #268

Merged
iker-barriocanal merged 4 commits into
masterfrom
iker/ref/sym-collector-output
Jul 14, 2021
Merged

iker-barriocanal merged 4 commits into
masterfrom
iker/ref/sym-collector-output

Conversation

@iker-barriocanal

Copy link
Copy Markdown
Contributor

Be verbose on the output of the symbol collector call.

@iker-barriocanal
iker-barriocanal requested a review from a team July 13, 2021 12:54
@iker-barriocanal iker-barriocanal self-assigned this Jul 13, 2021
@iker-barriocanal
iker-barriocanal requested review from ahmedetefy and vladanpaunovic and removed request for a team July 13, 2021 12:54
Comment thread src/targets/symbolCollector.ts Resolved
Comment thread src/targets/symbolCollector.ts Resolved
Comment thread src/targets/symbolCollector.ts Resolved
@iker-barriocanal
iker-barriocanal enabled auto-merge (squash) July 14, 2021 12:59
@iker-barriocanal
iker-barriocanal merged commit f78f2c8 into master Jul 14, 2021
@iker-barriocanal
iker-barriocanal deleted the iker/ref/sym-collector-output branch July 14, 2021 13:07
Comment on lines +107 to +113
if (cmdOutput) {
if (cmdOutput.length === 0) {
this.logger.info(`The command didn't have any output.`);
} else {
this.logger.info('Command output:\n', cmdOutput.toString());
}
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Feels like these should be debug instead of info?

@BYK BYK added this to the Added symbol-collector Target milestone Sep 14, 2021
BYK added a commit that referenced this pull request Nov 18, 2026
Fixes the two high advisories in the root and `docs/` lockfiles.


**[GHSA-mrhx-c7xc-m3w5](GHSA-mrhx-c7xc-m3w5)
(zod < 4.6.6), root.** zod 3 came only from `@vercel/client >
@vercel/build-utils@14 > @vercel/python-analysis`.
`@vercel/client@^18.12.3` uses `@vercel/[email protected]`, which no
longer depends on python-analysis, so zod drops out of the tree. A zod
override would force zod 4 onto zod 3 code. The `createDeployment` API
that the vercel target uses has not changed.


**[GHSA-fc5q-39xc-vjpf](GHSA-fc5q-39xc-vjpf)
(picomatch ReDoS), root and docs.** There is no fixed release. Following
the `braces` precedent, this adds local pnpm patches for both installed
versions, 4.0.7 and 2.3.2. 2.3.2 has the same bug. The advisory links
micromatch/picomatch#194, but that PR covers `?`-leading extglobs and
does not fix `+(*a)`. The patches backport micromatch/picomatch#267
(#268 for 2.x):
- A single wildcard branch made of literals, `?`, `*`, and bracket
classes that cannot match `/` absorbs its own repetition. `+(P)`
compiles as `(P)` and `*(P)` as `(P)?`, and the matches stay the same.
- Other single-branch wildcard bodies are literalized, like the existing
risky-extglob guard.

The patch differs from upstream in one place. Upstream would collapse a
bracket range like `[+-0]`, which includes `/`, and that changes what it
matches. The patch checks each compiled bracket class first. Details are
in `patches/README.md`.

**After merge:** Dependabot matches on version, so it will keep flagging
the patched picomatch 4.0.7 and 2.3.2, as it already does for braces.
Dismiss those alerts by hand.

**Not covered:** repeated extglobs with several branches that contain
`*`, such as `+(*a|b)`. That is the general upstream issue
micromatch/picomatch#175. Literalizing them would break globs like
`+(*.js|*.ts)`.

<!-- junior-request-attribution:start -->
via @BYK.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!-- junior-conversation-id:agent%3Aa3f271eaa645c4e79ce41158088ba41e -->

--

[View
Session](https://junior-prod.sentry.dev/conversations/agent%3Aa3f271eaa645c4e79ce41158088ba41e)
[[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3Aa3f271eaa645c4e79ce41158088ba41e/?project=4510944073809921)

<!-- junior-session-footer:end -->

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: BYK <[email protected]>
Co-authored-by: Burak Yigit Kaya <[email protected]>
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.

4 participants