Skip to content

Fix incorrect checksum for simple_httpd.1.0 (old version)#30123

Open
craff wants to merge 3 commits into
ocaml:masterfrom
craff:master
Open

Fix incorrect checksum for simple_httpd.1.0 (old version)#30123
craff wants to merge 3 commits into
ocaml:masterfrom
craff:master

Conversation

@craff

@craff craff commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@hannesm

hannesm commented Jun 23, 2026

Copy link
Copy Markdown
Member

this violates https://github.com/ocaml/opam-repository/tree/master/governance/policies#11-changes-to-a-packages-source-archive-are-prohibited-including-patches-and-other-ways-to-modify-the-source

also this PR consists of both a new release (1.1) and updates to the checksum of 1.0. maybe just do a 1.1 release and let the old release 1.0 be as is (or mark as unavailable, since it doesn't seem to be in the archives) so clients will choose 1.1

mseri and others added 3 commits June 23, 2026 13:42
Contains a brittle test on json generation that fails all the time, unnecessarily polluting the CI output

```
 File "test/pbt/dune", line 3, characters 43-58:
 3 |    test_json_stream_sizes test_classifiers test_sub_string
                                                ^^^^^^^^^^^^^^^
 (cd _build/default/test/pbt && ./test_sub_string.exe)
 Fatal error: exception File "test/pbt/test_sub_string.ml", line 35, characters 2-8: Assertion failed
 (cd _build/default/test/pbt && ./test_json_stream_sizes.exe)
 blitting with a lot of string boundaries: PASS

 string-seq with a lot of string boundaries: PASS

 File "test/pbt/dune", line 4, characters 3-27:
 4 |    json_roundtrip_in_binary)
        ^^^^^^^^^^^^^^^^^^^^^^^^
 (cd _build/default/test/pbt && ./json_roundtrip_in_binary.exe)
 json_json_roundtrip: FAIL

 When given the input:

     <float>

 the test threw an exception:

     File "test/pbt/json_roundtrip_in_binary.ml", line 92, characters 2-8: Assertion failed
     Raised at Dune__exe__Json_roundtrip_in_binary.test_json in file "test/pbt/json_roundtrip_in_binary.ml", line 92, characters 2-17
     Called from Crowbar.gen_apply.go.(fun) in file "src/crowbar.ml", line 352, characters 16-19

 json_binary(bson)_roundtrip: FAIL
```
or
```
File "test/pbt/dune", lines 83-87, characters 0-111:
 83 | (rule
 84 |  (alias runtest)
 85 |  (package data-encoding)
 86 |  (action
 87 |   (run node %{dep:./json_roundtrip_in_binary.bc.js})))
 (cd _build/default/test/pbt && /usr/bin/node json_roundtrip_in_binary.bc.js)
 json_json_roundtrip: FAIL

 When given the input:

     <float>

 the test threw an exception:

     File "test/pbt/json_roundtrip_in_binary.ml", line 92, characters 2-8: Assertion failed

 json_binary(bson)_roundtrip: FAIL

 When given the input:

     <float>

 the test threw an exception:

     File "test/pbt/json_roundtrip_in_binary.ml", line 116, characters 28-34: Assertion failed
```
depending on the version.

See e.g. https://opam.ci.ocaml.org/github/ocaml/opam-repository/commit/72f51de94a07b75e147fd7a49002aebddd7c8ca8
Signed-off-by: Marcello Seri <marcello.seri@gmail.com>
@craff

craff commented Jun 23, 2026

Copy link
Copy Markdown
Contributor Author

I removed 1.1, this was a manipulation error.

@craff

craff commented Jun 23, 2026

Copy link
Copy Markdown
Contributor Author

Also I did not change the archive, I think the checksum was always wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants