Commit Graph

1411 Commits

Author SHA1 Message Date
Brooks f9b96fa112
Upgrades Rust to 1.74.0 (#34118) 2023-11-19 22:24:59 -05:00
Yihau Chen 5658d6ee5b
ci: run test-stable-sbf in docker (#33943) 2023-11-17 12:11:52 +08:00
Yihau Chen 51f3af25eb
ci: run doctest in docker (#33942) 2023-11-17 12:11:36 +08:00
Yihau Chen b55dcbbb39
ci: run bench test in docker (#33944)
* ci: run bench test in docker

* ci: fix bench test triggering rule
2023-11-17 12:11:25 +08:00
Illia Bobyr 8c5b5f18be
scripts/cargo-clippy.sh: Extract our non-trivial `cargo clippy` command (#33982)
CI uses a number of parameters when running `cargo clippy`.  Repeating
the same command manually requires some copy/pasting.  It is easier when
there is a common script that can be run by everyone.
2023-11-08 02:50:38 -08:00
Yihau Chen 5efba1fb3a
ci: add the ability to use GCS backend for sccache (#33967) 2023-11-08 11:03:35 +08:00
Yihau Chen 662ac8bc86
ci: reorg docker images (#33815)
* ci: remove unnecessary args from docker-run.sh

* ci: remove cargo uninstall from buildkite post checkout

* ci: reorg docker images

* ci: add mscgen for docs
2023-11-03 20:32:38 +08:00
Kevin Heavey af7fd32f4c
chore: fix some typos (#33833)
* fix spelling of "retrieved"
* fix spelling of "should"
* fix spelling of "comparisons"
2023-10-25 16:21:53 +02:00
Thomas P 96052d230a
Docker images > 1.17.0 are broken because of wrong baseimage (#33709)
fix(dockerfile): make sure to use the bullseye image for building

Solana's release image is based on bullseye, make sure we compile Solana with the same environment
2023-10-21 01:17:03 +08:00
Illia Bobyr 9baa0b1c02
ci/env.sh: Log `CI_BASE_BRANCH` (#33744)
When debugging CI failures it helps when I can see all the variables set
by `env.sh`.

Order environment variables in the output to match the order they are
set a bit better.

`CI_BASE_BRANCH` was not set at all for unknown environment.  Does not
matter much, but it seems consistent to include it in the list next to
all the other variables.
2023-10-17 20:20:59 -07:00
Yihau Chen 923d5b5324
chore: remove install-nodejs.sh and install-redis.sh (#33684)
chore: remove unused scripts
2023-10-13 12:47:06 +08:00
Jeff Biseda 8c27d8bbb3
indicate that test-checks.sh requires cargo-hack (#33519) 2023-10-10 12:08:14 -07:00
Brooks 2d1449f714
Upgrades Rust to 1.73.0 (#33546) 2023-10-06 10:47:51 -04:00
Yihau Chen c9d04bcfe6
chore(solana-frozen-abi): remove unused deps (#33436)
* chore: remove unused deps

* ci: increase regression of build redundancy
2023-10-04 12:00:25 +08:00
Yihau Chen b87c8d163d
ci: remove stable-perf from PR and push CI (#33479)
ci: move stable-perf to nightly pipeline
2023-10-03 12:37:36 +08:00
Yihau Chen c0100b13ef
ci: fix cargo files changes doens't trigger doc tests (#33438) 2023-09-28 07:01:14 +00:00
Kevin Ji 5d11227088
Mark *.sh files with `#!` as executable (#33303) 2023-09-28 10:32:44 +08:00
hana 499ec49e71
fix single-pool path for ci (#33339) 2023-09-25 03:31:23 -07:00
Trent Nelson 7c545b0ae9
bump rust stable to 1.72.1 (#33333)
* bump rust stable to 1.72.1

* bump rust nightly to 2023-09-20

* fix nightly lint -- unused doc comment

-- rustdoc does not generate documentation for expression fields

* fix nightly lint -- unnecessarily eager cloning of iterator items

* fix nightly lint -- loop never actually loops
2023-09-20 23:53:36 -06:00
Yihau Chen 62f153ec88
ci: use new installation instructions for nodejs (#33337)
* use new installation instructions for nodejs

* more comments

* remove apt list in the end
2023-09-21 13:46:23 +08:00
Yihau Chen f22a349541
chore: remove unused code (#33335)
remove unused code
2023-09-21 12:21:10 +08:00
Yihau Chen d4946ddfaa
ci: move solana-cargo-build-sbf to nextest (#33257) 2023-09-15 14:24:43 +00:00
Yihau Chen 4e2d67f19a
ci: move solana-core to nextest (#33231) 2023-09-14 12:11:31 +08:00
Yihau Chen 99ef411600
ci: move solana-client-test to nextest (#33185) 2023-09-13 12:12:20 +08:00
Yihau Chen 903c615559
ci: use codecov command line tool (#33132)
* ci: install codecov to nigthly image

* ci: use codecov command line tool
2023-09-06 16:49:08 +08:00
Yihau Chen b4efbf07f7
ci: remove unstable options for stable tests (#33103) 2023-09-01 19:45:00 +08:00
Alexander Meißner 9e703f85de
Upgrades Rust to 1.72.0 & nightly-2023-08-25 (#32961)
* allow pedantic invalid cast lint

* allow lint with false-positive triggered by `test-case` crate

* nightly `fmt` correction

* adapt to rust layout changes

* remove dubious test

* Use transmute instead of pointer cast and de/ref when check_aligned is false.

* Renames clippy::integer_arithmetic to clippy::arithmetic_side_effects.

* bump rust nightly to 2023-08-25

* Upgrades Rust to 1.72.0

---------

Co-authored-by: Trent Nelson <trent@solana.com>
2023-09-01 07:26:13 +00:00
Yihau Chen 37887d487c
ci: remove --ignore RUSTSEC-2022-0093 (#33019)
ci: remove --ignore RUSTSEC-2023-0052
2023-08-29 05:58:50 +00:00
Yihau Chen d90e158286
ci: install protobuf-compiler to docker image (#32956) 2023-08-24 02:13:38 +08:00
Yihau Chen e4a2d14c4e
ci: fix audit (#32932)
* ci: bump rustls-webpki to 0.101.4

* ci: ignore RUSTSEC-2023-0052
2023-08-23 01:23:18 +08:00
Jon Cinque 6521a100f7
ci: Use pipefail for some scripts, don't use `PIPESTATUS` (#32893) 2023-08-21 22:18:53 +02:00
Yihau Chen a02aebaa4b
ci: increase solana_program_count to 18 (#32922) 2023-08-22 03:01:12 +08:00
Jon Cinque 0fe902ced7
Bump rand to 0.8, rand_chacha to 0.3, getrandom to 0.2 (#32871)
* sdk: Add concurrent support for rand 0.7 and 0.8

* Update rand, rand_chacha, and getrandom versions

* Run command to replace `gen_range`

Run `git grep -l gen_range | xargs sed -i'' -e 's/gen_range(\(\S*\), /gen_range(\1../'

* sdk: Fix users of older `gen_range`

* Replace `hash::new_rand` with `hash::new_with_thread_rng`

Run:
```
git grep -l hash::new_rand | xargs sed -i'' -e 's/hash::new_rand([^)]*/hash::new_with_thread_rng(/'
```

* perf: Use `Keypair::new()` instead of `generate`

* Use older rand version in zk-token-sdk

* program-runtime: Inline random key generation

* bloom: Fix clippy warnings in tests

* streamer: Scope rng usage correctly

* perf: Fix clippy warning

* accounts-db: Map to char to generate a random string

* Remove `from_secret_key_bytes`, it's just `keypair_from_seed`

* ledger: Generate keypairs by hand

* ed25519-tests: Use new rand

* runtime: Use new rand in all tests

* gossip: Clean up clippy and inline keypair generators

* core: Inline keypair generation for tests

* Push sbf lockfile change

* sdk: Sort dependencies correctly

* Remove `hash::new_with_thread_rng`, use `Hash::new_unique()`

* Use Keypair::new where chacha isn't used

* sdk: Fix build by marking rand 0.7 optional

* Hardcode secret key length, add static assertion

* Unify `getrandom` crate usage to fix linking errors

* bloom: Fix tests that require a random hash

* Remove some dependencies, try to unify others

* Remove unnecessary uses of rand and rand_core

* Update lockfiles

* Add back some dependencies to reduce rebuilds

* Increase max rebuilds from 14 to 15

* frozen-abi: Remove `getrandom`

* Bump rebuilds to 17

* Remove getrandom from zk-token-proof
2023-08-21 19:11:21 +02:00
Yihau Chen 7902ac106d
ci: update aws cli image (#32910)
* ci: update aws cli image

* ci: add --acl public-read
2023-08-20 21:13:20 +08:00
Yihau Chen aa4598d436
ci: allow retrying mac publishing steps (#32899) 2023-08-19 21:12:44 +08:00
Trent Nelson f1a0cca547
ci: move some fast checks to sanity (#32875) 2023-08-17 21:58:17 -06:00
Yihau Chen bc5ad1d2ab
ci: re-enable SPL downstream project test on Github Action (#32677)
* ci: init spl downstream project on Github Action

* ci: fix spl downstream project doesn't use cargo-test-sbf

* ci: move nightly build to another individual file

* ci: get more space for runners on Github Action

* ci: trun off fali-fast

* Update .github/workflows/downstream-project-spl.yml

Co-authored-by: Jon Cinque <me@jonc.dev>

* ci: separate all spl programs

* use reusable workflow

* add error reporting for nightly build

* update test method

* add build and test

* only build required program

* remove other branches

* Update .github/workflows/downstream-project-spl.yml

Co-authored-by: Jon Cinque <me@jonc.dev>

* Update .github/workflows/downstream-project-spl.yml

Co-authored-by: Jon Cinque <me@jonc.dev>

* add check

* update build and test

* add lacking programs

* remove unnecessary programs

---------

Co-authored-by: Jon Cinque <me@jonc.dev>
2023-08-16 11:12:15 +00:00
behzad nouri 52616cf7aa
removes repair socket from gossip ContactInfo (#32831)
Repair responses are sent back to the address the repair request came
from and there is no need to gossip repair socket address.
https://github.com/solana-labs/solana/blob/9212ac347/core/src/repair/serve_repair.rs#L519
2023-08-14 20:01:18 +00:00
Trent Nelson b83cef43fc
ci: allow local bypass of stale Cargo.lock check with custom variable instead of `CI` (#32798)
ci: don't use `CI` envvar to skip local stale Cargo.lock check

to enable
```bash
echo "export SOLANA_CI_ALLOW_STALE_CARGO_LOCK=" >> ~/.profile
```
2023-08-11 13:53:16 -06:00
HaoranYi dbe6d0353f
Allow pending changes for `test-checks.sh` for local build (#32728)
* Add `local` options for ci test-check script

* check  env instead

* remove usage()

---------

Co-authored-by: HaoranYi <haoran.yi@solana.com>
2023-08-06 09:29:12 -05:00
Trent Nelson 1ce26ecba0
remove references to eol helloworld example repo (#32550) 2023-07-20 00:35:54 -05:00
Ryo Onodera 6246d817d7
Add --fail to curl for more robust retries (#32494) 2023-07-14 09:34:59 +00:00
Yihau Chen 40249cdc9e
ci: fix spl test (#32471) 2023-07-13 07:37:18 +00:00
Ryo Onodera e6f5f8777a
Relax dcou dep. in order-crates-for-publishing.py (#32432)
* Relax dcou dep. in order-crates-for-publishing.py

* Comment, comment and comment...

* Avoid early-abort and report all collected errors
2023-07-13 14:22:07 +09:00
Yihau Chen 1aa075fc2f
ci: allow retrying publish-crate although passed (#32441)
ci: allow publish crate retry although passed
2023-07-11 12:34:22 +08:00
Yihau Chen 3fa3d266cd
ci: update rules for triggering all_test_steps (#32442)
ci: update rules for trigger all_test_steps
2023-07-10 20:02:33 +00:00
behzad nouri d54b6204be
removes instances of clippy::manual_let_else (#32417) 2023-07-09 21:41:36 +00:00
Ryo Onodera 18247431b9
Add special feature for inter-crate safe dev-related code reuse (#32169)
* Add dev-utils feature for inter-crate test code safe reuse

* Sanitize mode

* Fix typo...

* Use case/esac intead of if

* port to `cargo tree` + `jq`

* Fix typo...

* Properly abort on errors

* Add trailing commas

* Select only normal dependencies

* Use more concise comma-separated code

* Skip if taint packages are empty

* Fold long lines and format code a bit

* Fix shellcheck

* Improve jq query and remove uneeded marker feature

* Use folding heredoc giving up proper indenting..

* Use jq's alternative operator (//)

* Rename to dev-context-only-utils

* Fix typo...

---------

Co-authored-by: Trent Nelson <trent@solana.com>
2023-07-07 09:30:20 +09:00
Ryo Onodera 5a2beb9835
Install jq in docker (#32340) 2023-06-30 13:32:25 +09:00
Yihau Chen 66233576a1
ci: trigger shellcheck for .buildkite/hooks (#32329) 2023-06-29 17:34:36 +00:00