Commit Graph

1441 Commits

Author SHA1 Message Date
Yihau Chen 4cc7b90484
v2.0: ignore tonic audit report (#3051)
* fix audit

* add more comment
2024-10-02 23:56:43 +08:00
Yihau Chen 0ab59bff26
v2.0: ci: increase timeout for check3 (#3017) 2024-09-28 10:05:04 -05:00
Alexander Meißner eceaf3433b
CI - SBPF program build script (#1581)
* Replaces the rust build script by a makefile
2024-06-20 13:40:00 +02:00
Yihau Chen a6bc917f36
ci: ignore curve25519-dalek audit temporarily (#1786)
ci: ignore curve25519-dalek audit
2024-06-19 12:12:57 +08:00
Alexander Meißner da6f7f2d31
Refactor - Avoid host build of SBPF program test crates (#1711)
* Removes ProgramTest from simulation tests.

* Removes ProgramTest from sysvar syscall tests.

* Workaround for rustc crash caused by 16 byte aligned memcpy.

* Deduplicates test_program_sbf_sanity.

* Moves mem and remaining_compute_units into test_program_sbf_sanity().

* Removes unused dev-dependencies in Cargo.toml.

* Removes crate-type = lib from Cargo.tomls.

* Adds SBF_OUT_DIR env to CI script.

* Adds "sysvar" to build.rs.
2024-06-18 23:10:40 +02:00
Yihau Chen 805d9c36a3
chore: bump sccache to 0.8.1 (#1557) 2024-06-04 09:49:25 +00:00
Yihau Chen a31353ce0d
ci: update crate owner pipeline (#1497)
* ci: update crate owner pipeline

* trigger pipeline correctly

* XXX test pipeline

* Revert "XXX test pipeline"

This reverts commit e45c23012c41b25164c44ec6204f26e3369bee4d.

* use a proper name

* XXX: trigger pipeline

* Revert "XXX: trigger pipeline"

This reverts commit 54397d3b64dc43d6338852cf926488838743198c.
2024-05-30 11:05:08 +08:00
Yihau Chen 1f3ef3325f
chore: bump rust stable to v1.78.0, nightly to 2024-05-02 (#1309)
* bump stable to v1.78.0

* bump nightly to 2024-05-02

* clippy: non_local_definitions
2024-05-29 11:58:31 +08:00
Yihau Chen ff21dbedde
ci: move dependabot updating process to Gtihub Actions (#1466)
* add dependabot-pr Github Actions

* move updating dependabot pr process to Github Actions

* update user.email and user.name to dependabot itself

* only add for cargo.lock

* don't push anything if nothing to update
2024-05-27 12:26:21 +08:00
Ryo Onodera 911186d483
Restore log coverage along with misc niceties (#1328) 2024-05-14 14:51:56 +09:00
Yihau Chen 186befeba9
ci: source based coverage (#1260)
* ci: source based coverage

* point to file explorer

* fix sanity

* break line

* pass @ arg from ci/coverage to script/coverage

* move source script to the top

* direct to the summary page

* explain why nightly

* don't rug orignal rustflag

* rearrange args order

* bring back the trace level logging

* remove _

* fix log level

* add reference to envs

* put cov result into target/cov

* move output to target/cov

* XXX hack buildkite pipeline

* XXX: test for no log

* Revert "XXX hack buildkite pipeline"

This reverts commit effb72e78fa1a46e6e7f9b8a3791e8cc8dc1903e.

* Revert "XXX: test for no log"

This reverts commit 975482de9b21129f9ddd1d19d39d8f60500445e5.

* don't use trace log level temporarily

* only search coverage report in the main folder
2024-05-13 13:37:10 +08:00
Yihau Chen 2b18357377
ci: add llvm-tools-preview (#1261) 2024-05-10 17:33:59 +00:00
Yihau Chen 206a87ab5d
ci: don't self-update rustup when using the rust-version script (#1209)
* ci: don't update rustup when using the rust-version script

* XXX: fake updates for triggering all

* Revert "XXX: fake updates for triggering all"

This reverts commit b343e61ad36f4b2108b06faa66c2525b6eedad33.
2024-05-07 17:38:32 +08:00
Xuanwo a92145707c
ci: Remove all travis ci related staffs (#912)
Signed-off-by: Xuanwo <github@xuanwo.io>
2024-04-23 13:05:01 +08:00
Ryo Onodera 0b9c6379b3
Introduce SchedulingStateMachine for unified scheduler (#129)
* Introduce SchedulingStateMachine

* Apply all typo fixes from code review

Co-authored-by: Andrew Fitzgerald <apfitzge@gmail.com>

* Update word wrapping

* Clarify Token::assume_exclusive_mutating_thread()

* Use slice instead of &Vec<_>

* Improve non-const explanation

* Document consecutive readonly rescheduling opt.

* Make test_gradual_locking terminate for miri

* Avoid unnecessary Task::clone()

* Rename: lock_{status,result} and no attempt_...()

* Add safety comment for get_account_locks_unchecked

* Reduce and comment about Page::blocked_tasks cap.

* Document SchedulingStateMachine::schedule_task()

* Add justification of closure in create_task

* Use the From trait for PageUsage

* Replace unneeded if-let with .expect()

* Add helpful comments for peculiar crossbeam usage

* Fix typo

* Make bug-bounty-exempt statement more clear

* Add test_enfoced_get_account_locks_verification

* Fix typos...

* Big rename: Page => UsageQueue

* Document UsageQueueLoader

* Various minor cleanings for beautifier diff

* Ensure reinitialize() is maintained for new fields

* Remove uneeded impl Send for TokenCell & doc upd.

* Apply typo fixes from code review

Co-authored-by: Andrew Fitzgerald <apfitzge@gmail.com>

* Merge similar tests into one

* Remove test_debug

* Remove assertions of task_index()

* Fix UB in TokenCell

* Make schedule_task doc comment simpler

* Document deschedule_task

* Simplify unlock_usage_queue() args

* Add comment for try_unblock() -> None

* Switch to Option<Usage> for fewer assert!s

* Add assert_matches!() to UsageQueue methods

* Add panicking test case for ::reinitialize()

* Use UsageFromTask

* Rename: LockAttempt => LockContext

* Move locking and unlocking methods to usage queue

* Remove outdated comment...

* Remove redundant fn: pop_unblocked_usage_from_task

* Document the index of task

* Clarifty comment a bit

* Update .current_usage inside try_lock()

* Use inspect_err to simplify code

* fix ci...

* Use ()...

* Rename: schedule{,_next}_unblocked_task()

* Rename: {try_lock,unlock}_{for_task,usage_queues}

* Test solana-unified-scheduler-logic under miri

* Test UB to illustrate limitation of TokenCell

* Test UB of using multiple tokens at the same time

---------

Co-authored-by: Andrew Fitzgerald <apfitzge@gmail.com>
2024-04-05 08:58:33 +09:00
Ryo Onodera 798cb561e1
Support running miri in ci (#534)
* Support running miri in ci

* fail fast...

* wait miri is still not stable?

* clean up

* fmt

* Move to Dockerfile
2024-04-02 19:25:51 +09:00
Tyera d140cdbeab
Update crate check to new crates.io error string (#484) 2024-03-29 00:42:09 -06:00
Yihau Chen 3f9a7a52ea [anza migration] rename crates (#10)
* rename geyser-plugin-interface

* rename cargo registry

* rename watchtower

* rename ledger tool

* rename validator

* rename install

* rename geyser plugin interface when patch
2024-03-03 12:31:24 +08:00
Yihau Chen b0022d73ea [anza migration] ci (#5)
* Update README.md

* ci: update CodeCov report link

* ci: update github pr link

* ci: rename secondary pipeline

* replace org name in .mergify

* update channel info link

* update dependabot pr link

* use anza docker image

* delete travis

---------

Co-authored-by: Will Hickey <will.hickey@solana.com>
2024-03-03 12:31:24 +08:00
Yihau Chen 9355518424 [anza migration] replace binaries backend (#6)
* ci: add upload-gcs-artifact

* ci: publish release binaries to GCS

* ci: redirect github repo to anza-xyz

* ci: publish windows binaries to GCS

* replace release.solana.com with release.anza.xyz

* use a explicit name for credential
2024-03-03 12:31:24 +08:00
Lucas Steuernagel a97f26e2a3
Build `transfer-hook` for downstream project (#35245)
* Build transfer hook for downstream project

* Add transfer hook example to programs list
2024-02-21 14:21:12 -03:00
Yihau Chen 8363ebfd64
ci: merge docker images (#35078)
* ci: add new ci docker image

* ci: use the new docker image

* fix shellcheck

* add readme for the new docker image

* remove old docker images

* remove unused check in docs/build.sh

* use the new image in net.sh
2024-02-07 15:17:33 +08:00
Yihau Chen f9bfb60c83
ci: publish crates directly (#34794) 2024-01-22 10:43:21 +08:00
Brooks 39976ccb0b
Upgrades Rust nightly to 2024-01-05 (#34673) 2024-01-09 09:07:29 -05:00
Brooks 26d058185e
Upgrades Rust to 1.75.0 (#34607) 2023-12-30 05:15:49 +00:00
GoodDaisy 03386cc7b9
Fix typos (#34459)
* Fix typos

* Fix typos

* fix typo
2023-12-21 13:06:00 -07:00
Ryo Onodera d2b5afc410
Finish unified scheduler plumbing with min impl (#34300)
* Finalize unified scheduler plumbing with min impl

* Fix comment

* Rename leftover type name...

* Make logging text less ambiguous

* Make PhantomData simplyer without already used S

* Make TaskHandler stateless again

* Introduce HandlerContext to simplify TaskHandler

* Add comment for coexistence of Pool::{new,new_dyn}

* Fix grammar

* Remove confusing const for upcoming changes

* Demote InstalledScheduler::context() into dcou

* Delay drop of context up to return_to_pool()-ing

* Revert "Demote InstalledScheduler::context() into dcou"

This reverts commit 049a126c905df0ba8ad975c5cb1007ae90a21050.

* Revert "Delay drop of context up to return_to_pool()-ing"

This reverts commit 60b1bd2511a714690b0b2331e49bc3d0c72e3475.

* Make context handling really type-safe

* Update comment

* Fix grammar...

* Refine type aliases for boxed traits

* Swap the tuple order for readability & semantics

* Simplify PooledScheduler::result_with_timings type

* Restore .in_sequence()

* Use where for aesthetics

* Simplify if...

* Fix typo...

* Polish ::schedule_execution() a bit

* Fix rebase conflicts..

* Make test more readable

* Fix test failures after rebase...
2023-12-19 09:50:41 +09:00
Tyera e6e191f843
CI: add check for explicit spl-token-cli version (#34430)
* Add script to specify spl-token-cli version

* Add check for spl-token-cli version to CI

* Add minor release branch cleanup instruction to unblock CI on the new stable branch

---------

Co-authored-by: Will Hickey <will.hickey@solana.com>
2023-12-14 10:18:34 -07:00
joao 0a3a0165ad
Documentation Improvements: Typos and Grammar Fixes (#34461)
* fix typo: Change 'store it the recipient address' to 'store it in the recipient address'

* fix grammar in documentation: Remove 'of' from 'Both of docker images' and add 'is' to 'This image manually maintained'

* fix duplicate word in 'Voting Algorithm' section
2023-12-14 16:44:30 +00:00
joao 05dae592f4
Enhancements to Solana's Documentations for Better Clarity (#34386)
* fix grammatical error in Incident Response Process section

* Fix typo in setup instructions

* Fixed grammatical errors in documentation: corrected article usage, pluralization, and singular form in database reference

* Fix typos in documentation: Correct 'In oder' to 'In order', fix 'enviroment' to 'environment', correct 'reults' to 'results' in Ping Results section, and change 'engress' to 'egress' in CUDA section.

* Fix grammatical errors in documentation

* Fix grammatical issues in documentation

Correct subject-verb agreement in transaction balance description and clarify execution of instructions in a transaction.
2023-12-12 15:26:14 -05:00
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