Closed JasoonS closed 2 years ago
What's your version locally? When was this pipeline run the last time?
It is not possible to pin to something that is not nightly yet (and we only keep the last 3 nightlies), as we are still not in a stable state. We're moving fast and things will break, so we currently require people to update. We're moving towards a stable release, which you can follow here: https://github.com/foundry-rs/foundry/milestone/1
If your Forge version does not say 0.2.0, then you are out of date: run foundryup
again. If running foundryup
does not get you to 0.2.0, then your foundryup
is out of date and you need to reinstall that as well.
Going to close this issue since there is no way for us to support pinning to a non-nightly version until we cut a stable release :slightly_frowning_face: If you still have issues, reach out on our support Telegram or report your bugs to the main Foundry repo
Thanks locally I have the latest version, I have run foundryup
.
The issue isn't that I can't pin a stable version - that was just a side comment.
The issue is that forge build
doesn't work in the pipeline (with same version of forge locally and on remote) but it works locally.
Additionally, going back and re-running a pipeline that passed 1 week ago now fails.
Maybe this is a problem with upstream forge?
I would urge you to open an issue in the Foundry repo with some reproduction steps so we can resolve the issue :smile:
Sure, will give that a try when I get a chance!
I worked out what was breaking the pipeline. SMT stuff was the culprit. Somethiing related to that must have changed in forge.
Removing the following from my foundry.toml
fixed it:
## NOTE: the below configuration isn't woring properly yet. Needs some work.
# https://docs.soliditylang.org/en/latest/smtchecker.html
[ci.model_checker]
contracts = { 'contracts/market/template/MarketTieredLeverage.sol' = [
'MarketTieredLeverage',
] }
engine = 'chc' # or 'all'/'bmc'
timeout = 10000
targets = [
'assert',
'divByZero',
'underflow',
'overflow',
'divByZero',
'constantCondition',
'popEmptyArray',
'outOfBounds',
] # not included: 'balance'
Rerunning old tests also breaks on tests that used to pass, so potentially something new in the latest foundry is causing an issue.
It would be super nice to be able to specify a fixed version of foundry rather than nightly to prevent these kinds of issues in the future.
Here is my pipeline:
I'm unable to replicate this failure locally, and multiple people from my team also don't have the issue locally, so it seems like it is something about how the pipeline takes the output from build.