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

move crypto provider installer to be called once #1426

Merged
merged 5 commits into from
Sep 27, 2024

Conversation

Oscar-Pepper
Copy link
Contributor

this PR must be followed by an addition to zingo-mobile rust to also call this installer on app launch

@juanky201271
Copy link
Contributor

juanky201271 commented Sep 24, 2024

I added the FFI function in zingo-mobile:
zingolabs/zingo-mobile@62d68d7
And it's working, no run-time error about the Crypto Provider.

@fluidvanadium
Copy link
Contributor

i am proud of these sync tests. i understand that they have variable run time, but i do not understand why they would be ignored

Copy link
Contributor

@nachog00 nachog00 left a comment

Choose a reason for hiding this comment

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

Whats our stance on expects and unwraps? Do we allow them in tests only?
@zancas @Oscar-Pepper

@Oscar-Pepper Oscar-Pepper mentioned this pull request Sep 25, 2024
@Oscar-Pepper
Copy link
Contributor Author

Oscar-Pepper commented Sep 25, 2024

i am proud of these sync tests. i understand that they have variable run time, but i do not understand why they would be ignored

as you said, we cant have tests unignored that are guaranteed to slow down test run time, they will just get ignored some time in the near future anyway and cost a load of CI / local test developer time. this is what darkside is for, we have chain load framework. the only limitation I am aware of is transparent

@Oscar-Pepper
Copy link
Contributor Author

Whats our stance on expects and unwraps? Do we allow them in tests only? @zancas @Oscar-Pepper

unwraps are test-only. expects can be acceptable in production with a message that eludes to why it should NEVER panic.

@zancas
Copy link
Member

zancas commented Sep 26, 2024

In order to guarantee non-panic on an expect in production, we'd need to add wrapping correctness guarantees. That's not a proper effort for a developer unless they're already expert in the code base.

Please do NOT add expects to production code.

@zancas
Copy link
Member

zancas commented Sep 26, 2024

i am proud of these sync tests. i understand that they have variable run time, but i do not understand why they would be ignored

as you said, we cant have tests unignored that are guaranteed to slow down test run time, they will just get ignored some time in the near future anyway and cost a load of CI / local test developer time. this is what darkside is for, we have chain load framework. the only limitation I am aware of is transparent

I disagree. This is clear evidence that we do not have sufficient resources allocated to CI. We should not degrade our test quality because the free tier of github runners is too slow. That's the wrong direction. We need to invest in test infrastructure.

@zancas
Copy link
Member

zancas commented Sep 27, 2024

Alright I added some non-blocking comments.

Copy link
Member

@zancas zancas left a comment

Choose a reason for hiding this comment

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

Given @juanky201271 's test, and caveats about upgrading infrastructure.. I approve.

@zancas zancas merged commit 49b5211 into zingolabs:dev Sep 27, 2024
17 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.

6 participants