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

fix: speed gnovm integration tests #17

Open
wants to merge 41 commits into
base: master
Choose a base branch
from
Open

Conversation

gfanton
Copy link
Owner

@gfanton gfanton commented Dec 20, 2024

speed test

…g#3341)

This example shows how proxying render calls can be used to allow
updating realms to new versions while keeping the same realm path. The
idea is to have a simple "parent" realm that only keeps track of the
latest realm version and forwards all render calls to it.

---------

Co-authored-by: Nathan Toups <[email protected]>
Co-authored-by: Leon Hudak <[email protected]>
Co-authored-by: Morgan <[email protected]>
@gfanton gfanton force-pushed the fix/gnland/test-speed branch from f45acc9 to e74adaa Compare December 20, 2024 16:53
Copy link

codecov bot commented Dec 20, 2024

Codecov Report

Attention: Patch coverage is 70.20619% with 289 lines in your changes missing coverage. Please review.

Project coverage is 67.71%. Comparing base (f664c62) to head (45b5921).

Files with missing lines Patch % Lines
gno.land/pkg/integration/testscript_gnoland.go 68.76% 137 Missing and 32 partials ⚠️
gno.land/pkg/integration/process.go 69.53% 62 Missing and 23 partials ⚠️
gno.land/pkg/integration/pkgloader.go 65.68% 26 Missing and 9 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #17      +/-   ##
==========================================
+ Coverage   67.67%   67.71%   +0.03%     
==========================================
  Files         572      575       +3     
  Lines       77668    78072     +404     
==========================================
+ Hits        52563    52864     +301     
- Misses      21632    21707      +75     
- Partials     3473     3501      +28     
Flag Coverage Δ
gno.land 72.49% <69.35%> (-0.44%) ⬇️
gnovm 67.31% <100.00%> (+0.06%) ⬆️
tm2 68.49% <100.00%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

gfanton and others added 4 commits December 20, 2024 21:34
Signed-off-by: gfanton <[email protected]>
the tests were there, but apparently `slicesEqual` had a bug. lol.

This comes from gnolang#3324, and makes it so that IterateByOffset and
ReverseIterateByOffset use the correct order. I changed the `descending`
argument of the underlying TraverseByOffset to match it with
avl.Node.TraverseInRange.

---------

Signed-off-by: moul <[email protected]>
Co-authored-by: moul <[email protected]>
Signed-off-by: gfanton <[email protected]>
Signed-off-by: gfanton <[email protected]>
@gfanton gfanton force-pushed the fix/gnland/test-speed branch from c5c5faa to ddef133 Compare December 20, 2024 23:21
gfanton and others added 14 commits December 21, 2024 00:27
Signed-off-by: gfanton <[email protected]>
Signed-off-by: gfanton <[email protected]>
Signed-off-by: gfanton <[email protected]>
Could become the preferred method for managing top-level lists. 

It can likely be utilized extensively in the existing codebase,
potentially for most instances involving a top-level slice or those
involving an avl.Tree using a seqid.

---------

Signed-off-by: moul <[email protected]>
Co-authored-by: Morgan <[email protected]>
Signed-off-by: gfanton <[email protected]>
…ng#3394)

Ensures that the `allocs` printed by `-print-runtime-metrics` are
per-test, like the cycles.

h/t @leohhhn

Co-authored-by: Leon Hudak <[email protected]>
…g#1290)

- [X] `encoding`
- [X] `encoding/base32`
- [X] `encoding/binary`
- [X] `encoding/csv` : Due to the `reflect` does not implemented yet,
skipped `fuzz`
---
1. `encoding/asn1`: better after `reflection`

related to:
 - gnoswap-labs#7
 - gnolang#1267

depends-on:

- gnolang#3296 
- gnolang#3298

---------

Co-authored-by: Morgan Bazalgette <[email protected]>
Co-authored-by: ltzmaxwell <[email protected]>
## Overview

This home realm allows users to donate GNOT to support Web3 projects,
with dynamic content updates, text art, and a sponsor leaderboard. The
code is easy to understand and copy, making it a great example. It also
serves as an informative introduction to myself for ecosystem users.

## Key Features:

- **Text Art Rendering:**
- Introduced a feature to display text art in codeblocks, offering a
visually appealing and customizable way to present content on the home
realm page.

- **Content Customization:**
- Admin can easily update the contents of the page, including sections
like "About Me," "Sponsor Information," and social media links, giving
them full control over the realm’s presentation.
  
- **GNOT Donation System for Projects:**
- Integrated a GNOT donation system, enabling users to sponsor specific
Web3 projects. Donations are displayed on the project pages, showcasing
the support of the community.

- **Sponsor Tracking and Display:**
- Added functionality to track and display the sponsors for each
project, allowing donors to see the impact of their contributions.

## Realm appearance


![image](https://github.com/user-attachments/assets/843e94af-0694-475d-aea9-92aeb3b66f4f)

![image](https://github.com/user-attachments/assets/679c0bc4-1797-4da5-980e-1a3718bb538f)

Co-authored-by: Nemanya21 <[email protected]>
moul and others added 19 commits December 27, 2024 04:52
Signed-off-by: gfanton <[email protected]>
Signed-off-by: gfanton <[email protected]>
Fixes the CI
Addresses gnolang#3410

---------

Signed-off-by: moul <[email protected]>
…erplate when using grc20reg (gnolang#3397)

- add `r/demo/tests/test20`
- add `grc20.TokenGetter` to reduce boilerplate when using
`grc20reg.Register(...)`

Replaces gnolang#2549
Continues gnolang#3135

Signed-off-by: moul <[email protected]>
Signed-off-by: gfanton <[email protected]>
Signed-off-by: gfanton <[email protected]>
Signed-off-by: gfanton <[email protected]>
Signed-off-by: gfanton <[email protected]>
- [x] Depends on gnolang#3404 (cherry-picked)

Replaces gnolang#3402 
Related with gnolang#3321

---------

Signed-off-by: moul <[email protected]>
Signed-off-by: gfanton <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants