objectionary / eo2js

EOLANG to JavaScript transpiler and runtime
https://www.npmjs.com/package/eo2js
MIT License
7 stars 3 forks source link

fix(#100): update `eo2js` up to EO `0.40.0` #108

Closed maxonfjvipon closed 3 weeks ago

maxonfjvipon commented 3 weeks ago

Closes: #100


PR-Codex overview

This PR focuses on refactoring the codebase by renaming objects and functions related to float to number, updating dependencies, and improving type handling. It also includes various enhancements and new implementations in the runtime.

Detailed summary

The following files were skipped due to too many changes: eo2js-runtime/src/objects/org/eolang/fs/dir$tmpfile$touch.js, eo2js-runtime/test/objects/org/eolang/cage.test.js, eo2js-runtime/test/runtime/package.test.js, eo2js-runtime/src/objects/org/eolang/txt/sscanf.js, eo2js-runtime/src/runtime/data.js, eo2js-runtime/test/runtime/dataized.test.js, eo2js-runtime/src/objects/org/eolang/txt/sprintf.js, eo2js-runtime/test/runtime/bytes-of.test.js, eo2js-runtime/src/runtime/bytes-of.js

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

maxonfjvipon commented 3 weeks ago

@rultor merge

rultor commented 3 weeks ago

@rultor merge

@maxonfjvipon OK, I'll try to merge now. You can check the progress of the merge here.

rultor commented 3 weeks ago

@rultor merge

@maxonfjvipon Oops, I failed. You can see the full log here (spent 2min).

f54a037c8dc8: Download complete
4f4fb700ef54: Verifying Checksum
4f4fb700ef54: Download complete
4ce000a43472: Verifying Checksum
4ce000a43472: Download complete
da8216c0dd06: Verifying Checksum
da8216c0dd06: Download complete
0ff5d9fcf635: Verifying Checksum
0ff5d9fcf635: Download complete
acbaa7315f5b: Verifying Checksum
acbaa7315f5b: Download complete
13dd1650f60a: Verifying Checksum
13dd1650f60a: Download complete
d6aac2ea2bd9: Verifying Checksum
d6aac2ea2bd9: Download complete
7d38661ea009: Verifying Checksum
7d38661ea009: Download complete
e98cef93af44: Verifying Checksum
e98cef93af44: Download complete
4ce000a43472: Pull complete
4f4fb700ef54: Pull complete
f54a037c8dc8: Pull complete
bd3ed0a1a598: Verifying Checksum
bd3ed0a1a598: Download complete
da8216c0dd06: Pull complete
65583388656e: Verifying Checksum
65583388656e: Download complete
0ff5d9fcf635: Pull complete
acbaa7315f5b: Pull complete
d6aac2ea2bd9: Pull complete
13dd1650f60a: Pull complete
bd3ed0a1a598: Pull complete
7d38661ea009: Pull complete
65583388656e: Pull complete
e98cef93af44: Pull complete
Digest: sha256:3daa15d5ff13e2ccb4684359969c61068fa7fd74fbe29eac4259ecf1232efbc9
Status: Downloaded newer image for maxonfjvipon/rultor-image-js:0.0.1
docker.io/maxonfjvipon/rultor-image-js:0.0.1
+ docker ps --filter=status=exited
+ grep --quiet '\sobjectionary_eo2js_108\s*$'
+ ls -al .
total 64
drwx------  3 ubuntu ubuntu  4096 Oct 29 22:11 .
drwxrwxrwt 12 root   root    4096 Oct 29 22:11 ..
-rwxrwxr-x  1 ubuntu ubuntu  2090 Oct 29 22:12 end.sh
-rwxrwxr-x  1 ubuntu ubuntu   490 Oct 29 22:11 entry.sh
-rw-rw-r--  1 ubuntu ubuntu    74 Oct 29 22:11 npmrc
-rw-rw-r--  1 ubuntu ubuntu     5 Oct 29 22:11 pid
drwxrwxr-x  6 ubuntu ubuntu  4096 Oct 29 22:11 repo
-rwxrwxr-x  1 ubuntu ubuntu  9544 Oct 29 22:11 run.sh
-rw-rw-r--  1 ubuntu ubuntu   731 Oct 29 22:11 script.sh
-rw-rw-r--  1 ubuntu ubuntu 20271 Oct 29 22:12 stdout
++ pwd
++ pwd
+ docker run -t --rm -v /tmp/rultor-1RwZ:/main --env=head=git@github.com:objectionary/eo2js.git --env=pull_id=108 --env=fork=git@github.com:objectionary/eo2js.git --env=fork_branch=fix/#100/update-eo2js-up-to-eo --env=head_branch=master '--env=pull_title=fix(#100): update `eo2js` up to EO `0.40.0`' --env=author=maxonfjvipon '--env=scripts=( '\''export '\''\'\'''\''head=git@github.com:objectionary/eo2js.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''pull_id=108'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''fork=git@github.com:objectionary/eo2js.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''fork_branch=fix/#100/update-eo2js-up-to-eo'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''head_branch=master'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''pull_title=fix(#100): update `eo2js` up to EO `0.40.0`'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''author=maxonfjvipon'\''\'\'''\'''\'' '\'';'\'' '\''pip install git+https://chromium.googlesource.com/external/gyp'\'' '\'';'\'' '\''npm install --no-color'\'' '\'';'\'' '\''sudo npm install --no-color --global grunt-cli'\'' '\'';'\'' '\''npm uninstall --no-color grunt-cli'\'' '\'';'\'' '\''npm install --no-color mocha'\'' '\'';'\'' '\''pdd -f /dev/null -v'\'' '\'';'\'' '\''npm test'\'' '\'';'\'' )' --hostname=docker --privileged --net=host --memory=8g --memory-swap=16g --oom-kill-disable --cidfile=/tmp/rultor-1RwZ/cid -w=/main -v /var/run/docker.sock:/var/run/docker.sock --name=objectionary_eo2js_108 maxonfjvipon/rultor-image-js:0.0.1 /main/entry.sh
WARNING: Your kernel does not support OomKillDisable. OomKillDisable discarded.
WARNING: The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64/v3) and no specific platform was requested
exec /bin/bash: exec format error
container 0c0fbf6067a29ab5973ca05ed84848541844dfcb1ec836dcf2f21d1d97fab127 is dead
Tue Oct 29 22:13:26 UTC 2024
maxonfjvipon commented 3 weeks ago

@rultor merge

rultor commented 3 weeks ago

@rultor merge

@maxonfjvipon OK, I'll try to merge now. You can check the progress of the merge here.

rultor commented 3 weeks ago

@rultor merge

@maxonfjvipon Oops, I failed. You can see the full log here (spent 23min).

  ✔ test "tuple_with" should work (39ms)
  ✔ test "throws_on_wrong_tuple_at" should work
  ✔ test "tuple_fluent_with" should work
  ✔ test "tuple_fluent_with_indented" should work (94ms)
  ✔ test "gets_lengths_of_empty_tuple" should work
  ✔ test "gets_lengths_of_empty_tuple_without_additional_obj" should work
  ✔ test "creates_empty_tuple_with_number" should work
  ✔ test "at_fast_with_first_element" should work
  ✔ test "at_fast_with_last_element" should work
  ✔ test "tuple_empty_fluent_with_indented_keyword" should work
  ✔ test "tuple_with_negative_index_gets_last" should work
  ✔ test "tuple_with_negative_index_gets_first" should work
  ✔ test "throws_on_out_of_tuple_bounds_with_negative_index" should work
  ✔ test "while_dataizes_only_first_cycle" should work (38ms)
  ✔ test "simple_while_with_false_first" should work
  ✔ test "simple_bool_expression_via_malloc_in_while" should work (69ms)
  ✔ test "last_while_dataization_object" should work (141ms)
  ✔ test "last_while_dataization_object_with_false_condition" should work
  ✔ test "while_simple_iteration" should work (535ms)
  ✔ test "iterating_tuple_with_while_using_internal_iterator" should work (710ms)
  ✔ test "iterating_tuple_with_while_using_external_iterator" should work (533ms)
  ✔ test "iterating_tuple_with_while_without_body_multiple" should work (564ms)
  ✔ test "iterating_tuple_with_while_without_body_single" should work (94ms)

  520 passing (27s)

  \u001b[32m  ✓\u001b[0m\u001b[90m should execute all eo-runtime tests\u001b[0m\u001b[31m (608886ms)\u001b[0m

\u001b[0m  integration test\u001b[0m
Recompiling stylesheets...
Recompiled 0 stylesheets
npm WARN deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm WARN deprecated glob@8.1.0: Glob versions prior to v9 are no longer supported
  \u001b[31m  1) should execute simple unit test\u001b[0m
  \u001b[31m  2) should dataize simple program\u001b[0m

\u001b[92m \u001b[0m\u001b[32m 15 passing\u001b[0m\u001b[90m (16m)\u001b[0m
\u001b[31m  2 failing\u001b[0m

\u001b[0m  1) integration test
       should execute simple unit test:
\u001b[0m\u001b[31m     Error: Timeout of 100000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/r/repo/eo2js/test/it/simple.test.js)\u001b[0m\u001b[90m
      at Context.<anonymous> (test/it/simple.test.js:31:5)
      at process.processImmediate (node:internal/timers:476:21)
\u001b[0m
\u001b[0m  2) integration test
       should dataize simple program:
\u001b[0m\u001b[31m     Error: Timeout of 100000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/r/repo/eo2js/test/it/simple.test.js)\u001b[0m\u001b[90m
      at Context.<anonymous> (test/it/simple.test.js:36:5)
      at process.processImmediate (node:internal/timers:476:21)
\u001b[0m

\u001b[33mWarning: \u0007 Use --force to continue.\u001b[39m

\u001b[31mAborted due to warnings.\u001b[39m
container c5662cdcdfd92ed5ff660be21aaf2914dd7ce4ed51db90672fa640d1ff12cf9d is dead
Wed Oct 30 10:32:54 UTC 2024
maxonfjvipon commented 3 weeks ago

@rultor merge

rultor commented 3 weeks ago

@rultor merge

@maxonfjvipon OK, I'll try to merge now. You can check the progress of the merge here.

rultor commented 3 weeks ago

@rultor merge

@maxonfjvipon Done! FYI, the full log is here (took me 23min).