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

Various runtime fixes #1825

Merged
merged 6 commits into from
Feb 3, 2025
Merged

Various runtime fixes #1825

merged 6 commits into from
Feb 3, 2025

Conversation

vouillon
Copy link
Member

@vouillon vouillon commented Feb 3, 2025

@hhugo I'm a bit worried of making large changes right before a release. So, if you are unsure of some of the changes, I can just omit them.

@smorimoto smorimoto requested a review from Copilot February 3, 2025 13:40
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 5 out of 9 changed files in this pull request and generated 1 comment.

Files not reviewed (4)
  • compiler/tests-io/dune: Language not supported
  • compiler/tests-io/non_ascii_filenames.expected: Language not supported
  • compiler/tests-io/non_ascii_filenames.ml: Language not supported
  • runtime/js/unix.js: Evaluated as low risk
Comments suppressed due to low confidence (4)

runtime/js/fs.js:216

  • [nitpick] Ensure the new error message 'ENOTDIR: not a directory, chdir' is clear and helpful.
caml_raise_sys_error("ENOTDIR: not a directory, chdir '" + caml_jsstring_of_string(dir) + "'");

runtime/js/fs.js:209

  • Ensure the new behavior introduced in caml_sys_chdir is covered by tests.
if (root.device.is_dir(root.rest)) {

runtime/js/io.js:93

  • The removal of the compatibility check for Open_rdonly and Open_wronly flags may lead to unclear error states if these checks are not handled elsewhere in the codebase.
if (f.rdonly && f.wronly)

runtime/js/io.js:96

  • The removal of the compatibility check for Open_text and Open_binary flags may lead to unclear error states if these checks are not handled elsewhere in the codebase.
if (f.text && f.binary)

runtime/js/sys.js Show resolved Hide resolved
@hhugo hhugo added this to the 6.0 milestone Feb 3, 2025
@hhugo
Copy link
Member

hhugo commented Feb 3, 2025

I'm a bit worried of making large changes right before a release

I don't mind minor releases if something break.

Can you update CHANGES.md ?

In particular:
- I'm not sure inconsistent flags when opening a file should result in a
  failure
- I suspect fs.writeSync does not always write everything
- Unix.getuid should not fail
- The target of Unix.symlink is just some arbitrary text
@hhugo hhugo merged commit ad605a8 into master Feb 3, 2025
30 checks passed
@hhugo hhugo deleted the sys-fixes branch February 3, 2025 17:34
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