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

Open
wants to merge 45 commits into
base: future
Choose a base branch
from

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 <bolunthompson@ucla.edu>
Signed-off-by: Bolun Thompson <bolunthompson@ucla.edu>
Signed-off-by: Bolun Thompson <bolunthompson@ucla.edu>
Signed-off-by: Bolun Thompson <bolunthompson@ucla.edu>
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 <bolunthompson@ucla.edu>
Signed-off-by: Bolun Thompson <bolunthompson@ucla.edu>
Signed-off-by: Bolun Thompson <bolunthompson@ucla.edu>
Signed-off-by: Bolun Thompson <bolunthompson@ucla.edu>
Signed-off-by: Bolun Thompson <bolunthompson@ucla.edu>
Copy link

OS =
CPU =
Ram =
Hash = e097512
Kernel=
||
|-|-|-|-|-|-|-|-|-|

Copy link

OS =
CPU =
Ram =
Hash = e951405
Kernel=
||
|-|-|-|-|-|-|-|-|-|

Copy link

OS =
CPU =
Ram =
Hash = b3079df
Kernel=
||
|-|-|-|-|-|-|-|-|-|

Signed-off-by: Bolun Thompson <bolunthompson@ucla.edu>
Copy link

OS =
CPU =
Ram =
Hash = c6dbe32
Kernel=
||
|-|-|-|-|-|-|-|-|-|

@BolunThompson
Copy link
Contributor Author

I wrote some basic documentation — is this good or should I elaborate on some part?

Copy link

OS:ubuntu-20.04
Mon Jan 27 04:59:40 UTC 2025
intro: 2/2 tests passed.
interface: 202/202 tests passed.
compiler: 100/100 tests passed.

Copy link

OS:ubuntu-20.04
Mon Jan 27 05:02:46 UTC 2025
intro: 2/2 tests passed.
interface: 202/202 tests passed.
compiler: 100/100 tests passed.

Copy link

OS:ubuntu-20.04
Mon Jan 27 05:04:18 UTC 2025
intro: 2/2 tests passed.
interface: 202/202 tests passed.
compiler: 100/100 tests passed.

Copy link

OS:ubuntu-20.04
Mon Jan 27 05:07:15 UTC 2025
intro: 2/2 tests passed.
interface: 202/202 tests passed.
compiler: 100/100 tests passed.

Signed-off-by: Bolun Thompson <bolunthompson@ucla.edu>
Copy link

OS =
CPU =
Ram =
Hash = 16bf931
Kernel=
||
|-|-|-|-|-|-|-|-|-|

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

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