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

Add basic tests that are run on PR/main #228

Merged
merged 42 commits into from
Nov 2, 2023
Merged

Add basic tests that are run on PR/main #228

merged 42 commits into from
Nov 2, 2023

Conversation

cpacker
Copy link
Collaborator

@cpacker cpacker commented Oct 31, 2023

No description provided.

@cpacker cpacker marked this pull request as draft October 31, 2023 22:19
print("(pre-enter) DEBUG AFTER:", child.after)
try:
# child.expect(["Try again!", pexpect.EOF])
child.expect("Try again!")
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@vivi this is where the first fail happens on ubuntu, gets an EOF

time.sleep(1.0) # Wait for a short while to let output be captured
# child.sendline()
# child.sendline()
sys.stdout.flush()
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

even added a flush

@cpacker cpacker changed the title Add basic tests that are run on PR/main [Draft] Add basic tests that are run on PR/main Nov 1, 2023
@vivi vivi marked this pull request as ready for review November 1, 2023 23:58
@vivi vivi changed the title [Draft] Add basic tests that are run on PR/main Add basic tests that are run on PR/main Nov 1, 2023
@cpacker cpacker merged commit 2709132 into main Nov 2, 2023
@cpacker cpacker deleted the basic-tests branch November 2, 2023 00:01
mattzh72 pushed a commit that referenced this pull request Oct 9, 2024
* make tests dummy to make sure github workflow is fine

* black test

* strip circular import

* further dummy-fy the test

* use pexpect

* need y

* Update tests.yml

* Update tests.yml

* added prints

* sleep before decode print

* updated test to match legacy flow

* revising test where it fails

* comment out enter your message check for now, pexpect seems to be stuck on only setting the bootup message

* weird now it's not showing Bootup sequence complete?

* added debug

* handle none

* allow more time

* loosen string check

* add enter after commands

* modify saved compontent snippet

* add try again check

* more sendlines

* more excepts

* test passing locally

* Update tests.yml

* dont clearline

* add EOF catch that seems to only happen on github actiosn (ubuntu) but not macos

* more eof

* try flushing

* add strip_ui flag

* fix archival_memory_search and memory print output

* Don't use questionary for input if strip_ui

* Run black

* Always strip UI if TEST is set

* Add another flush

* expect Enter your message

* more debug prints

* one more shot at printing debug info

* stray fore color in stripped ui

* tests pass locally

* cleanup

---------

Co-authored-by: Vivian Fang <hi@vivi.sh>
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.

2 participants