web3-storage / web3.storage

DEPRECATED ⁂ The simple file storage service for IPFS & Filecoin
https://web3.storage
Other
502 stars 122 forks source link

Add end-to-end tests for uploading content and run them automatically and often #421

Open olizilla opened 3 years ago

olizilla commented 3 years ago

Add end-to-end tests for

Run them every n minutes, and raise an alert on failure. For bonus points, time how long each run takes and push it to prometheus so we an chart upload perf over time.

olizilla commented 3 years ago

w3 has an e2e test already, but it's not run as part of ci yet https://github.com/web3-storage/web3.storage/blob/main/packages/w3/test/e2e.spec.js

olizilla commented 3 years ago

We now have a cron job that runs regulary and uploads to the site via w3 -> js client -> http api, and we run a similar test against staging whenever a change to one of the components is merged.

olizilla commented 3 years ago

The website smoke test requires running a browser in CI. @hugomrdias recommends Playwright Test. This looks like it'll work as it supports both automated file upload via the browser, and has guidance for dealing with authentication. For this I think we need:

fabiolrodriguez commented 2 years ago

Implemented the most importante monitoring, http and client.