Git Product home page Git Product logo

dapps's People

Contributors

0xkube avatar akado2009 avatar alexfox86 avatar almazatun avatar andrepanin avatar azoyan avatar bezrazli4n0 avatar dbarinovv avatar dennisinsky avatar dependabot[bot] avatar ereburg avatar eugenway avatar faizov avatar fluiderson avatar gshep avatar louisemedova avatar magorsky avatar medovtimur avatar mikitas avatar nikitayutanov avatar osipov-mit avatar puzzle-rusher avatar sergeyfilyanin avatar shamilsan avatar techraed avatar ukint-vs avatar vraja-nayaka avatar yauhenidraichykau avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

dapps's Issues

Optimize & lighten tests

Currently, tests take up an enormous amount of time of the CI workflow. On average, from 2 hours of the workflow they consume almost 3/4 of this time. The reason, initially, all tests were written for executing in separated repositories where, individually, tests didn't take up a lot of time but now, in a single workspace, this has become very critical. Therefore, we need to somehow reduce the time for tests.

Here are some ideas:

  1. Analyze, rewrite & reduce the number of tests up to the most necessary
    The most time consuming tests use gclient. Some of them didn't need it all, and can be rewritten with gtest. Also, some tests are implemented for high load testing and as well take a long time. They can be moved to a separate manually controlled CI workflow or can be simply ignored by the main workflow.
  2. Use a custom node binary optimized for a faster execution
    Right now we use the node binary from the official builds. By default, it's using a configuration close to one on the public net. Perhaps there can be some flags or we can modify node's internals to speed it up. Of course, security consideration must be taken to make sure that the custom node won't suppress any bugs that later may be found in the default node.
  3. Put all tests for into one file in each workspace member
    This'll degrade readability but may reduce the execution time because tests in one file are executed in parallel.

Use fontawesome icons instead of local images

Problem

our repo is currently super big even downloading with --depth=1

git clone https://github.com/gear-foundation/dapps.git --depth=1
cd dapps
du -sh .
142M

# go to the frontend folder
du -h -d1
2.6M	./.yarn
120K	./packages
 22M	./dev
 64M	./apps
 89M	.

I found that we are currently using local pictures in frontend examples, for example

https://github.com/gear-foundation/dapps/tree/master/frontend/apps/escrow/src/assets/images/icons

Solution

these icons could be replaced https://fontawesome.com/ which could be embedded in node_modules but not the git history

"Program terminated with a trap: 'attempt to subtract with overflow'

Playing around with the tamagotchi contract and app. Once the tamagotchi stat gets to 8 or below I start getting this error and the whole apps locks up. However if the stat is above 8 then the wallet transaction processes like normal.

8000: Runtime error: "Program terminated with a trap: 'attempt to subtract with overflow', /home/mikenike/dapps/contracts/tamagotchi/src/lib.rs:51:24"

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.