Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: dockerize and improve logging and resilience of validator (#361)
* override default endpoint * override default endpoint * set the endpoint default correctly * set the endpoint default correctly * set the endpoint default correctly, and get rid of exta init * set the customized endpoint * oy the network var doing this * set the endpoint default correctly, and get rid of exta init * try to not set network param. * fix log dumps * don't call config file this way its already here * use network, no more chain_endpoint * use network, no more chain_endpoint * attractive logs * attractive logs * attractive logs * attractive logs * attractive logs * attractive logs * attractive logs * attractive logs * use main and test for now, too many rpc timeouts for masa * use main and test for now, too many rpc timeouts for masa * use main and test for now, too many rpc timeouts for masa * iconic logging. * distinguish among responses from masa-ai as to tweet verification (fail, 429, network error, etc.) * deal with missed validation attempts fairly. * deal with missed validation attempts fairly. * deal with missed validation attempts fairly. * deal with missed validation attempts fairly. * deal with missed validation attempts fairly. * deal with missed validation attempts fairly. * even better logging * even better logging * even better logging * even better logging * even better logging * even better logging * even better logging * even better logging * even better logging * even better logging * even better logging * whose tweet got validated * whose tweet got validated * whose tweet got validated * whose tweet got validated * whose tweet got validated * top 10 bottom 10 * miner tweet validation checks * miner tweet validation checks * miner tweet validation checks * update deps * update deps * any words match the query * dont try to ping validators * search through hashtags for query terms check * search through hashtags for query terms check * search through hashtags for query terms check * search through hashtags for query terms check * search through hashtags for query terms check * search through hashtags for query terms check * search through hashtags for query terms check * search through hashtags for query terms check * handle none response correctly * ooops all tweets * better logging * better logging * better logging * better logging * per miner response metrics * per miner response metrics * per miner response metrics * per miner response metrics * per miner response metrics * per miner response metrics * per miner response metrics * restore correct checking validation * fix config call * fix config call * fix random tweet checker * fix random tweet checker * zero for miners with bad tweets * zero for miners with bad tweets * zero for miners with bad tweets * zero for miners with bad tweets * log the checking of the tweets * log the checking of the tweets * log the checking of the tweets * log the checking of the tweets * log the checking of the tweets * log the checking of the tweets * log the checking of the tweets * log the checking of the tweets * log the checking of the tweets * log the checking of the tweets * log the checking of the tweets * log the checking of the tweets * log the checking of the tweets * log the checking of the tweets * log the checking of the tweets * log the checking of the tweets * log the checking of the tweets * log the checking of the tweets * log the checking of the tweets * log the checking of the tweets * log the checking of the tweets * log the checking of the tweets * log the checking of the tweets * log the checking of the tweets * log the checking of the tweets * Temporarily saving logging improvements * feat: add docker-compose and start.sh * exclude .bittensor/ from .gitignore * rm old docker * publish image * readd dockerfile * updates to set up tee worker under docker * additional docker related scripts * log miner checks * use tweets in the state * restore * don't serve the axon actually * filter out baddies * log miner pass /fail tweet id check * log miner pass /fail tweet id check * log tweet validation fails and passes * log tweet validation fails and passes * granular tweet validation check * granular tweet validation check * granular tweet validation check * granular tweet validation check * granular tweet validation check * granular tweet validation check * ping only miners at init * init versions * fix uid pool back * fix uid versions init * fix uid versions init * fix uid versions init * use protocol api for tweet validation * use new way (oracle api) to validate tweets for now * ping the axons * ping the axons * fix url for protocol api to default to correct one * just ping miners for uncalled versions * validate correctly with protocol * validate correctly with protocol * only count tweets once that pass both id and spot check * log all the validation tests * log all the validation tests better * log all the validation tests a touch better * log miner scores at weight set * log deduped tweets * reset uncalled uids correctly * fix check valid id * fix check valid id * fix check valid id * fix check valid id * fix check valid id * fix check valid id * fix check valid id * cpu only for torch * cpu only for torch * cpu only for torch * cpu only for torch * don't wait for initialization * updates to starting up docker containers * docker setup touchups * no this must not switch off (wait for inclusion) * make masa backup * raise timeout to get tweets from protocol, catch weight set issue and die * print out tweets we're sending to protocol (random sample) * print out tweets we're sending to protocol (random sample) * fix strict check * fix strict check * fix strict check * fix strict check * details on validated tweet * details on validated tweet * details on validated tweet * details on validated tweet * details on validated tweet * don't worry about checking for 150 scored uids except in main * don't worry about checking for 150 scored uids except in main * fix: prefer python over python3 * fix: python3 to python and defaults in dockerfile * set timeParsed * update config.json settings for testnet * fix: update docker compose to repo * fix: dedicated services for miner / validator for supporting running side by side with .env * update config.json settings for testnet * fix: tests * debug logs for weights setting * don't use use_torch() * don't use use_torch() * fix: env example and compose edit * fix: bumps to 1.5.0 * fix: vali test * fix: env example * fix: makefile to main * fix: remove duplicate poetry file * fix: makefile * fix: pyproject file back * fix: add to pyproject * fix: put pyproject back --------- Co-authored-by: Grant Foster <grantdfoster@gmail.com>
- Loading branch information