Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Drop write lock on sysvars (bp #15497) #16233

Merged
merged 1 commit into from
Mar 31, 2021
Merged

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Mar 30, 2021

This is an automatic backport of pull request #15497 done by Mergify.


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.io/

* Drop write lock on sysvars

* adds env var for demoting sysvar write lock demotion

* moves demote logic to is_writable

* feature gates sysvar write lock demotion

* adds builtins to write lock demotion

* adds system program id to builtins

* adds Feature111...

* adds an abi-freeze test

* mvines set of builtin program keys

Co-authored-by: Michael Vines <mvines@gmail.com>

* update tests

* adds bpf loader keys

* Add test sysvar

* Plumb demote_sysvar to is_writable

* more plumbing of demote_sysvar_write_locks to is_writable

* patches test_program_bpf_instruction_introspection

* hard codes demote_sysvar_write_locks to false for serialization/encoding methods

* Revert "hard codes demote_sysvar_write_locks to false for serialization/encoding methods"

This reverts commit ae3e2d2.

* change the hardcoded ones to demote_sysvar_write_locks=true

* Use data_as_mut_slice

Co-authored-by: behzad nouri <behzadnouri@gmail.com>
Co-authored-by: Michael Vines <mvines@gmail.com>
(cherry picked from commit 54c68ea)
@mergify mergify bot added the automerge Merge this Pull Request automatically once CI passes label Mar 30, 2021
@mergify
Copy link
Contributor Author

mergify bot commented Mar 30, 2021

automerge label removed due to a CI failure

@mergify mergify bot added automerge Merge this Pull Request automatically once CI passes and removed automerge Merge this Pull Request automatically once CI passes labels Mar 30, 2021
@codecov
Copy link

codecov bot commented Mar 31, 2021

Codecov Report

Merging #16233 (84f677a) into v1.6 (634959b) will increase coverage by 0.0%.
The diff coverage is 90.0%.

@@           Coverage Diff            @@
##             v1.6   #16233    +/-   ##
========================================
  Coverage    80.0%    80.0%            
========================================
  Files         410      410            
  Lines      109009   109119   +110     
========================================
+ Hits        87210    87308    +98     
- Misses      21799    21811    +12     

@mergify mergify bot merged commit 20754a7 into v1.6 Mar 31, 2021
@mergify mergify bot deleted the mergify/bp/v1.6/pr-15497 branch March 31, 2021 20:23
@brooksprumo brooksprumo mentioned this pull request Aug 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
automerge Merge this Pull Request automatically once CI passes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant