sakridge
80c3591391
Bump version to 1.8.5 ( #21295 )
2021-11-16 11:58:57 -07:00
mergify[bot]
8bfba571f2
Make cargo-build-bpf clean up after failed installation of bpf-tools ( #21143 ) ( #21157 )
...
(cherry picked from commit 55d19e61da
)
Co-authored-by: Dmitri Makarov <dmakarov@users.noreply.github.com >
2021-11-15 23:45:15 +00:00
mergify[bot]
a05c08e711
Bump bpf-tools to v1.19 ( #21256 ) ( #21264 )
...
Toolchain upgrade to rust 1.56.0 and clang 13.0.
(cherry picked from commit 3f4f05865d
)
Co-authored-by: Dmitri Makarov <dmakarov@users.noreply.github.com >
2021-11-15 20:59:58 +00:00
Tyera Eulberg
09ef4d12f7
Bump version to 1.8.4 ( #21232 ) ( #21235 )
...
Co-authored-by: sakridge <sakridge@gmail.com >
2021-11-10 15:20:41 -07:00
Tyera Eulberg
74684a107c
Revert "Bump version to 1.8.4 ( #21232 )"
...
This reverts commit 19b3ba0442
.
2021-11-10 11:19:39 -07:00
sakridge
19b3ba0442
Bump version to 1.8.4 ( #21232 )
2021-11-10 16:38:44 +01:00
Tyera Eulberg
8dd3c1ece1
Bump version to v1.8.3 ( #21040 )
2021-10-28 11:17:11 -06:00
Trent Nelson
23b6ce7980
Bump version to 1.8.2
2021-10-21 00:43:40 -06:00
mergify[bot]
63e37b2b20
Remove @brief annotations from Rust API docs (backport #20769 ) ( #20807 )
...
* Remove @brief annotations from Rust API docs (#20769 )
(cherry picked from commit d9b0fc0e3e
)
# Conflicts:
# programs/bpf/rust/invoke/src/instructions.rs
# programs/bpf/rust/invoke/src/processor.rs
# programs/bpf/rust/realloc/src/instructions.rs
# programs/bpf/rust/realloc/src/lib.rs
# programs/bpf/rust/realloc/src/processor.rs
# programs/bpf/rust/realloc_invoke/src/instructions.rs
# programs/bpf/rust/realloc_invoke/src/lib.rs
# programs/bpf/rust/realloc_invoke/src/processor.rs
# sdk/cargo-build-bpf/tests/crates/fail/src/lib.rs
# sdk/src/precompiles.rs
* Fix conflicts
Co-authored-by: Brian Anderson <andersrb@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-10-19 19:17:33 -06:00
Tao Zhu
348ba57b12
Bump version to 1.8.1
2021-10-06 17:57:06 -07:00
Trent Nelson
a4df784e82
Bump version to 1.8.0
2021-10-06 15:48:23 -06:00
Tyera Eulberg
734b380cdb
Bump version to v1.7.15 ( #20338 )
2021-09-30 10:51:34 -06:00
sakridge
fec15f69f4
Increment 1.7 version ( #20316 )
2021-09-29 15:37:45 -04:00
Dmitri Makarov
458ccecb5d
Bump bpf-tools version to 1.12
...
(cherry picked from commit e98a7504f2
)
2021-09-24 18:05:13 +02:00
sakridge
70d556782b
Bump 1.7 version ( #19943 )
2021-09-16 13:16:09 -06:00
Justin Starry
73e97aab5b
Recover from interrupted bpf sdk installs ( #19651 )
2021-09-10 20:02:52 -07:00
mergify[bot]
f786d1d0f3
cargo-build-bpf: allow sdk path to be set by environment variables ( #19509 )
...
In many Linux distros such as NixOS, the directory in which packages are
installed is assumed to be read-only. To work around this, it is
expected that the filepaths which packaged CLI tools take in are able to
be freely configured through either 1) command-line flags, 2)
environment variables, or 3) a configuration file.
In this commit, environment variables 'BPF_SDK_PATH' and 'BPF_OUT_PATH',
which map respectively to command-line flags '--bpf-sdk-path' and
'--bpf-out-dir', are now handled in cargo-build-bpf.
Additionally, given that arbitrary filepaths may now be set in which the
BPF SDK is located, the requirement in which
'$BPF_SDK_PATH/dependencies/bpf-tools' must strictly be a symbolic link
to the directory '$HOME/.cache/solana/${bpf-tools.version}/bpf-tools has
been relaxed.
Ideally, the directory in which bpf-tools is expected to be downloaded
to and stored should be configurable. Though, this commit serves as a
temporary fix which enables NixOS users to now start being able to build
applications with the Solana SDK.
Co-authored-by: Kenta Iwasaki <kenta@lithdew.net >
2021-09-09 12:29:33 +00:00
mergify[bot]
b360c90d21
Add cargo-build-bpf integration tests (backport #18255 ) ( #19720 )
...
* Add cargo-build-bpf integration tests
(cherry picked from commit cf25729eaa
)
* reduce version number
Co-authored-by: Dmitri Makarov <dmakarov@alumni.stanford.edu >
Co-authored-by: Justin Starry <justin@solana.com >
2021-09-08 23:31:13 +00:00
mergify[bot]
a2b435916d
Fix handling of stale links to bpf-tools in cargo-build-bpf ( #17772 ) ( #19667 )
...
(cherry picked from commit 910ac94a8c
)
Co-authored-by: Dmitri Makarov <dmakarov@users.noreply.github.com >
2021-09-06 22:23:40 +00:00
Tyera Eulberg
f73a61d2ec
Bump version to 1.7.12
2021-08-27 16:24:24 +00:00
mergify[bot]
58bef3a94b
Allow closing upgradeable program accounts (backport #19319 ) ( #19411 )
...
* Allow closing upgradeable program accounts (#19319 )
(cherry picked from commit a89f180145
)
# Conflicts:
# programs/bpf_loader/src/lib.rs
# programs/bpf_loader/src/syscalls.rs
# sdk/src/feature_set.rs
* resolve conflicts
Co-authored-by: Jack May <jack@solana.com >
Co-authored-by: Justin Starry <justin@solana.com >
2021-08-27 08:56:51 +00:00
mergify[bot]
ef336a44a1
change untar to use unpack instead of unpack_in (backport #19216 ) ( #19340 )
...
* change untar to use unpack instead of unpack_in (#19216 )
* change untar to use unpack instead of unpack_in
* hacky, but maybe passes tests
* chore: bump tar from 0.4.35 to 0.4.37
Bumps [tar](https://github.com/alexcrichton/tar-rs ) from 0.4.35 to 0.4.37.
- [Release notes](https://github.com/alexcrichton/tar-rs/releases )
- [Commits](https://github.com/alexcrichton/tar-rs/compare/0.4.35...0.4.37 )
---
updated-dependencies:
- dependency-name: tar
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
* [auto-commit] Update all Cargo lock files
* cleanup
* cleanup, add validate_inside_dst
* collapse use
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
* delete comment line
* add comments
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com >
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
(cherry picked from commit 89a31ff473
)
# Conflicts:
# Cargo.lock
# download-utils/Cargo.toml
# install/Cargo.toml
# programs/bpf/Cargo.lock
# runtime/Cargo.toml
# sdk/cargo-build-bpf/Cargo.toml
* Fix conflicts
Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2021-08-20 17:13:35 +00:00
Trent Nelson
ab5d032634
Bump version to v1.7.11
2021-08-12 06:55:18 +00:00
Trent Nelson
b7f1f19d8e
Bump version to v1.7.10
2021-07-31 01:19:33 -06:00
Michael Vines
548ddff7ed
Bump version to v1.7.9
2021-07-24 11:23:44 -06:00
Ryo Onodera
1cc8de0fed
Bump version to v1.7.8 ( #18866 )
2021-07-24 01:14:03 +09:00
mergify[bot]
1cdcabf7cf
Bump BPF tools to v1.9 ( #18766 )
...
(cherry picked from commit 47861fc373
)
Co-authored-by: Dmitri Makarov <dmakarov@alumni.stanford.edu >
2021-07-19 20:46:59 +00:00
Trent Nelson
19049ca91b
Bump version to v1.7.7
2021-07-17 08:42:22 +00:00
sakridge
551dc0a74c
Bump 1.7 version ( #18723 )
2021-07-16 09:43:18 -06:00
Trent Nelson
4466aa39c4
Bump version to v1.7.5
2021-06-30 22:55:01 -06:00
Trent Nelson
597429ab3e
Bump version to v1.7.4
2021-06-22 19:57:34 +00:00
mergify[bot]
0e7512a225
Fix Nightly Clippy Warnings (backport #18065 ) ( #18070 )
...
* chore: cargo +nightly clippy --fix -Z unstable-options
(cherry picked from commit 6514096a67
)
# Conflicts:
# core/src/banking_stage.rs
# core/src/cost_model.rs
# core/src/cost_tracker.rs
# core/src/execute_cost_table.rs
# core/src/replay_stage.rs
# core/src/tvu.rs
# ledger-tool/src/main.rs
# programs/bpf_loader/build.rs
# rbpf-cli/src/main.rs
# sdk/cargo-build-bpf/src/main.rs
# sdk/cargo-test-bpf/src/main.rs
# sdk/src/secp256k1_instruction.rs
* chore: cargo fmt
(cherry picked from commit 789f33e8db
)
* Updates BPF program assert_instruction_count tests.
(cherry picked from commit c1e03f3410
)
# Conflicts:
# programs/bpf/tests/programs.rs
* Resolve conflicts
Co-authored-by: Alexander Meißner <AlexanderMeissner@gmx.net >
Co-authored-by: Michael Vines <mvines@gmail.com >
2021-06-18 20:02:48 +00:00
Stephen Akridge
d159ae9342
Bump version to v1.7.3
2021-06-17 15:34:50 -06:00
mergify[bot]
af2a6106da
Check for undefined symbols in .so and warn about run-time errors ( #17850 ) ( #17880 )
...
(cherry picked from commit c684e2bdc0
)
Co-authored-by: Dmitri Makarov <dmakarov@users.noreply.github.com >
2021-06-11 00:03:17 +00:00
Ryo Onodera
48e565038a
Bump version to v1.7.2 ( #17831 )
2021-06-08 10:29:39 +00:00
Michael Vines
975c942ea7
Bump version to v1.7.1
2021-06-02 05:21:14 +00:00
mergify[bot]
3c7c6dacfb
Add BPF rustc option to reduce the optimizations to safer level ( #17590 ) ( #17594 )
...
(cherry picked from commit 831e87c65d
)
Co-authored-by: Dmitri Makarov <dmakarov@users.noreply.github.com >
2021-05-31 19:15:56 +00:00
mergify[bot]
8ec09884b8
Revert bpf-tools to version 1.8 because of a codegen bug suspicion ( #17568 ) ( #17577 )
...
(cherry picked from commit 2316ddb90a
)
Co-authored-by: Dmitri Makarov <dmakarov@users.noreply.github.com >
2021-05-28 11:10:14 +00:00
Lijun Wang
54f0fc9f0f
Use type alias for DownloadProgress callback ( #17518 )
...
Convert to use type alias for the callback and cascade the changes to callers. Thanks @jeffwashington for the help making it possible.
Changed the closure for the progress update in the validator main to FnMut and modify the abort count in the closure which is more reliable.
2021-05-26 13:26:07 -07:00
Lijun Wang
4c17243157
snapshot download enhancement ( #17415 )
...
1. Allow the validator bootstrap code to specify the minimal snapshot download speed. If the snapshot download speed is detected below that, a different RPC can be retried. The default is 10MB/sec.
2. To prevent spinning on a number of sub-optimal choices and not making progress, the abort/retry logic is implemented with the following safe guards:
2.1 at maximum we do this retry for 5 times -- this number is configurable with default 5.
2.2 if the download in one notification round (5 second) is more than 2%, do not do retry -- it is not as bad anyway.
2.3 if the remaining estimate time is less than 1 minutes, do not abort retry as it will be done quickly anyway.
2.4 We do this abort/retry logic only at the first notification to avoid wasting download efforts -- the reasoning is being opportunistic and too greedy may not achieve overall shorter download time.
3. The download_snapshot and download_file is modified with the option allowing caller to notified of download progress via a callback. This allows the business logic of retrying to the place it belongs.
2021-05-25 09:32:12 -07:00
Dmitri Makarov
2ae57c172a
Bump bpf-tools version to 1.9
...
- upgrade rustc to 1.52.1 and clang to 12.0
2021-05-20 11:35:37 +02:00
Dmitri Makarov
ab871ed4b7
Bump bpf-tools version to 1.8
2021-05-18 08:10:57 +02:00
Dmitri Makarov
88626b2945
Bump bpf-tools version to 1.7 ( #17176 )
2021-05-11 19:51:20 +00:00
Dmitri Makarov
77272a17b3
Fix dump postprocessing in cargo-build-bpf ( #17165 )
2021-05-11 09:24:12 +00:00
Dmitri Makarov
db3bca7edd
Add llvm feature option to compile for Solana BPF target ( #16495 )
2021-04-13 07:20:18 +00:00
Dmitri Makarov
78d1d59889
Augment BPF binary dumps to resolve call instruction targets
2021-04-12 18:36:41 +02:00
Jack May
878e52f0b9
Fix cargo-build/test-bpf --workspace ( #16431 )
2021-04-07 17:22:55 -07:00
Dmitri Makarov
1359bceb5d
Bump bpf-tools to version v1.5 ( #16331 )
...
The new version of bpf-tools eliminates the separate
rust-bpf-sysroot. The Rust standard libraries for the BPF target are
built in tree when the compiler is built. The standard libraries code
is slightly more optimized and some reduction of compute budget can be
expected with this version of bpf-tools.
2021-04-04 13:04:22 +00:00
Dmitri Makarov
658ddd1c9c
Bump bpf-tools to version v1.4 ( #16152 )
2021-03-26 19:21:41 +00:00
Michael Vines
07273bfa9e
Show bpf-tools download progress
2021-03-25 12:23:51 -07:00