Skip to content

bb-workflow#1262

Closed
itsshantanu wants to merge 58 commits intosablier-labs:stagingfrom
itsshantanu:test/bb-ci
Closed

bb-workflow#1262
itsshantanu wants to merge 58 commits intosablier-labs:stagingfrom
itsshantanu:test/bb-ci

Conversation

@itsshantanu
Copy link

This pull request introduces a new GitHub Actions workflow file to automate linting, building, and testing for the repository. The workflow is designed to streamline CI processes and ensure code quality for changes pushed to the main branch or submitted via pull requests.

Continuous Integration Setup:

  • .github/workflows/bb-ci-utils.yml: Added a new workflow named "BB-CI: Build and Test" that triggers on push, pull_request, and workflow_dispatch events. It includes three jobs:
    • lint: Runs the Forge linting workflow from sablier-labs/gha-utils.
    • build: Executes the Forge build workflow from sablier-labs/gha-utils.
    • test-utils: Runs the Forge test workflow with a test-optimized profile and focuses on tests/utils/**/*.sol files. This job depends on the completion of lint and build.

andreivladbrg and others added 30 commits February 7, 2025 01:15
* refactor: remove broker

* refactor: update benchmarks

* docs: correct spelling

test: deploy contracts in fork tests

* test: polishes

* test: small changes

* test: increase coverage

---------

Co-authored-by: smol-ninja <shubhamy2015@gmail.com>
* build: install evm-utils

refactor: remove Adminable logic from this repo
refactor: remove Batch logic from this repo
refactor: remove NoDelegateCall logic from this repo

refactor: use BaseScript from evm-utils

build: update evm utils

test: use evm utils common tests
test: remove mocks

refactor: remove no longer needed errors

* address shub's feedback

* build: update commit

test: declare the date in Defaults

* test: use UTC for feb 1 constant
…ablier-labs#1173)

* feat: return refunded amounts in cancel functions

* feat: make cancelMultiple non-reverting

* docs: polish natspec

---------

Co-authored-by: andreivladbrg <andreivladbrg@gmail.com>
* test(refactor): StreamIDs struct in Types

* test: use shorter name for the stream ids

---------

Co-authored-by: Andrei Vlad Birgaoanu <andreivladbrg@gmail.com>
* docs: rename VestingMath to StreamingMath

* refactor: rename functions to use short form

* docs: replace Longer form with Shorter form
* test: refactor fork tests

* test: fix bug

* test(fork): declare initialHolderBalance as uint128

test(fork): rename fuzzed param to create instead of lockup
test(defaults): remove unneeded function
test(assertions): add compare function for LockupLinear.UnlockAmounts

* move resetPrank above approve contract

---------

Co-authored-by: andreivladbrg <andreivladbrg@gmail.com>
* feat: implement aggregate balance logic

build: lower the optimizer runs

test: include aggregate balance assertions

* test(chore): correct inv string mess

* some nitpicks

---------

Co-authored-by: smol-ninja <shubhamy2015@gmail.com>
* build: bump evm-utils

refactor: update tests and scripts accordingly

* chore: move evm-utils under dependencies

* fix remappings path

* test(defaults): declare 6D cliff amount based on the 18D one

chore: set rules off in solhint.json

* refactor: remove unneeded params from scripts
* docs: refactor SECURITY doc

* docs: smol polish

---------

Co-authored-by: Paul Razvan Berg <prberg@proton.me>
* docs: improve writing in NatSpec

refactor: use more named params
test: fix typos in comments, and improve writing
test: new invariant for deposited amounts sum >= aggregate balance

* docs: improve writing in NatSpec

test: more specific descriptors

* docs: polish comments

* test(invariant): remove redundant invariant

---------

Co-authored-by: smol-ninja <shubhamy2015@gmail.com>
* chore: remove unused custom error

docs: add assumption about double entry-point tokens

* build: bump evm utils

build: lower optimizer runs to 50
feat: add native token logic
refactor: move modifier logic into private function
refactor: don't allow creation with native token
docs: improve assumption about double entry point token
test: update tests accordingly

* docs: add NatSpec for the token

* chore: rename custom error

docs: add more explanation for nativeToken

* typo

* build: 500 optimizer runs

* docs: polish comments
chore: add "test:bulloak" command
chore: add vscode formatter for json,md,svg,yaml
chore: remove file association
test(refactor): use setMsgSender
…s#1228)

* refactor: rename mapping to aggregateAmount

chore: add --nmt "testFork" in test lite

* chore: update comments

* test: polish invariants

* refactor: rename to "LockupMath"

---------

Co-authored-by: Paul Razvan Berg <prberg@proton.me>
chore: remove fs permissions from scripts
chore: recommend VSCode extensions
PaulRBerg and others added 21 commits April 15, 2025 18:52
chore: prettier ignore husky
chore: enable prose wrap only for Markdown files
* feat: access based control over collect fee function

* docs: polish comment

* refactor: prefix events with parent contract

* style: imports order rule in solhint

* build: bump evm-utils

* build: bumpo evm-utils
docs: fix inherited components
perf: use internal function to check role

Co-authored-by: Andrei Vlad Birgaoanu <andreivladbrg@gmail.com>

---------

Co-authored-by: Andrei Vlad Birgaoanu <andreivladbrg@gmail.com>
refactor: remove contract size check fron allowToHook

test: remove unneeded defaults

style: empty line between imports

docs: polish security assumption
* perf: refactor for code size optimization

* refactor: remove Recover, AllowToHook and SetNFTDescriptor events
perf: index streamId in events

* revet: emit AllowToHook and SetNFTDescriptor events
perf: index event parameters

* fix typo

* revert: move code from LockupMath to SablierLockup
perf: assign struct directly into the storage

* perf: forward variables without struct inside internal functions

* refactor: use sender address to check stream existence

---------

Co-authored-by: Andrei Vlad Birgaoanu <andreivladbrg@gmail.com>
* feat: add SablierLockupState contract

refactor: move all SablierLockupBase logic into  SablierLockup
refactor: update error names accordingly
test: update import paths accordingly

chore: reclassifying function headers

refactor: use native type for the constructor param

include token to sender check

* internal header in batch contract

* refactor(test): rename lockup-base directory to lockup-state
fix: inherited components
chore: order events and functions alphabetically

---------

Co-authored-by: smol-ninja <shubhamy2015@gmail.com>
* build: bump openzeppelin, evm-utils and forge-std
test: separate constants from defaults contract
test: use random address, rewind and skip from forge-std
test: fix expected error if token address is not contract
chore: rename bun scripts

* chore: just use solhint
refactor: functions classification in Sablier Lockup
* refactor: use comptroller

* perf: polish transferFeesToComptroller

docs: add natspec comments about comptroller
test: transferFeesToComptroller

* docs: polishes

test: admin to comptroller handler

* build: bump evm-utils commit

test: uncomment batch test

* build: bump evm-utils

test: update tests accordingly

* docs: improve transferFeesToComptroller natspec

* perf: uses ISablierComptroller in events
perf: removes feePaid variable from _withdraw
docs: polishes comments
test: sets comptroller as caller in modifier
chore: adds optional args in justfile

* script: fix just command

* chore: uses ETH_FROM in .env.example

* docs: polish comment

* revert: feePaid variable

* build: bump evm-utils

refactor: remove transfer fees function

* chore: remove unused code

---------

Co-authored-by: smol-ninja <shubhamy2015@gmail.com>
@smol-ninja smol-ninja closed this Jun 13, 2025
@smol-ninja
Copy link
Member

Reopening it. Refer to sablier-labs/gha-utils#43 for implementation in gha-utils repo.


Thanks for the PR @itsshantanu, it would have been a good idea to mention sablier-labs/gha-utils#43 in the PR description since both depends on each other.

@smol-ninja smol-ninja reopened this Jun 16, 2025
@smol-ninja smol-ninja self-requested a review June 16, 2025 10:33
@itsshantanu
Copy link
Author

Thanks for the feedback! You're absolutely right — I should have mentioned that in the PR description. I’ll make sure to include such cross-references in future PRs to improve clarity and context.

@smol-ninja
Copy link
Member

Hi @itsshantanu, I'm closing this PR as it now contains numerous conflicts. Could you please submit a new PR once the new features are implemented? We will then test the CI for all tests.

Also, thank you so much for your efforts on this PR, excellent work! I'm excited about using BuildBear CIs soon.

@smol-ninja smol-ninja closed this Nov 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants