Commit Graph

42 Commits

Author SHA1 Message Date
Shane da Silva
909c383973 feat: Dedicated Replicator app (#1462) 2023-10-09 12:56:24 -07:00
adityapk00
aac4220f35 chore: Add cli docs linter (#1353) 2023-09-06 19:45:36 -07:00
adityapk00
cff71488ee chore: Remove Goerli rpc (#1318) 2023-09-01 12:29:20 -05:00
Sanjay
05e5ed1e7a [fix] Post migration fixes (#1306)
* fix: Stop cascade revoking messages for old signer messages

* Fix storage size to be the correct amount in the near future

* add changeset

* Fix broken nightly link
2023-08-31 11:08:31 -07:00
adityapk00
db354c59e6 fix: Pin Anvil version (#1301)
* ga test

* fix verbose

* Pin anvil version

* indent
2023-08-30 11:20:52 -05:00
Sanjay
be6ee3c836 feat: Make l2 rpc url required to start hubble ahead of mainnet migration (#1286)
* feat: Make l2 rpc url required to start hubble ahead of mainnet migration

* Fix build
2023-08-23 14:32:04 -07:00
Varun Srinivasan
4d28208563 docs: add documentation requirement and instructions to pr template (#1150) 2023-07-15 22:44:48 -07:00
Shane da Silva
aebbb47b3c chore: Automate Docker Hub publishing (#1138)
Set up automation so that when we push the `@farcaster/hubble@X.Y.Z` tag
we will automatically kick off a Docker build and push the resulting
image layers + tag to Docker Hub.
2023-07-14 21:18:21 -04:00
Sanjay
a38720b9d1 chore: hard fail on missing rpc urls (#1116)
* chore: hard fail on missing rpc urls and create new release

* Fix build
2023-07-12 15:27:31 -07:00
Varun Srinivasan
4c38067c15 chore: switch from eslint/prettier to rome (#1074)
* chore: add rome config files

* chore: add rome into configs and ci

* chore: remove eslint annotations

* chore: update annotations for rome ignores

* chore: remove prettier
2023-07-04 19:09:15 -07:00
Tony D'Addeo
159c62df7a chore(hubble): use viem to interact with ethereum (#997)
* chore: use viem to interact with ethereum

* add ViemLocalEip712Signer to exports

* add codecov exceptions

* upgrade viem

* add log for historically synced blocks

* fix test

* poll every 4 seconds

* clean up pre-viem 1.0 code

* update viem

* update comments
2023-06-22 14:50:18 -05:00
hellno
9d08463ff6 remove .DS_Store files (#1029) 2023-06-21 12:22:51 -07:00
Sanjay
63927edd0d fix: Fix working directory so db directory will be under hubble app (#999)
* fix: Fix working directory so db directory will be under hubble app

* Fix build_image action
2023-05-26 19:32:47 -07:00
98967eth
05618d1f8f add my own peer id (#991)
Co-authored-by: Shane da Silva <shane@dasilva.io>
2023-05-25 10:49:41 -07:00
Shane da Silva
23d7a66675 chore: Support pure ESM output (#994)
* Fix import mapping to work with built JS files

This allows us to ship a Docker image that runs using `node` directly,
rather than via `tsx`.

* Remove use of top-level `await` expressions

These were only used in tests and weren't critical. Switch away so we
have the optional to convert to CommonJS if we need.

* Switch all imports to use relative paths instead of ~ shortcut

The ~ shortcut doesn't work in some contexts, which makes our lives more
difficult when trying to output ESM.

Since we were already using relative paths in some part of the codebase
and not others, just switch to using relative paths everywhere for
simplicity.

* Switch imports to append .js extension

And update Jest configuration to work with this extension.

* Build single image instead of two separate ones

We originally created the other image so that we could build an image
using only packages published to NPM, but this proved problematic when
wanting to test those changes without publishing.

Since there are more situations where we'd want to ship an image using
unpublished packages (i.e. for testing) remove the "public" image and
update our "testing" image to also be used as the public image. However,
a key difference is that the testing image will now run compiled JS
instead of using a TypeScript interpreter.
2023-05-24 20:02:38 -07:00
Shane da Silva
72ced0ee39 Run tests on larger VM instances (#976)
We're starting to see occasional OOM errors. Allocate more memory (and
vCPU so tests run faster as well).
2023-05-18 10:35:36 -07:00
Shane da Silva
967fb3922c Build and test on Node.js 20 (#972)
This version includes updates to the V8 runtime and performance
improvements.

While here, update our test suite to test on both Node 18 and 20.
2023-05-16 14:30:52 -07:00
Shane da Silva
723ea9f58e Don't require Depot to build images for PRs from forks (#966)
GitHub's permission scheme doesn't share the secret with forks. Switch
to using a vanilla Docker build (it'll be fast enough anyway).
2023-05-12 18:03:56 -07:00
Shane da Silva
ea55abcb83 Add separate Dockerfile for dedicated public image (#962)
We want to make it easier for developers to get started with hubs.

Add a separate optimized Docker image which we'll distribute for both
AMD and ARM architectures.

For now the publishing process is manual, but once hubs are fully open
(no peering allowlists) we'll be able to auto-publish with each hubble
release on NPM.
2023-05-11 20:31:45 -07:00
Vincent Liao
3af9f6e166 docs: fix 404 links in PR template (#923) 2023-04-27 08:00:52 -07:00
Anthony D'Addeo
8a733e5243 chore: add checklist item to sign commits (#879)
* chore: add checklist item to sign commits

* Update PULL_REQUEST_TEMPLATE.md
2023-04-16 21:16:56 -05:00
Paul Fletcher-Hill
59ea2f9d42 add release-all script (#871) 2023-04-13 00:10:07 -04:00
Paul Fletcher-Hill
31fcb95f12 chore: add release.yml github action (#870)
* add release-hubble workflow

* rename release
2023-04-12 23:44:41 -04:00
Varun Srinivasan
eba6c749de fix: label new issues with triage (#866) 2023-04-12 08:25:39 -07:00
Paul Fletcher-Hill
ccc6c54261 add on to release-packages workflow (#864) 2023-04-11 22:48:04 -04:00
Paul Fletcher-Hill
39387aa702 add release-packages workflow (#862) 2023-04-11 22:28:54 -04:00
Varun Srinivasan
8f01e2312a ci: auto-label all new issues with s-triage (#854) 2023-04-10 13:59:07 -07:00
PangZhi
c4529a7ef2 feat: merge protobufs and utils into core package (#818)
* remove protobufs as a package, merge into utils

* update yarn.lock

* rename utils package to core

* update docker

* add changeset

* tsup config

* change schema path in workflow file

* update protobufs readme link
2023-04-04 19:21:30 -07:00
Shane da Silva
b81ed8c5e2 chore: Remove unnecessary flag for smoke test (#815)
The `-e ""` workaround is no longer necessary as of 8e46cac1.
2023-04-04 14:37:20 -07:00
Shane da Silva
5f5a5fd171 chore: Test gRPC port of Docker image is running (#520)
Add a simple test to our build step that ensures the gRPC service is
running.
2023-04-04 14:28:20 -07:00
Varun Srinivasan
42f9da1ea4 chore: add instructions and nudges to add changesets (#661) 2023-03-16 13:50:18 -07:00
adityapk00
afacba8082 fix: Disable audit in github actions (#559) 2023-02-11 10:36:41 -08:00
Shane da Silva
5f15d04433 chore: Remove shard flag from tests (#519)
This doesn't appear to serve any purpose, since the second shard appears
to be empty / no tests.
2023-02-03 17:32:43 -08:00
Shane da Silva
e91cf7ab5a chore: Test Docker builds in CI (#518)
To prevent accidental breakages, test our Docker builds on PRs.

This should be relatively fast thanks to GitHub Actions caching, and the
fact that the NPM `rocksdb` package has a pre-built binary for x64,
which is what `ubuntu-latest` runs.
2023-02-03 17:21:27 -08:00
Varun Srinivasan
fc37c6b360 test: upgrade gh actions to resolve warnings (#307) 2022-12-19 14:56:05 -08:00
Varun Srinivasan
6a1f7091b7 perf: shard tests and run them as a matrix in CI (#301)
* perf: shard tests and run them as a matrix in CI

* perf: add concurrency to interrupt prior runs when new ones are pushed

* fix: temporarily lower coverage threshold

* fix: increase propagation delay to account for sporadic test failures

* docs: add comments about concurrency opt
2022-12-19 06:56:57 -08:00
Varun Srinivasan
86bd3ff64b chore: upgrade node to v18.7.0 to sync with other farcaster repos (#148)
* chore: upgrade node to v18.7.0 to sync with other farcaster repos

* ci: upgrade to node 18
2022-10-06 23:20:27 -07:00
Varun Srinivasan
48978c83f3 ci: add yarn audit (#132) 2022-09-28 17:10:13 -07:00
Paul Fletcher-Hill
250e7a077d docs: simplify PR template to use github labels for change type (#78) 2022-08-17 20:26:32 -07:00
Varun Srinivasan
d943876e8e chore: add issue templates, pr templates and contributing guide (#57)
* chore: add pr template

* chore: add CONTRIBUTING.md

* chore: add issue templates
2022-08-14 20:50:32 -07:00
Varun Srinivasan
1c59105258 ci: upload coverage results to codecov (#52) 2022-08-01 19:02:17 -07:00
Varun Srinivasan
4f6dee72f7 git commit -m "add tests into ci" (#1) 2022-03-16 17:53:48 -07:00