Commit Graph

183 Commits

Author SHA1 Message Date
GoodDaisy 03386cc7b9
Fix typos (#34459)
* Fix typos

* Fix typos

* fix typo
2023-12-21 13:06:00 -07: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 f22a349541
chore: remove unused code (#33335)
remove unused code
2023-09-21 12:21:10 +08:00
Yihau Chen b4efbf07f7
ci: remove unstable options for stable tests (#33103) 2023-09-01 19:45:00 +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
mvines f202ccb033
Add rust-version field to solana-program to prevent the accidental use of unsupported platform-tools versions (#32232)
Require the rust-version of solana-program crate to match platform-tools
2023-06-23 21:48:56 -07:00
Yihau Chen 8a849718d2
ci: cleanup (#31196)
* extract threads limit script

* extract common functions

* mv need_to_generate_test_result need_to_upload_test_result
2023-04-14 20:37:07 +00:00
Dmitri Makarov 81ef2a0d75
Update references to platform-tools (#30764) 2023-03-22 07:41:40 -07:00
Ryo Onodera aaaee556d8
ci: silence ci test output while recording in full (#30654)
* ci: silence ci test output while recording in full

* shellcheck

* Adjust --color handling place

* Dump to stderr...

* Reduce too spammy solana_metrics logs

* Clean up

* Tweak

* Stash actual command's exit_code, not echo's
2023-03-16 22:17:29 +09:00
behzad nouri 3cc74a6087
updates tempfile to 3.4.0 (#30727)
Patching below rustsec advisory:

    Crate:     remove_dir_all
    Version:   0.5.3
    Title:     Race Condition Enabling Link Following and Time-of-check Time-of-use (TOCTOU)
    Date:      2023-02-24
    ID:        RUSTSEC-2023-0018
    URL:       https://rustsec.org/advisories/RUSTSEC-2023-0018
    Solution:  Upgrade to >=0.8.0
2023-03-15 18:25:35 -06:00
samkim-crypto 4a94eeee5e
Upgrade to token-2022 0.6.0 (#30353)
* upgrade spl-token-2022 to 0.6.0

* Add spl_token_2022-0.6.0.so to program-test

* cargo lock

* update account decoder tests to use Pubkey::new_from_array instead of Pubkey::new

* update rpc tests to use Pubkey::new_from_array instead of Pubkey::new

* update token-2022 .so file

* cargo lock

* increase the threshold for allowable rebuilds in ci

* update spl ATA to v1.1.3

* decrement back the threshold for allowable rebuilds

* cargo lock

* increment ci rebuild threshold
2023-03-10 10:32:19 +09:00
kirill lykov 8daed75df9
Add toolchain file usage (#29370)
* use cargo in cargo-for-all-lock-files.sh

* replace ./cargo with cargo in ci shell scripts

* remove ./cargo from test-stable.sh
2023-01-17 20:55:41 +01:00
Dmitri Makarov f05eb4a022
Temporary increase the build redundancy threshold (#29412) 2022-12-24 08:05:54 -08:00
ananas-block afc3fee937
added alt_bn syscalls (#27961)
* added alt_bn128_syscalls

* increased regression build redundancy to > 10
2022-11-21 17:43:06 +01:00
Trent Nelson c7d69d8a9b
Revert "DONOTMERGE: kick the ci job..."
This reverts commit 92e8ecb591.
2022-10-17 23:15:21 -06:00
Trent Nelson 92e8ecb591 DONOTMERGE: kick the ci job... 2022-10-17 21:56:54 -07:00
Dmitri Makarov d6813b98d2 chore: move programs/bpf to programs/sbf 2022-10-13 11:40:40 -04:00
Dmitri Makarov f4dd24491f Migrate SDK from BPF to SBF 2022-10-07 08:57:06 -04:00
Dmitri Makarov 6d25f21bc2 Adjust solana program threshold for stable tests in CI 2022-09-21 01:11:20 +00:00
Dmitri Makarov 5afefe7ea9 Lower the limit of solana-program rebuilds in CI stable tests 2022-09-19 12:08:01 -04:00
Yihau Chen 54129c4f16
chore: make docs test upload test result when needed (#27660) 2022-09-08 14:09:07 +08:00
Yihau Chen 8c1093534e
chore: only generate test result on specific branches (#27591)
* chore: only generate test result on specific branches

* lint
2022-09-07 11:39:06 +08:00
Yihau Chen 3a9bc4bf37
chore: upload test results to buildkite and datadog (#27139)
* export test-stable result

* export test-stable-perf result

* export test-local-cluster result

* export test-local-cluster-flakey result

* export test-local-cluster-slow-1 result

* export test-local-cluster-slow-2 result

* export test-docs result

* export test-stable-bpf result

* upload test result to buildkite and datadog
2022-08-16 13:20:29 +08:00
Tyera Eulberg dbd3b6b53a
Parse more token-2022 extensions and instructions (#26746)
* Bump spl-token-2022

* Support parsing InterestBearingConfig extension

* Parse InitializeNonTransferableMint instructions

* Parse InterestBearingMint instructions

* Bump solana-program rebuild threshold
2022-07-25 15:39:13 -06:00
Dmitri Makarov 0b78a213c3 Add a comment explaining the check for crate recompilation redundancy 2022-07-14 17:59:37 -07:00
Dmitri Makarov 27cee7a7de Compile for bpf target for compatibility when cargo-build-bpf is used 2022-07-14 10:41:39 -07:00
Dmitri Makarov b7e7e4159c Prevent cargo from running a non-BPF compiler for BPF target 2022-07-13 05:48:48 +00:00
Dmitri Makarov b1718422ce Add a check for rebuild regression due to dep features in cargo tomls 2022-07-12 15:12:22 -07:00
Nicholas Rempel 1ee4b412b2 Support local CI on macOS 2022-06-20 08:41:30 -07:00
Dmitri Makarov 4dfaf15a46 Add cargo bpf tools that invoke newer sbf tools and issue deprecation notice 2022-06-03 14:12:42 -07:00
Brooks Prumo e1866aacad
Move long-running local-cluster tests to local-cluster-slow (#24952) 2022-05-04 06:03:38 -05:00
Tyera Eulberg 65d33b3715
Split out rust doc tests in CI (#24397) 2022-04-15 19:40:27 -06:00
sakridge 1b7bc8b284
Limit compiler jobs if the machine has lower than 4gb/thread (#22704) 2022-01-28 23:46:46 +01:00
Justin Starry 0e1afcbb26
Split up local cluster tests into separate CI steps (#22295)
* Split up local cluster tests into separate CI steps

* Update buildkite-pipeline.sh
2022-01-05 14:44:15 +00:00
Dmitri Makarov 298c2d0f62
Display bpf-tools version in cargo-build-bpf version string (#22061)
* Display bpf-tools version in cargo-build-bpf version string

* Print cargo-build-bpf version in CI for reference in stable-bpf jobs
2021-12-22 23:10:25 +00:00
Michael Vines 488dc37fec Add wasm bindings for `Pubkey` and `Keypair` 2021-12-09 15:53:58 -08:00
Tyera Eulberg 95c2873b3c
Exit stable-bpf CI runs before localnet-sanity (#19016) 2021-08-02 18:00:36 +00:00
Jack May 0247c280ff
Run BPF program unit tests (#18982) 2021-07-30 15:15:06 -07:00
Trent Nelson f1996ca0f3 CI: Dump BPF assembly listings and upload as artifact 2021-07-10 12:14:37 -06:00
Trent Nelson 1eab0773af CI: Extricate BPF tests from stable-perf 2021-07-10 12:14:37 -06:00
Trent Nelson f213e48067 ci: nvidia persistence mode isn't a hard requirement 2021-06-24 22:14:54 -06:00
Jack May 878e52f0b9
Fix cargo-build/test-bpf --workspace (#16431) 2021-04-07 17:22:55 -07:00
Jack May 42ce2ba069
Use local cargo-test-bpf (#16427) 2021-04-07 18:08:55 +00:00
Jack May 476fd40948
Add program-test tests to bpf programs (#16407) 2021-04-07 01:47:15 -07:00
Dmitri Makarov 14e45155e4 Bump bpf-tools to v1.2 and get rid of xargo 2021-03-19 12:09:15 +01:00
Jack May bba1b49663
Generate keypair file for c program deployment (#15080)
* Generate keypair file for c program deployment

* Build and use solana-keygen in test-stable-perf
2021-02-04 13:56:12 -08:00
Trent Nelson 66c3c6c2b3 CI: Use branch-versioned cargo throughout 2020-11-05 05:05:57 +00:00
Trent Nelson 32c31f2689 CI: Don't remove user's config dir 2020-10-28 20:19:45 +00:00