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

chore: just a little bit of cleanup #9319

Merged
merged 2 commits into from Mar 9, 2024
Merged

chore: just a little bit of cleanup #9319

merged 2 commits into from Mar 9, 2024

Conversation

paperdave
Copy link
Collaborator

No description provided.

Copy link

github-actions bot commented Mar 8, 2024

@paperdave 1 files with test failures on linux-x64:

View test output

#3cfc239e0591341c3256f079edb646579b2d8553

Copy link

github-actions bot commented Mar 8, 2024

@paperdave 1 files with test failures on linux-x64-baseline:

View test output

#3cfc239e0591341c3256f079edb646579b2d8553

Copy link

github-actions bot commented Mar 8, 2024

Copy link

github-actions bot commented Mar 8, 2024

@paperdave 1 files with test failures on bun-darwin-x64:

View test output

#3cfc239e0591341c3256f079edb646579b2d8553

Copy link

github-actions bot commented Mar 8, 2024

❌🪟 @paperdave, there are 15 test regressions on Windows x86_64

  • test\cli\hot\hot.test.ts
  • test\cli\install\bun-upgrade.test.ts
  • test\cli\install\migration\migrate.test.ts
  • test\cli\run\transpiler-cache.test.ts
  • test\js\bun\dns\resolve-dns.test.ts
  • test\js\bun\http\fetch-file-upload.test.ts
  • test\js\bun\http\bun-server.test.ts
  • test\js\bun\shell\shelloutput.test.ts
  • test\js\bun\shell\throw.test.ts
  • test\js\node\dns\node-dns.test.js
  • test\js\node\process\process-args.test.js
  • test\js\web\fetch\body-stream-excess.test.ts
  • test\js\web\fetch\body-stream.test.ts
  • test\js\web\websocket\websocket.test.js
  • test\js\web\workers\worker.test.ts

Full Test Output

@@ -3278,7 +3278,7 @@ pub fn NewInterpreter(comptime EventLoopKind: JSC.EventLoopKind) type {
const err = switch (this.state) {
.expanding_redirect => this.state.expanding_redirect.expansion.state.err,
.expanding_args => this.state.expanding_args.expansion.state.err,
else => @panic("Invalid state"),
else => |t| std.debug.panic("Unexpected state .{s} in Bun shell", .{@tagName(t)}),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Output.panic, we should ban std.debug.panic

@@ -6732,7 +6732,7 @@ pub fn NewInterpreter(comptime EventLoopKind: JSC.EventLoopKind) type {
pub fn onAsyncTaskDone(this: *Rm, task: *ShellRmTask) void {
var exec = &this.state.exec;
const tasks_done = switch (exec.state) {
.idle => @panic("Invalid state"),
.idle => @panic("Unexpected state .idle in Bun shell 'rm' builtin."),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice

@Jarred-Sumner
Copy link
Collaborator

LGTM but @dylan-conway should look it over incase opinions about __has_install_script I feel like that name was deliberate

@dylan-conway
Copy link
Collaborator

The field should never be used directly was why it had double underscore, but there's also a comment saying this so LGTM

@Jarred-Sumner
Copy link
Collaborator

Maybe we should rename it to @“#has_install_scripts”

@dylan-conway
Copy link
Collaborator

or we could keep the name has_install_script and put get/set functions on the enum

@Jarred-Sumner Jarred-Sumner merged commit cd32083 into main Mar 9, 2024
26 of 31 checks passed
@Jarred-Sumner Jarred-Sumner deleted the dave/tidy2 branch March 9, 2024 15:28
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.

None yet

3 participants