Skip to content

ocamltest: do not compare binaries produced by ocamlopt.opt and ocamlopt.byte#9677

Merged
nojb merged 4 commits intoocaml:trunkfrom
nojb:ocamltest_do_not_compare_native_binaries
Jun 23, 2020
Merged

ocamltest: do not compare binaries produced by ocamlopt.opt and ocamlopt.byte#9677
nojb merged 4 commits intoocaml:trunkfrom
nojb:ocamltest_do_not_compare_native_binaries

Conversation

@nojb
Copy link
Copy Markdown
Contributor

@nojb nojb commented Jun 14, 2020

The mismatch of binaries produced by ocamlopt.byte and ocamlopt.opt has been a source of failures in ocamltest for a while. These failures are not so easy to investigate and take up valuable developer time. Moreover, the consensus is that it is not really a bug if these binaries differ, as there are multiple reasons for this, including sharing of data structures (see #8853) and dependency on the system toolchain (see #9469).

As suggested by @xavierleroy, this PR disables the comparison of the binaries generated by ocamlopt.byte and ocamlopt.opt in all cases.

I renamed the ocamltest action compare-native-programs into compare-binary-files instead of removing it altogether, as it is still used by one test (reproducibility/cmis_on_file_system.ml).

@nojb nojb force-pushed the ocamltest_do_not_compare_native_binaries branch 2 times, most recently from d7a3e96 to d76571a Compare June 14, 2020 18:40
@nojb nojb force-pushed the ocamltest_do_not_compare_native_binaries branch from d76571a to 005b784 Compare June 14, 2020 18:41
@nojb
Copy link
Copy Markdown
Contributor Author

nojb commented Jun 14, 2020

cc @shindere

Copy link
Copy Markdown
Member

@gasche gasche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe the implementation is correct, and it simplifies the source. I will wait for a couple day and merge if there are no more comments.

@shindere
Copy link
Copy Markdown
Contributor

shindere commented Jun 23, 2020 via email

Copy link
Copy Markdown
Contributor

@shindere shindere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks and sorry about the delay!

@nojb
Copy link
Copy Markdown
Contributor Author

nojb commented Jun 23, 2020

LGTM, thanks and sorry about the delay!

Thanks! Do you think this needs a Changes entry?

@shindere
Copy link
Copy Markdown
Contributor

shindere commented Jun 23, 2020 via email

@nojb nojb merged commit bd510cd into ocaml:trunk Jun 23, 2020
@nojb nojb deleted the ocamltest_do_not_compare_native_binaries branch June 23, 2020 15:36
@nojb
Copy link
Copy Markdown
Contributor Author

nojb commented Jun 23, 2020

Thanks, merged!

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