-
Notifications
You must be signed in to change notification settings - Fork 16
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
fix: end the FileStreamWriter for the installer file #47
Conversation
6205da2
to
6280613
Compare
Update:
Random:
|
src/main.ts
Outdated
@@ -437,6 +437,7 @@ class NixInstallerAction { | |||
const fileStream = fs.createWriteStream(tempfile); | |||
const fileStreamWeb = stream.Writable.toWeb(fileStream); | |||
await response.body.pipeTo(fileStreamWeb); | |||
fileStream.end(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Referring to https://nodejs.org/api/fs.html#filehandlecreatewritestreamoptions, I'm not sure this syncs the file. I wonder if we also need to call...
https://nodejs.org/api/fs.html#filehandlesync
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, yes, and the nice solution I found is to call fs.createWriteStream
with options { flush: true}
, but of course that's only in node 21.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what interesting is that the code I changed wasn't calling sync explicitly, and was just waiting for the finished signal. (which I'd assume is similar to awaiting the pipeTo
)
I'm going to going to really wack this with a big hammer, open the file so I get a filehandle, make sure it gets fsync'd explicitly and see how this fares.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
further musing: there's a "synchronous append" mode (as
) for opening, but not an equivalent for w
? But there is rs+
:
'rs+': Open file for reading and writing in synchronous mode. Instructs the operating system to bypass the local file system cache.
71a0da3
to
d5c0386
Compare
Unfortunately this results in an error when running the checks: nix-installer-action on colemickens/fix-stream-close [$!] is 📦 v1.0.0 via v20.8.0 via ❄️ impure (nix-shell-env) took 3s
❯ npm run all
> nix-installer-action@1.0.0 all
> npm run build && npm run format && npm run lint && npm run package
> nix-installer-action@1.0.0 build
> tsc
src/main.ts:12:25 - error TS2307: Cannot find module 'fetch-retry' or its corresponding type declarations.
12 import fetchRetry_ from "fetch-retry";
~~~~~~~~~~~~~
Found 1 error in src/main.ts:12
I realize now we don't actually note that we use the same style as https://github.com/actions/javascript-action so you need to run |
#48 should fix the lack of a check! |
I agree we need #48 (and that I had a diff in (edit: also, note the CI was green, so it was able to build, also pointing to it just being a lack of |
I'm guessing this got dropped again as part of having multiple branches in flight and rebasing. It would be good if CI checked that `npm install` and `npm run build` resulted in *zero* diffs to validate that generated/lock files match their source at time of CI.
d5c0386
to
7b08647
Compare
I rebased this on #48, hopefully we can merge it first if we want it, otherwise I'll rebase this again. |
36ccc35
to
2a5c00c
Compare
ba45de9
to
5c5abe9
Compare
now I'm hitting: nodejs/node#48466 |
d09e44b
to
00dcbf5
Compare
00dcbf5
to
663467b
Compare
3f99ffd
to
e371685
Compare
e371685
to
bb22c86
Compare
… v13 (#18) [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [DeterminateSystems/nix-installer-action](https://github.com/DeterminateSystems/nix-installer-action) | action | major | `v1` -> `v13` | --- ### Release Notes <details> <summary>DeterminateSystems/nix-installer-action (DeterminateSystems/nix-installer-action)</summary> ### [`v13`](https://github.com/DeterminateSystems/nix-installer-action/releases/tag/v13) [Compare Source](https://github.com/DeterminateSystems/nix-installer-action/compare/v12...v13) ##### What's Changed This update primarily improves the docker shim mechanism. - science: probes to debug fly on GHA by [@​grahamc](https://github.com/grahamc) in [https://github.com/DeterminateSystems/nix-installer-action/pull/99](https://github.com/DeterminateSystems/nix-installer-action/pull/99) - bump by [@​grahamc](https://github.com/grahamc) in [https://github.com/DeterminateSystems/nix-installer-action/pull/100](https://github.com/DeterminateSystems/nix-installer-action/pull/100) - Update detsys-ts by [@​lucperkins](https://github.com/lucperkins) in [https://github.com/DeterminateSystems/nix-installer-action/pull/102](https://github.com/DeterminateSystems/nix-installer-action/pull/102) - Update detsys-ts: Merge pull request [#​51](https://github.com/DeterminateSystems/nix-installer-action/issues/51) from DeterminateSystems/add-missing-actions-to-update-matrix Add missing Actions to update matrix by [@​detsys-pr-bot](https://github.com/detsys-pr-bot) in [https://github.com/DeterminateSystems/nix-installer-action/pull/103](https://github.com/DeterminateSystems/nix-installer-action/pull/103) - Update `detsys-ts`: Merge pull request [#​103](https://github.com/DeterminateSystems/nix-installer-action/issues/103) from detsys-pr-bot/detsys-ts-update-515d00bc192ae4460e2122572ebc24020c58ea95 by [@​detsys-pr-bot](https://github.com/detsys-pr-bot) in [https://github.com/DeterminateSystems/nix-installer-action/pull/105](https://github.com/DeterminateSystems/nix-installer-action/pull/105) - Update `detsys-ts`: by [@​detsys-pr-bot](https://github.com/detsys-pr-bot) in [https://github.com/DeterminateSystems/nix-installer-action/pull/104](https://github.com/DeterminateSystems/nix-installer-action/pull/104) - README: correct the source-url parameter docs by [@​grahamc](https://github.com/grahamc) in [https://github.com/DeterminateSystems/nix-installer-action/pull/108](https://github.com/DeterminateSystems/nix-installer-action/pull/108) - Share /lib64 into the container by [@​grahamc](https://github.com/grahamc) in [https://github.com/DeterminateSystems/nix-installer-action/pull/109](https://github.com/DeterminateSystems/nix-installer-action/pull/109) ##### New Contributors - [@​detsys-pr-bot](https://github.com/detsys-pr-bot) made their first contribution in [https://github.com/DeterminateSystems/nix-installer-action/pull/103](https://github.com/DeterminateSystems/nix-installer-action/pull/103) **Full Changelog**: DeterminateSystems/nix-installer-action@v12...v13 ### [`v12`](https://github.com/DeterminateSystems/nix-installer-action/releases/tag/v12) [Compare Source](https://github.com/DeterminateSystems/nix-installer-action/compare/v11...v12) #### What's Changed - Fix ESM build by [@​lucperkins](https://github.com/lucperkins) in [https://github.com/DeterminateSystems/nix-installer-action/pull/83](https://github.com/DeterminateSystems/nix-installer-action/pull/83) - Revert "Fix ESM build" by [@​grahamc](https://github.com/grahamc) in [https://github.com/DeterminateSystems/nix-installer-action/pull/86](https://github.com/DeterminateSystems/nix-installer-action/pull/86) - Add CI run for aarch64-darwin by [@​lucperkins](https://github.com/lucperkins) in [https://github.com/DeterminateSystems/nix-installer-action/pull/87](https://github.com/DeterminateSystems/nix-installer-action/pull/87) - Update action.yml description for source-url by [@​lucperkins](https://github.com/lucperkins) in [https://github.com/DeterminateSystems/nix-installer-action/pull/89](https://github.com/DeterminateSystems/nix-installer-action/pull/89) - Provide new test matrix for source-\* inputs by [@​lucperkins](https://github.com/lucperkins) in [https://github.com/DeterminateSystems/nix-installer-action/pull/91](https://github.com/DeterminateSystems/nix-installer-action/pull/91) - Disable docker under act by [@​grahamc](https://github.com/grahamc) in [https://github.com/DeterminateSystems/nix-installer-action/pull/90](https://github.com/DeterminateSystems/nix-installer-action/pull/90) - Update detsys-ts by [@​lucperkins](https://github.com/lucperkins) in [https://github.com/DeterminateSystems/nix-installer-action/pull/93](https://github.com/DeterminateSystems/nix-installer-action/pull/93) - tests: make megajob block on failure by [@​cole-h](https://github.com/cole-h) in [https://github.com/DeterminateSystems/nix-installer-action/pull/96](https://github.com/DeterminateSystems/nix-installer-action/pull/96) - Srv update by [@​grahamc](https://github.com/grahamc) in [https://github.com/DeterminateSystems/nix-installer-action/pull/97](https://github.com/DeterminateSystems/nix-installer-action/pull/97) - Update detsys-ts (status page changes) by [@​lucperkins](https://github.com/lucperkins) in [https://github.com/DeterminateSystems/nix-installer-action/pull/98](https://github.com/DeterminateSystems/nix-installer-action/pull/98) **Full Changelog**: DeterminateSystems/nix-installer-action@v11...v12 ### [`v11`](https://github.com/DeterminateSystems/nix-installer-action/releases/tag/v11) [Compare Source](https://github.com/DeterminateSystems/nix-installer-action/compare/v10...v11) #### What's Changed - Rebase on top of detsys-ts for abstracting over install.determinate.systems by [@​grahamc](https://github.com/grahamc) in [https://github.com/DeterminateSystems/nix-installer-action/pull/74](https://github.com/DeterminateSystems/nix-installer-action/pull/74) - Update detsys-ts by [@​grahamc](https://github.com/grahamc) in [https://github.com/DeterminateSystems/nix-installer-action/pull/75](https://github.com/DeterminateSystems/nix-installer-action/pull/75) - Gracefully handle FlakeHub login failure by [@​cole-h](https://github.com/cole-h) in [https://github.com/DeterminateSystems/nix-installer-action/pull/77](https://github.com/DeterminateSystems/nix-installer-action/pull/77) - General JS cleanup by [@​lucperkins](https://github.com/lucperkins) in [https://github.com/DeterminateSystems/nix-installer-action/pull/76](https://github.com/DeterminateSystems/nix-installer-action/pull/76) - Fix broken CI caused by Nix reinstallation wiping out the Magic Nix Cache by [@​lucperkins](https://github.com/lucperkins) in [https://github.com/DeterminateSystems/nix-installer-action/pull/79](https://github.com/DeterminateSystems/nix-installer-action/pull/79) - Standardize on v4 of the checkout action by [@​lucperkins](https://github.com/lucperkins) in [https://github.com/DeterminateSystems/nix-installer-action/pull/80](https://github.com/DeterminateSystems/nix-installer-action/pull/80) - Switch to tsup for building by [@​lucperkins](https://github.com/lucperkins) in [https://github.com/DeterminateSystems/nix-installer-action/pull/82](https://github.com/DeterminateSystems/nix-installer-action/pull/82) - Update dependencies by [@​grahamc](https://github.com/grahamc) in [https://github.com/DeterminateSystems/nix-installer-action/pull/85](https://github.com/DeterminateSystems/nix-installer-action/pull/85) **Full Changelog**: DeterminateSystems/nix-installer-action@v10...v11 ### [`v10`](https://github.com/DeterminateSystems/nix-installer-action/releases/tag/v10) [Compare Source](https://github.com/DeterminateSystems/nix-installer-action/compare/v9...v10) #### What's Changed - action: post-run-job: try clean daemon container, warn on failure by [@​colemickens](https://github.com/colemickens) in [https://github.com/DeterminateSystems/nix-installer-action/pull/61](https://github.com/DeterminateSystems/nix-installer-action/pull/61) - No longer require sudo by [@​Hoverbear](https://github.com/Hoverbear) in [https://github.com/DeterminateSystems/nix-installer-action/pull/64](https://github.com/DeterminateSystems/nix-installer-action/pull/64) - Handle docker not existing. by [@​Hoverbear](https://github.com/Hoverbear) in [https://github.com/DeterminateSystems/nix-installer-action/pull/66](https://github.com/DeterminateSystems/nix-installer-action/pull/66) - Don't use docker shim if only using a mounted docker.sock instead of docker-in-docker by [@​Hoverbear](https://github.com/Hoverbear) in [https://github.com/DeterminateSystems/nix-installer-action/pull/67](https://github.com/DeterminateSystems/nix-installer-action/pull/67) - DETERMINATE_NIX_KVM fixup, support Magic Nix Cache + FlakeHub Cache on Namespace runners by [@​grahamc](https://github.com/grahamc) in [https://github.com/DeterminateSystems/nix-installer-action/pull/72](https://github.com/DeterminateSystems/nix-installer-action/pull/72) **Full Changelog**: DeterminateSystems/nix-installer-action@v9...v10 ### [`v9`](https://github.com/DeterminateSystems/nix-installer-action/releases/tag/v9) [Compare Source](https://github.com/DeterminateSystems/nix-installer-action/compare/v8...v9) #### What's Changed - Support GitHub Enterprise Server in the access-token config. by [@​grahamc](https://github.com/grahamc) in [https://github.com/DeterminateSystems/nix-installer-action/pull/58](https://github.com/DeterminateSystems/nix-installer-action/pull/58) - Support GitHub Enterprise Server using ARC by [@​grahamc](https://github.com/grahamc) in [https://github.com/DeterminateSystems/nix-installer-action/pull/59](https://github.com/DeterminateSystems/nix-installer-action/pull/59) **Full Changelog**: DeterminateSystems/nix-installer-action@v8...v9 ### [`v8`](https://github.com/DeterminateSystems/nix-installer-action/releases/tag/v8) [Compare Source](https://github.com/DeterminateSystems/nix-installer-action/compare/v7...v8) Enables KVM out of the box, for snappy NixOS VM tests. #### What's Changed - KVM support out of the box, plus a refreshed README by [@​grahamc](https://github.com/grahamc) in [https://github.com/DeterminateSystems/nix-installer-action/pull/56](https://github.com/DeterminateSystems/nix-installer-action/pull/56) **Full Changelog**: DeterminateSystems/nix-installer-action@v7...v8 ### [`v7`](https://github.com/DeterminateSystems/nix-installer-action/releases/tag/v7) [Compare Source](https://github.com/DeterminateSystems/nix-installer-action/compare/v6...v7) This release should reduce or eliminate `ETXTBSY` related errors by relying on the official Github Actions [tool cache](https://github.com/actions/toolkit/tree/master/packages/tool-cache). This tool cache includes retry support if a download request fails. On [Namespace Runners](https://cloud.namespace.so/docs/features/faster-github-actions) the action should correctly detect that `--init none` must be passed to the installer. #### What's Changed - .github: allow trigger ci manually by [@​colemickens](https://github.com/colemickens) in [https://github.com/DeterminateSystems/nix-installer-action/pull/45](https://github.com/DeterminateSystems/nix-installer-action/pull/45) - main.ts: fixup logic to ensure only one installer url override is set by [@​colemickens](https://github.com/colemickens) in [https://github.com/DeterminateSystems/nix-installer-action/pull/44](https://github.com/DeterminateSystems/nix-installer-action/pull/44) - Retry (w/ back-off) downloading the installer binary by [@​colemickens](https://github.com/colemickens) in [https://github.com/DeterminateSystems/nix-installer-action/pull/46](https://github.com/DeterminateSystems/nix-installer-action/pull/46) - Add check for dist folder by [@​Hoverbear](https://github.com/Hoverbear) in [https://github.com/DeterminateSystems/nix-installer-action/pull/48](https://github.com/DeterminateSystems/nix-installer-action/pull/48) - fix: end the FileStreamWriter for the installer file by [@​colemickens](https://github.com/colemickens) in [https://github.com/DeterminateSystems/nix-installer-action/pull/47](https://github.com/DeterminateSystems/nix-installer-action/pull/47) - eslint/tsconfig: validate no floating Promises, adjust tsconfig by [@​colemickens](https://github.com/colemickens) in [https://github.com/DeterminateSystems/nix-installer-action/pull/49](https://github.com/DeterminateSystems/nix-installer-action/pull/49) - Detect whether we're running in a Namespace runner, and if so, set `init: none` by [@​hugosantos](https://github.com/hugosantos) in [https://github.com/DeterminateSystems/nix-installer-action/pull/52](https://github.com/DeterminateSystems/nix-installer-action/pull/52) - Use Github Actions provided tool cache and exec by [@​Hoverbear](https://github.com/Hoverbear) in [https://github.com/DeterminateSystems/nix-installer-action/pull/53](https://github.com/DeterminateSystems/nix-installer-action/pull/53) #### New Contributors - [@​colemickens](https://github.com/colemickens) made their first contribution in [https://github.com/DeterminateSystems/nix-installer-action/pull/45](https://github.com/DeterminateSystems/nix-installer-action/pull/45) - [@​hugosantos](https://github.com/hugosantos) made their first contribution in [https://github.com/DeterminateSystems/nix-installer-action/pull/52](https://github.com/DeterminateSystems/nix-installer-action/pull/52) **Full Changelog**: DeterminateSystems/nix-installer-action@v6...v7 ### [`v6`](https://github.com/DeterminateSystems/nix-installer-action/releases/tag/v6) [Compare Source](https://github.com/DeterminateSystems/nix-installer-action/compare/v5...v6) Update to node20 #### What's Changed - Update the action to use node20 by [@​grahamc](https://github.com/grahamc) in [https://github.com/DeterminateSystems/nix-installer-action/pull/41](https://github.com/DeterminateSystems/nix-installer-action/pull/41) **Full Changelog**: DeterminateSystems/nix-installer-action@v5...v6 ### [`v5`](https://github.com/DeterminateSystems/nix-installer-action/releases/tag/v5) [Compare Source](https://github.com/DeterminateSystems/nix-installer-action/compare/v4...v5) Support for Act, and beta support for private Flakes on FlakeHub #### What's Changed - Update README.md to say v4 by [@​grahamc](https://github.com/grahamc) in [https://github.com/DeterminateSystems/nix-installer-action/pull/27](https://github.com/DeterminateSystems/nix-installer-action/pull/27) - Add act support by [@​Hoverbear](https://github.com/Hoverbear) in [https://github.com/DeterminateSystems/nix-installer-action/pull/30](https://github.com/DeterminateSystems/nix-installer-action/pull/30) - \--nix-build-user-base and --nix-build-user-prefix logic no longer confused by [@​Hoverbear](https://github.com/Hoverbear) in [https://github.com/DeterminateSystems/nix-installer-action/pull/32](https://github.com/DeterminateSystems/nix-installer-action/pull/32) - Fix specifying a custom planner by [@​Hoverbear](https://github.com/Hoverbear) in [https://github.com/DeterminateSystems/nix-installer-action/pull/35](https://github.com/DeterminateSystems/nix-installer-action/pull/35) - Typescript rewrite by [@​Hoverbear](https://github.com/Hoverbear) in [https://github.com/DeterminateSystems/nix-installer-action/pull/34](https://github.com/DeterminateSystems/nix-installer-action/pull/34) - Post run diagnostics by [@​grahamc](https://github.com/grahamc) in [https://github.com/DeterminateSystems/nix-installer-action/pull/39](https://github.com/DeterminateSystems/nix-installer-action/pull/39) - Support private flakes on FlakeHub by [@​grahamc](https://github.com/grahamc) in [https://github.com/DeterminateSystems/nix-installer-action/pull/38](https://github.com/DeterminateSystems/nix-installer-action/pull/38) **Full Changelog**: DeterminateSystems/nix-installer-action@v4...v5 ### [`v4`](https://github.com/DeterminateSystems/nix-installer-action/releases/tag/v4) [Compare Source](https://github.com/DeterminateSystems/nix-installer-action/compare/v3...v4) #### What's Changed - Update example in README to use v3 by [@​ajaxbits](https://github.com/ajaxbits) in [https://github.com/DeterminateSystems/nix-installer-action/pull/25](https://github.com/DeterminateSystems/nix-installer-action/pull/25) - Add a ?ci=github to GHA requests, to help us test GHA-specific fixes more quickly and perform more controlled roll-outs of new releases. [https://github.com/DeterminateSystems/nix-installer-action/pull/26](https://github.com/DeterminateSystems/nix-installer-action/pull/26) #### New Contributors - [@​ajaxbits](https://github.com/ajaxbits) made their first contribution in [https://github.com/DeterminateSystems/nix-installer-action/pull/25](https://github.com/DeterminateSystems/nix-installer-action/pull/25) **Full Changelog**: DeterminateSystems/nix-installer-action@v3...v4 ### [`v3`](https://github.com/DeterminateSystems/nix-installer-action/releases/tag/v3) [Compare Source](https://github.com/DeterminateSystems/nix-installer-action/compare/v2...v3) A minor release to address [https://github.com/DeterminateSystems/nix-installer-action/issues/21](https://github.com/DeterminateSystems/nix-installer-action/issues/21). #### What's Changed - v0.9.0 - nix profile location change by [@​Hoverbear](https://github.com/Hoverbear) in [https://github.com/DeterminateSystems/nix-installer-action/pull/22](https://github.com/DeterminateSystems/nix-installer-action/pull/22) - In GHA use Hello instead of fortune by [@​Hoverbear](https://github.com/Hoverbear) in [https://github.com/DeterminateSystems/nix-installer-action/pull/23](https://github.com/DeterminateSystems/nix-installer-action/pull/23) **Full Changelog**: DeterminateSystems/nix-installer-action@v2...v3 ### [`v2`](https://github.com/DeterminateSystems/nix-installer-action/releases/tag/v2) [Compare Source](https://github.com/DeterminateSystems/nix-installer-action/compare/v1...v2) #### What's Changed - Add missing setting to README table by [@​lucperkins](https://github.com/lucperkins) in [https://github.com/DeterminateSystems/nix-installer-action/pull/14](https://github.com/DeterminateSystems/nix-installer-action/pull/14) - README: use tagged release by [@​cole-h](https://github.com/cole-h) in [https://github.com/DeterminateSystems/nix-installer-action/pull/17](https://github.com/DeterminateSystems/nix-installer-action/pull/17) - add option to change diagnostic endpoint by [@​Mic92](https://github.com/Mic92) in [https://github.com/DeterminateSystems/nix-installer-action/pull/16](https://github.com/DeterminateSystems/nix-installer-action/pull/16) - Reflect removal of channels in upcoming version by [@​cole-h](https://github.com/cole-h) in [https://github.com/DeterminateSystems/nix-installer-action/pull/18](https://github.com/DeterminateSystems/nix-installer-action/pull/18) - Reflect v0.6.0 changes by [@​Hoverbear](https://github.com/Hoverbear) in [https://github.com/DeterminateSystems/nix-installer-action/pull/19](https://github.com/DeterminateSystems/nix-installer-action/pull/19) #### New Contributors - [@​Mic92](https://github.com/Mic92) made their first contribution in [https://github.com/DeterminateSystems/nix-installer-action/pull/16](https://github.com/DeterminateSystems/nix-installer-action/pull/16) **Full Changelog**: DeterminateSystems/nix-installer-action@v1...v2 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View the [repository job log](https://developer.mend.io/github/dc-tec/nixvim). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40NDAuNyIsInVwZGF0ZWRJblZlciI6IjM3LjQ0MC43IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZSJdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Description
We have a failure on a repo where
Error: spawn ETXTBSY
was observed after #46 was merged.Taking a closer look, we should be
close()
-ing the WritableStream, and thenend()
ing the FileStreamWriter.ref:
WritableStream
:close()
: https://nodejs.org/api/webstreams.html#writablestreamcloseFileStreamWriter
:end()
: https://nodejs.org/api/stream.html#writableendchunk-encoding-callbackChecklist