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

--watch and --hot on windows #8607

Merged
merged 35 commits into from
Feb 1, 2024
Merged

--watch and --hot on windows #8607

merged 35 commits into from
Feb 1, 2024

Conversation

gvilums
Copy link
Contributor

@gvilums gvilums commented Jan 31, 2024

What does this PR do?

This PR implements --watch and --hot support on windows.

How did you verify your code works?

Tests in hot.test.ts
New tests in watch.test.ts

@gvilums gvilums changed the title Georgijs/watcher --watch and --hot on windows Jan 31, 2024
Copy link
Contributor

github-actions bot commented Feb 1, 2024

❌🪟 @gvilums, there are 8 test regressions on Windows x86_64

  • test\bundler\cli.test.ts
  • test\cli\inspect\inspect.test.ts
  • test\cli\run\transpiler-cache.test.ts
  • test\js\bun\util\bun-file-windows.test.ts
  • test\js\node\process\process-args.test.js
  • test\js\web\timers\performance.test.js
  • test\regression\issue\08095.test.ts
  • test\transpiler\template-literal.test.ts

Full Test Output

src/bun.zig Outdated Show resolved Hide resolved
src/watcher.zig Outdated Show resolved Hide resolved
src/watcher.zig Outdated Show resolved Hide resolved
@gvilums gvilums marked this pull request as ready for review February 1, 2024 03:45
Copy link
Contributor

github-actions bot commented Feb 1, 2024

@gvilums 2 files with test failures on bun-darwin-aarch64:

View test output

#95a8393385ad906450e3c8161ebfeab972439074

Copy link
Contributor

github-actions bot commented Feb 1, 2024

Copy link
Contributor

github-actions bot commented Feb 1, 2024

Copy link
Contributor

github-actions bot commented Feb 1, 2024

@Jarred-Sumner Jarred-Sumner merged commit 350cc11 into main Feb 1, 2024
26 of 31 checks passed
@Jarred-Sumner Jarred-Sumner deleted the georgijs/watcher branch February 1, 2024 06:06
ryoppippi pushed a commit to ryoppippi/bun that referenced this pull request Feb 2, 2024
* draft impl of windows watcher

* synchronous watcher

* working standalone watcher

* in progress changes to watcher

* make watcher non-global

* prepare watcher for windows impl

* add windows watcher scaffold and clean up imports

* fix inotify

* make watch code more generic over platforms

* fix visibility

* watcher starts without error

* printing changes works

* basic windows watching works

* handle process exit from watcher

* cleanup in process cloning

* clean up logging and panic handling

* fix hot reload test on windows

* misc cleanup around watcher

* make watch test actually useful

* [autofix.ci] apply automated fixes

* remove old files

* clean up watchers

* update .gitignore

* rework windows watcher into single watcher instance watching top level project dir

* use non-strict utf16 conversion

* change to contains

* fix mac and linux compile

* add baseline in crash report (oven-sh#8606)

* allow linking bins that do not exist. (oven-sh#8605)

* fix linux compile

* fix linux compile (again)

* remove outdated todo

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: dave caruso <me@paperdave.net>
Hanaasagi pushed a commit to Hanaasagi/bun that referenced this pull request Feb 3, 2024
* draft impl of windows watcher

* synchronous watcher

* working standalone watcher

* in progress changes to watcher

* make watcher non-global

* prepare watcher for windows impl

* add windows watcher scaffold and clean up imports

* fix inotify

* make watch code more generic over platforms

* fix visibility

* watcher starts without error

* printing changes works

* basic windows watching works

* handle process exit from watcher

* cleanup in process cloning

* clean up logging and panic handling

* fix hot reload test on windows

* misc cleanup around watcher

* make watch test actually useful

* [autofix.ci] apply automated fixes

* remove old files

* clean up watchers

* update .gitignore

* rework windows watcher into single watcher instance watching top level project dir

* use non-strict utf16 conversion

* change to contains

* fix mac and linux compile

* add baseline in crash report (oven-sh#8606)

* allow linking bins that do not exist. (oven-sh#8605)

* fix linux compile

* fix linux compile (again)

* remove outdated todo

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: dave caruso <me@paperdave.net>
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.

3 participants