Skip to content

fix(ci): contracts test names check failures#13034

Merged
mslipper merged 1 commit intodevelopfrom
sc/fix-contracts-test-check
Nov 22, 2024
Merged

fix(ci): contracts test names check failures#13034
mslipper merged 1 commit intodevelopfrom
sc/fix-contracts-test-check

Conversation

@smartcontracts
Copy link
Copy Markdown
Contributor

lint-forge-tests-check-no-build was causing issues in CI because it was running as part of contracts-bedrock-checks which depends on contracts-bedrock-build. contracts-bedrock-build builds the contract files EXCEPT for tests whenever contracts-bedrock has changed. This means that contracts-bedrock-build would not build any test files and therefore lint-forge-tests-check-no-build would not find any test files to check and the job would do nothing. However, when contracts-bedrock is NOT changed, the build job gets the full set of artifacts INCLUDING test artifacts from the cache. This would trigger the full check to actually be run and it would properly fail.

This PR moves that particular check into contracts-bedrock-tests so that it's guaranteed to have all of the compiled contracts.

lint-forge-tests-check-no-build was causing issues in CI because
it was running as part of contracts-bedrock-checks which depends
on contracts-bedrock-build. contracts-bedrock-build builds the
contract files EXCEPT for tests whenever contracts-bedrock has
changed. This means that contracts-bedrock-build would not build
any test files and therefore lint-forge-tests-check-no-build would
not find any test files to check and the job would do nothing.
However, when contracts-bedrock is NOT changed, the build job gets
the full set of artifacts INCLUDING test artifacts from the cache.
This would trigger the full check to actually be run and it would
properly fail.

This PR moves that particular check into contracts-bedrock-tests
so that it's guaranteed to have all of the compiled contracts.
@smartcontracts smartcontracts requested review from a team and clabby November 22, 2024 17:24
@mslipper
Copy link
Copy Markdown
Contributor

nice catch

@mslipper mslipper enabled auto-merge November 22, 2024 17:26
@mslipper mslipper added this pull request to the merge queue Nov 22, 2024
Merged via the queue into develop with commit d139cc9 Nov 22, 2024
@mslipper mslipper deleted the sc/fix-contracts-test-check branch November 22, 2024 17:40
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.

2 participants