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

Fix warnings and CI failure #110

Merged
merged 5 commits into from
Jul 10, 2022
Merged

Fix warnings and CI failure #110

merged 5 commits into from
Jul 10, 2022

Conversation

MisterDA
Copy link
Contributor

@MisterDA MisterDA commented Jul 8, 2022

Bumping to Dune 3.3 enables warnings 67 (unused functor parameter) and 69 (record field is never read), which I tried fixing.
If only the obuilder-spec package is build, then Dune tries to build the stress.exe executable which requires the obuidler library. Use a workaround to attach stress.exe to the obuilder package.

    File "lib/db_store.ml", line 9, characters 4-27:
    9 |     cancelled : unit Lwt.t;
            ^^^^^^^^^^^^^^^^^^^^^^^
    Error (warning 69 [unused-field]): record field cancelled is never read.
    (However, this field is used to build or mutate values.)
@MisterDA MisterDA requested a review from talex5 July 8, 2022 12:11
test/mock_sandbox.ml Outdated Show resolved Hide resolved
stress/dune Show resolved Hide resolved
ocaml-ci executes this if only obuilder-spec can be build:

    opam exec -- dune build --only-packages=obuilder-spec @install @check @runtest && rm -rf _build

Dune would try to build stress.exe as part of the obuider-spec package
@check alias. However, stress links with the obuilder library and such
is part of the obuilder package. The easiest way to express it is to
make it a no-op test of the obuilder package, so that it is not build
with obuilder-spec.
@MisterDA
Copy link
Contributor Author

MisterDA commented Jul 8, 2022

Applied your suggestions, thanks.

@talex5 talex5 merged commit 3a032dc into ocurrent:master Jul 10, 2022
@talex5
Copy link
Contributor

talex5 commented Jul 10, 2022

Thanks!

@MisterDA MisterDA deleted the fixes branch July 10, 2022 11:38
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)
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