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

Create starlay_finance_milestone_1-2.md #3

Merged
merged 4 commits into from
Oct 30, 2023

Conversation

Chidasan
Copy link
Contributor

No description provided.

Changed to GitHub permalinks
@TtomaS7 TtomaS7 requested a review from HCastano July 25, 2023 13:17
@HCastano
Copy link
Contributor

@Chidasan Hey, have you incorporated any of the feedback, specially around testing, into Milestone 2?

@deepsea514
Copy link

Hi, @HCastano , we have solved e2e test problem and will remove ZERO_ADDRESS soon.

@Chidasan
Copy link
Contributor Author

Chidasan commented Aug 1, 2023

Hi, @HCastano

We have implemented the feedback received. The e2e test issue has been resolved as @wolfwarrier14 mentioned in the previous comment, and we have also removed the usage of ZERO_ADDRESS in our codebase.
Moreover, we've updated the permalinks.

Let us know if there are any more queries or if there's anything else you would like us to address

@HCastano
Copy link
Contributor

HCastano commented Aug 7, 2023

@Chidasan cool, I'll do another review this week then.

Sorry couldn't do it this week, will do Monday/Tuesday

Copy link
Contributor

@HCastano HCastano left a comment

Choose a reason for hiding this comment

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

Hey, so I reviewed your second submission. I'm still concered with the testing situation.

Right now the tests don't pass locally for me:

yarn test:single tests/Pool.spec.ts
...
Test Suites: 1 failed, 1 total
Tests:       44 failed, 44 total
Snapshots:   0 total
Time:        5.827 s, estimated 9 s
Ran all test suites matching /tests\/Pool.spec.ts/i.
Jest did not exit one second after the test run has completed.

'This usually means that there are asynchronous operations that weren't stopped in your tests. Consider running Jest with `--detectOpenHandles` to troubleshoot this issue.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

and

 yarn test:single tests/Manager.spec.ts
 ...
 Test Suites: 1 failed, 1 total
Tests:       5 failed, 5 total
Snapshots:   0 total
Time:        2.003 s, estimated 3 s
Ran all test suites matching /tests\/Manager.spec.ts/i.
Jest did not exit one second after the test run has completed.

'This usually means that there are asynchronous operations that weren't stopped in your tests. Consider running Jest with `--detectOpenHandles` to troubleshoot this issue.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

I also don't see any workflow on GHA which makes use of the integration tests. I'd
consider this to be critical to this submission. Your testing setup is not that
complicated, these integration tests should be run (and should pass) on every PR.


Here's a few other points from my review:

  • It doesn't look like any of the documentation on the docs.starlay.finance website has
    been updated recently
    • Almost all the pages I checked say "Updated a year ago"
    • I'd expect some documentation around how the liquidation process works since that's
      functionality that was added in this milestone
  • In the README it still says you're using [email protected]
    • This should be updated in the README
  • There are still missing RustDocs on publc members, please try and make sure that all
    that everything is documented
  • There's code in the codebase that's commented out, I'd keep the codebase clean of that
  • It would be nice to have an ARCHITECTURE.md file
    • This would be quite helpful to the auditors
    • Not strictly required fro this milestone

@deepsea514
Copy link

Hi, @HCastano
Could you give more detail for which tests are not passed?

@HCastano
Copy link
Contributor

@wolfwarrier14 I ran the two suites of tests from the submission document (tests/Pool.spec.ts, tests/Manager.spec.ts).

Before I try and run these locally again can you please send me link to a CI job in which the test suites pass?

@HCastano
Copy link
Contributor

@wolfwarrier14 any updates here?

@Chidasan
Copy link
Contributor Author

Hi @HCastano,

Apologize for my late reply.
We've updated test and gitbook part. Please check it out: 7a85539

Copy link
Contributor

@HCastano HCastano left a comment

Choose a reason for hiding this comment

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

Thanks for adding the testing suite to the CI! It's gonna make everyone's life easier going forward 😉

Two small nits:

  • There are some warnings in your E2E tests, I'd fix those instead of living with them
  • Still using a very old Rust nightly, I'd update soon (although I realize this may be a problem stemming from OpenBrush usage)

Milestone looks good to me though 💪

@deepsea514
Copy link

Thank you for your approval, @HCastano.
I really appreciate for your notes.
We have tried to remove warnings in JS E2E tests but they are coming from the version mismatch of polkadot-compiler and polkadot-types module.
We have contacted Brushfam for this issue.
And if we upgrade the nightly version, the project causing error because of Openbrush as you expected.

Thank your for your understanding.

@TtomaS7
Copy link
Contributor

TtomaS7 commented Sep 12, 2023

@DoubleOTheven please review!

@DoubleOTheven
Copy link

Looks good, guys. Nice progress

@TtomaS7 TtomaS7 added the The payment sent! The delivery is successful. The payment sent. label Oct 26, 2023
@TtomaS7
Copy link
Contributor

TtomaS7 commented Oct 26, 2023

The payment sent!

https://polkadot.subsquare.io/treasury/child-bounties/19_461
You can claim it in 7 day, thank you!

@TtomaS7 TtomaS7 closed this Oct 26, 2023
@TtomaS7 TtomaS7 reopened this Oct 30, 2023
@TtomaS7 TtomaS7 merged commit bcfcb62 into use-inkubator:master Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
The payment sent! The delivery is successful. The payment sent.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants