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

Merge changes in to support parsing bash scripts #737

Merged
merged 46 commits into from
Feb 10, 2025

Conversation

BolunThompson
Copy link
Contributor

Code written by @sethsabar. The tests pass with the changes from binpash/shasta#5 and binpash/libbash#1 (CI will fail until those are merged in).

Signed-off-by: Bolun Thompson <[email protected]>
Signed-off-by: Bolun Thompson <[email protected]>
Signed-off-by: Bolun Thompson <[email protected]>
The bash tests contain scripts which use UTF-8 only characters,
but, by default, Python throws an exception when writing non-ASCII
characters to a file.

Signed-off-by: Bolun Thompson <[email protected]>
Signed-off-by: Bolun Thompson <[email protected]>
Signed-off-by: Bolun Thompson <[email protected]>
Signed-off-by: Bolun Thompson <[email protected]>
Copy link

OS:ubuntu-20.04
Mon Jan 27 05:57:38 UTC 2025
intro: 2/3 tests passed.
interface: 202/202 tests passed.
compiler: 100/100 tests passed.
hello-world-bash.sh are not identical

Copy link

github-actions bot commented Feb 4, 2025

OS:ubuntu-20.04
Tue Feb 4 05:25:10 UTC 2025
intro: 2/3 tests passed.
interface: 202/202 tests passed.
compiler: 100/100 tests passed.
hello-world-bash.sh are not identical

@angelhof
Copy link
Member

angelhof commented Feb 5, 2025

Is the failing test case an expected bug? Can I help debug this somehow? If this is the only thing left let's try to clean it up and merge :)

@BolunThompson
Copy link
Contributor Author

BolunThompson commented Feb 6, 2025 via email

@angelhof
Copy link
Member

angelhof commented Feb 6, 2025

Hmmm, I merged the PR that updates Ubuntu to 24 to future. Could you make another commit to retrigger the tests on the new future? If that doesn't work we can follow up and see what is the issue.

Copy link

github-actions bot commented Feb 6, 2025

OS:ubuntu-20.04
Thu Feb 6 02:13:00 UTC 2025
intro: 2/3 tests passed.
interface: 202/202 tests passed.
compiler: 100/100 tests passed.
hello-world-bash.sh are not identical

@angelhof
Copy link
Member

angelhof commented Feb 6, 2025

I merged binpash/annotations#22 so once we bump versions here in theory things should be OK?

Copy link

github-actions bot commented Feb 8, 2025

OS:ubuntu-20.04
Sat Feb 8 01:22:39 UTC 2025
intro: 2/3 tests passed.
interface: 202/202 tests passed.
compiler: 100/100 tests passed.
hello-world-bash.sh are not identical

Copy link

github-actions bot commented Feb 8, 2025

OS:ubuntu-24.04
Sat Feb 8 01:23:17 UTC 2025
intro: 2/3 tests passed.
interface: 202/202 tests passed.
compiler: 100/100 tests passed.
hello-world-bash.sh are not identical

@angelhof
Copy link
Member

angelhof commented Feb 8, 2025

  • I pushed a new commit to future to fix a deprecated github action (tight-loop test failure).
  • There also seems to be another syntax warning ("/home/runner/work/pash/pash/compiler/dspash/ir_helper.py:82: SyntaxWarning: invalid escape sequence '\ '")
  • The hello bash output seems to be different for pash and bash:
Running hello-world-bash.sh...hello-world-bash:23.696
1.286
1c1
< 4176
---
> 5971257

It is totally unclear to me why :(

@BolunThompson
Copy link
Contributor Author

BolunThompson commented Feb 8, 2025 via email

@BolunThompson
Copy link
Contributor Author

BolunThompson commented Feb 8, 2025 via email

@BolunThompson
Copy link
Contributor Author

This just ended up being an environment issue — I’d fixed the bug locally in binpash/sh-expand#11 and forgot to make a new release.

Copy link

github-actions bot commented Feb 9, 2025

OS:ubuntu-24.04
Sun Feb 9 20:33:12 UTC 2025
intro: 2/3 tests passed.
interface: 202/202 tests passed.
compiler: 100/100 tests passed.
hello-world-bash.sh are not identical

Copy link

github-actions bot commented Feb 9, 2025

OS:ubuntu-20.04
Sun Feb 9 20:34:04 UTC 2025
intro: 2/3 tests passed.
interface: 202/202 tests passed.
compiler: 100/100 tests passed.
hello-world-bash.sh are not identical

@BolunThompson
Copy link
Contributor Author

The posix correctness tests fail because of the old actions/upload-artifact version, but even after a version increment they fail because the antikythera.csail.mit.edu isn’t online anymore.

(Separately, this action always succeeds because the exit code isn’t captured, so if/when the server comes back online I could add that).

Copy link

github-actions bot commented Feb 9, 2025

OS:ubuntu-20.04
Sun Feb 9 20:35:33 UTC 2025
intro: 2/3 tests passed.
interface: 202/202 tests passed.
compiler: 100/100 tests passed.
hello-world-bash.sh are not identical

Copy link

github-actions bot commented Feb 9, 2025

OS:ubuntu-24.04
Sun Feb 9 20:36:35 UTC 2025
intro: 2/3 tests passed.
interface: 202/202 tests passed.
compiler: 100/100 tests passed.
hello-world-bash.sh are not identical

Copy link

github-actions bot commented Feb 9, 2025

OS:ubuntu-20.04
Sun Feb 9 20:48:54 UTC 2025
intro: 2/3 tests passed.
interface: 202/202 tests passed.
compiler: 100/100 tests passed.
hello-world-bash.sh are not identical

Copy link

github-actions bot commented Feb 9, 2025

OS:ubuntu-24.04
Sun Feb 9 20:49:14 UTC 2025
intro: 2/3 tests passed.
interface: 202/202 tests passed.
compiler: 100/100 tests passed.
hello-world-bash.sh are not identical

Copy link

OS:ubuntu-20.04
Mon Feb 10 00:16:10 UTC 2025
intro: 2/3 tests passed.
interface: 202/202 tests passed.
compiler: 100/100 tests passed.
hello-world-bash.sh are not identical

Copy link

OS:ubuntu-24.04
Mon Feb 10 00:31:47 UTC 2025
intro: 3/3 tests passed.
interface: 202/202 tests passed.
compiler: 100/100 tests passed.

Copy link

OS:ubuntu-20.04
Mon Feb 10 00:32:32 UTC 2025
intro: 3/3 tests passed.
interface: 202/202 tests passed.
compiler: 100/100 tests passed.

@angelhof
Copy link
Member

The posix correctness tests fail because of the old actions/upload-artifact version, but even after a version increment they fail because the antikythera.csail.mit.edu isn’t online anymore.

(Separately, this action always succeeds because the exit code isn’t captured, so if/when the server comes back online I could add that).

@BolunThompson this machine has been down for a long time, and we used to get a report to assess the results (not all tests pass, but a number of them). I don't think it will get back up soon...

@angelhof angelhof merged commit 723cd26 into binpash:future Feb 10, 2025
11 of 15 checks passed
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