Skip to content

Conversation

@MisterDA
Copy link
Contributor

@MisterDA MisterDA commented Nov 2, 2022

Porting tests require changing the root from / to C:/, the default shell to cmd /S /C, and mocking commands without sudo.
The store result need access to Docker, so as it requires an asynchronous call it has to be wrapped in a Lwt promise.
The log file has to be moved to a static location because of #118. There is still one test that fails, but it is difficult to debug.
Running tests has revealed that they might hang if an error occurs, and they won't necessarily reveal the error. Adding a fixed timeout of 10s helps by not letting the CI run for hours.

Checking the result for the Docker backend requires asynchronous calls
to Docker.
With the Docker backend on Windows, it's easier to store logs in a
location where they're not moved, as a directory cannot be renamed if
it contains open file descriptors.

For the btrfs and zfs backends, the original location is retained.
@MisterDA MisterDA force-pushed the windows-prereqs-tests branch from 95c70ad to 9d54b0c Compare November 2, 2022 15:53
@MisterDA MisterDA force-pushed the windows-prereqs-tests branch 2 times, most recently from ed2eecc to fe61b76 Compare November 7, 2022 09:20
@MisterDA MisterDA force-pushed the windows-prereqs-tests branch from 5b3c9b4 to e841030 Compare November 7, 2022 09:43
@tmcgilchrist tmcgilchrist merged commit c500713 into ocurrent:master Nov 7, 2022
tmcgilchrist added a commit to tmcgilchrist/opam-repository that referenced this pull request Nov 7, 2022
CHANGES:

- Add --fuse-path to allow selection of the path redirected by FUSE (@mtelvers ocurrent/obuilder#128, reviewed by @MisterDA )
- Pre-requisites for Windows support using docker for Windows (@MisterDA ocurrent/obuilder#116, reviewed by @tmcgilchrist)
- Additional tests and prerequistes for Windows support (@MisterDA ocurrent/obuilder#130, reviewed by @tmcgilchrist)
- Add support for Docker/Windows spec (@MisterDA ocurrent/obuilder#117, reviewed by @tmcgilchrist)
- Depend on Lwt.5.6.1 for bugfixes (@MisterDA ocurrent/obuilder#108, reviewed by @tmcgilchrist)

- Add macOS support (@patricoferris ocurrent/obuilder#87, reviewed by @tmcgilchrist @talex5 @kit-ty-kate)
- Enable macOS tests only on macOS (@MisterDA ocurrent/obuilder#126, reviewed by @tmcgilchrist)
- Dune 3.0 generates empty intf for executables (@MisterDA ocurrent/obuilder#111, reviewed by @talex5)
- Fix warnings and CI failure (@MisterDA ocurrent/obuilder#110, reviewed by @talex5)

- Expose store root and cmdliner term with non-required store (@MisterDA ocurrent/obuilder#119, reviewed by @tmcgilchrist)
- Expose Rsync_store module (@MisterDA ocurrent/obuilder#114, reviewed by @talex5)
- Rsync hard-links to save space (@art-w ocurrent/obuilder#102, reviewed by @patricoferris)
@MisterDA MisterDA deleted the windows-prereqs-tests branch March 16, 2023 09:51
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.

2 participants