Commit Graph

5310 Commits

Author SHA1 Message Date
Tan Chee Keong
ba9fb7219c check diff 2023-10-18 20:35:49 +08:00
Tan Chee Keong
91116154c7 test 2023-10-18 20:01:53 +08:00
Tan Chee Keong
c3d84db692 Fix period with \. 2023-10-18 19:45:12 +08:00
Tan Chee Keong
387777dd5f Remove .exe in Windows 2023-10-18 19:42:11 +08:00
chonghe
da980383ff Update scripts/cli.sh
Co-authored-by: Mac L <mjladson@pm.me>
2023-10-11 09:28:56 +08:00
Tan Chee Keong
13f3bb8bf5 Indent 2023-10-10 20:59:32 +08:00
chonghe
2508e34236 Update scripts/cli.sh
Co-authored-by: Mac L <mjladson@pm.me>
2023-10-10 20:57:01 +08:00
chonghe
c7ef2fc149 Fix typo 2023-10-10 08:51:41 +08:00
Tan Chee Keong
8a4bb6f666 Small revision 2023-10-10 08:18:50 +08:00
Tan Chee Keong
62738e5341 Remove return 1 and add : 2023-10-09 19:31:24 +08:00
Tan Chee Keong
53397956af set -e 2023-10-09 17:15:03 +08:00
chonghe
7075ddf5e0 Add vm 2023-10-09 16:56:15 +08:00
Tan Chee Keong
80d423ff23 Fix 2023-10-09 16:53:05 +08:00
Tan Chee Keong
918f7ac72d Add vm 2023-10-09 16:50:16 +08:00
Tan Chee Keong
a0bab5a5ca Add set -e 2023-10-09 16:46:00 +08:00
Tan Chee Keong
37f8a2a807 Update SUMMARY.md 2023-10-06 13:15:44 +08:00
Tan Chee Keong
bf7b9488b6 Revise test-suite.yml 2023-10-05 23:20:50 +08:00
chonghe
39bd86ae5d Add cargo-fmt 2023-10-05 22:30:46 +08:00
chonghe
7495a14861 Remove am and add vm subcommands 2023-10-05 21:58:26 +08:00
chonghe
be50f968c9 Merge branch 'book-cli' of https://github.com/chong-he/lighthouse into book-cli 2023-10-05 21:37:51 +08:00
chonghe
fb1e1e7890 Edit exit message to avoid confusion 2023-10-05 21:37:34 +08:00
chonghe
09eee77e86 update .md files 2023-10-03 23:30:36 +08:00
chonghe
07d74c96ba remove cargo fmt 2023-10-03 22:18:31 +08:00
chonghe
2a447e2c02 spacing 2023-10-03 22:16:33 +08:00
chonghe
625e0cf962 Merge pull request #4 from chong-he/unstable
Merge unstable to book-cli
2023-10-03 22:13:15 +08:00
chonghe
0688991f87 Add local variables 2023-10-03 22:02:23 +08:00
chonghe
4ef39b0908 Add logging when there are changes 2023-10-03 20:49:10 +08:00
chonghe
57217aa4fa To be explicit in replacing the old file 2023-10-03 20:43:55 +08:00
chonghe
5e64c26d8c Fix indent and echo file not found 2023-10-03 20:40:13 +08:00
chonghe
976bcf3f1a Merge branch 'sigp:stable' into book-cli 2023-10-03 19:08:52 +08:00
chonghe
2c798e2777 move then to same line as if 2023-10-03 19:04:21 +08:00
chonghe
ff229b455f remove maxperf 2023-10-03 19:00:28 +08:00
chonghe
f34792abb3 Update scripts/cli.sh
Co-authored-by: Mac L <mjladson@pm.me>
2023-10-03 18:52:39 +08:00
chonghe
535933ea16 Update scripts/cli.sh
Co-authored-by: Mac L <mjladson@pm.me>
2023-10-03 18:52:02 +08:00
chonghe
89eae2de43 Remove help-cli.md 2023-10-03 18:47:25 +08:00
chonghe
3905329ae5 Remove help-cli.md and rearrange 2023-10-03 18:46:55 +08:00
chonghe
bc19fc32cc Update Makefile
Co-authored-by: Mac L <mjladson@pm.me>
2023-10-03 18:38:27 +08:00
chonghe
081405abd1 Update Makefile
Co-authored-by: Mac L <mjladson@pm.me>
2023-10-03 18:33:49 +08:00
Age Manning
8a1b77bf89 Ultra Fast Super Slick CI (#4755)
Attempting to improve our CI speeds as its recently been a pain point.

Major changes:

 - Use a github action to pull stable/nightly rust rather than building it each run
 - Shift test suite to `nexttest` https://github.com/nextest-rs/nextest for CI
 
 UPDATE:

So I've iterated on some changes, and although I think its still not optimal I think this is a good base to start from. Some extra things in this PR:
- Shifted where we pull rust from. We're now using this thing: https://github.com/moonrepo/setup-rust . It's got some interesting cache's built in, but was not seeing the gains that Jimmy managed to get. In either case tho, it can pull rust, cargofmt, clippy, cargo nexttest all in < 5s. So I think it's worthwhile. 
- I've grouped a few of the check-like tests into a single test called `code-test`. Although we were using github runners in parallel which may be faster, it just seems wasteful. There were like 4-5 tests, where we would pull lighthouse, compile it, then run an action, like clippy, cargo-audit or fmt. I've grouped these into a single action, so we only compile lighthouse once, then in each step we run the checks. This avoids compiling lighthouse like 5 times.
- Ive made doppelganger tests run on our local machines to avoid pulling foundry, building and making lcli which are all now baked into the images. 
- We have sccache and do not incremental compile lighthouse

Misc bonus things:
- Cargo update
- Fix web3 signer openssl keys which is required after a cargo update
- Use mock_instant in an LRU cache test to avoid non-deterministic test
- Remove race condition in building web3signer tests

There's still some things we could improve on. Such as downloading the EF tests every run and the web3-signer binary, but I've left these to be out of scope of this PR. I think the above are meaningful improvements.



Co-authored-by: Paul Hauner <paul@paulhauner.com>
Co-authored-by: realbigsean <seananderson33@gmail.com>
Co-authored-by: antondlr <anton@delaruelle.net>
2023-10-03 06:33:15 +00:00
Jack McPherson
1c98806b6f Allow libp2p to determine listening addresses (#4700)
## Issue Addressed

#4675 

## Proposed Changes

 - Update local ENR (**only port numbers**) with local addresses received from libp2p (via `SwarmEvent::NewListenAddr`)
 - Only use the zero port for CLI tests

## Additional Info

### See Also ###

 - #4705 
 - #4402 
 - #4745
2023-10-03 04:57:20 +00:00
realbigsean
a935daebd5 Clean bors.toml (#4795)
unblock https://github.com/sigp/lighthouse/pull/4755

Co-authored-by: Paul Hauner <paul@paulhauner.com>
Co-authored-by: realbigsean <seananderson33@gmail.com>
2023-10-03 03:37:12 +00:00
Paul Hauner
441fc1691b Release v4.5.0 (#4768)
## Issue Addressed

NA

## Proposed Changes

Bump versions from v4.4.1 to v4.5.0.

## Additional Info

NA
v4.5.0
2023-09-25 05:14:01 +00:00
João Oliveira
0f05499e30 Fix cli options (#4772)
## Issue Addressed

Fixes breaking change introduced on https://github.com/sigp/lighthouse/pull/4674/  that doesn't allow multiple `http_enabled` `ArgGroup` flags
2023-09-22 12:00:51 +00:00
Paul Hauner
fbb6997309 Fix release CI for self-hosted runners (#4770)
## Issue Addressed

NA

## Proposed Changes

Disables some commands for self-hosted runners to prevent failures.

## Additional Info

NA
2023-09-22 11:04:47 +00:00
João Oliveira
dcd69dfc62 Move dependencies to workspace (#4650)
## Issue Addressed

Synchronize dependencies and edition on the workspace `Cargo.toml`

## Proposed Changes

with https://github.com/rust-lang/cargo/issues/8415 merged it's now possible to synchronize details on the workspace `Cargo.toml` like the metadata and dependencies.
By only having dependencies that are shared between multiple crates aligned on the workspace `Cargo.toml` it's easier to not miss duplicate versions of the same dependency and therefore ease on the compile times.

## Additional Info
this PR also removes the no longer required direct dependency of the `serde_derive` crate.

should be reviewed after https://github.com/sigp/lighthouse/pull/4639 get's merged.
closes https://github.com/sigp/lighthouse/issues/4651


Co-authored-by: Michael Sproul <michael@sigmaprime.io>
Co-authored-by: Michael Sproul <micsproul@gmail.com>
2023-09-22 04:30:56 +00:00
antondlr
69c39ad1e5 Use release workflow runners (#4765)
## Issue Addressed

Build releases on self-hosted hardware to speed the process up
2023-09-22 02:33:13 +00:00
Age Manning
6b02e8525a Add new teku bootnodes (#4724)
Adds new Teku bootnodes

Co-authored-by: Paul Hauner <paul@paulhauner.com>
2023-09-22 02:33:12 +00:00
Jimmy Chen
c4e907de9f Update the voluntary exit endpoint to comply with the key manager specification (#4679)
## Issue Addressed

#4635 

## Proposed Changes

Wrap the `SignedVoluntaryExit` object in a `GenericResponse` container, adding an additional `data` layer, to ensure compliance with the key manager API specification.

The new response would look like this:

```json
{"data":{"message":{"epoch":"196868","validator_index":"505597"},"signature":"0xhexsig"}}
```

This is a backward incompatible change and will affect Siren as well.
2023-09-22 02:33:11 +00:00
João Oliveira
c5588eb66e require http and metrics for respective flags (#4674)
## Issue Addressed

following discussion on https://github.com/sigp/lighthouse/pull/4639#discussion_r1305183750 this PR makes the `http` and `metrics` sub-flags to require those main flags enabled
2023-09-22 02:33:10 +00:00
Paul Hauner
2441a247ab Bump quinn-proto to address rustsec vuln (#4767)
## Issue Addressed

NA

## Proposed Changes

Bumps `quinn-proto` to address a QUIC-related vulnerability: https://rustsec.org/advisories/RUSTSEC-2023-0063

Fixes a `cargo audit` failure.

## Additional Info

NA
2023-09-21 22:37:00 +00:00