Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump NPM and Forge dependencies #14093

Merged
merged 22 commits into from
Aug 26, 2024
Merged

Bump NPM and Forge dependencies #14093

merged 22 commits into from
Aug 26, 2024

Conversation

RensR
Copy link
Contributor

@RensR RensR commented Aug 12, 2024

No description provided.

Copy link
Contributor

I see you updated files related to core. Please run pnpm changeset in the root directory to add a changeset as well as in the text include at least one of the following tags:

  • #added For any new functionality added.
  • #breaking_change For any functionality that requires manual action for the node to boot.
  • #bugfix For bug fixes.
  • #changed For any change to the existing functionality.
  • #db_update For any feature that introduces updates to database schema.
  • #deprecation_notice For any upcoming deprecation functionality.
  • #internal For changesets that need to be excluded from the final changelog.
  • #nops For any feature that is NOP facing and needs to be in the official Release Notes for the release.
  • #removed For any functionality/config that is removed.
  • #updated For any functionality that is updated.
  • #wip For any change that is not ready yet and external communication about it should be held off till it is feature complete.

🎖️ No JIRA issue number found in: PR title, commit message, or branch name. Please include the issue ID in one of these.

@RensR RensR marked this pull request as ready for review August 15, 2024 10:24
@RensR RensR requested review from a team and austinborn as code owners August 15, 2024 10:24
@RensR RensR requested a review from a team August 15, 2024 10:24
@RensR RensR added this pull request to the merge queue Aug 15, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 15, 2024
ibrajer
ibrajer previously approved these changes Aug 16, 2024
@RensR RensR requested review from a team as code owners August 26, 2024 07:57
Copy link
Contributor

Static analysis results are available

Hey @RensR, you can view Slither reports in the job summary here or download them as artifact here.

Please check them before merging and make sure you have addressed all issues.

# Conflicts:
#	.github/CODEOWNERS
#	.github/workflows/solidity-foundry.yml
@RensR RensR force-pushed the bump-dependencies branch from e529ef1 to 6830a85 Compare August 26, 2024 08:22
@@ -246,199 +246,3 @@ contract ArbitrumSequencerUptimeFeed_ProtectReadsOnAggregatorV2V3InterfaceFuncti
assertEq(answer, 0);
}
}

contract ArbitrumSequencerUptimeFeed_GasCosts is ArbitrumSequencerUptimeFeedTest {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Intentional removal

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did we remove them? Are they not needed / used anymore?

Copy link
Contributor Author

@RensR RensR Aug 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are "bad" tests that only exist in Foundry because they existed in Hardhat. Since Foundry has gas snapshots, these tests have no purpose. This type of test is generally bad as you need to update them for every tiny contract change. In this case, they broke CI because Foundry coverage has different gas usage compared to foundry test

@cl-sonarqube-production
Copy link

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

@@ -246,199 +246,3 @@ contract ArbitrumSequencerUptimeFeed_ProtectReadsOnAggregatorV2V3InterfaceFuncti
assertEq(answer, 0);
}
}

contract ArbitrumSequencerUptimeFeed_GasCosts is ArbitrumSequencerUptimeFeedTest {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did we remove them? Are they not needed / used anymore?

contracts/src/v0.8/vrf/test/VRFV2Plus.t.sol Show resolved Hide resolved
@@ -43,7 +43,7 @@ mockery: $(mockery) ## Install mockery.

.PHONY: foundry
foundry: ## Install foundry.
foundryup --version nightly-de33b6af53005037b463318d2628b5cfcaf39916
foundryup --version nightly-515a4cc8aba1627a717a1057ff4f09c8cd3bf51f
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

q: does the CI action now use this version automatically? Or do we still need to update something in the CI file? Previously we had an env for FOUNDRY_VERSION in solidity-foundry.yaml, but looks like we don't have it anymore

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, there's magic now! It actually reads this file now

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@RensR RensR added this pull request to the merge queue Aug 26, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 26, 2024
@RensR RensR added this pull request to the merge queue Aug 26, 2024
Merged via the queue into develop with commit 95ae744 Aug 26, 2024
168 of 170 checks passed
@RensR RensR deleted the bump-dependencies branch August 26, 2024 14:25
AnieeG pushed a commit that referenced this pull request Aug 30, 2024
* bump npm

* more npm

* bump foundry dep

* make snapshot

* rm gas tests

* fix change in gas cost

* fix blockhash, this breaks the proof

* Regenerated VRF proofs and fixed payment outputs in Foundry tests

* Updated gas cost for LINK payments in unit tests

* try with no coverage, exclude test files from Slither

* add support for extra code coverage params

* fix warnings and snapshot

* changeset

* fix codeowners

* fix tests and bump foundry

* add missing changes quantifier

---------

Co-authored-by: Iva Brajer <[email protected]>
Co-authored-by: Bartek Tofel <[email protected]>
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.

7 participants