-
Notifications
You must be signed in to change notification settings - Fork 295
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
feat: Use yarns topological build to get rid of explicit sequential steps, and let it solve. #4868
Merged
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
4c907af
Move noir subrepo
charlielye 4e9fe0a
path updates. only build needed packages.
charlielye e4c5d01
Merge remote-tracking branch 'origin' into cl/min_noir_build
charlielye 1359311
path fixes
charlielye dc2d741
path fixes
charlielye 1c6392e
path fixes
charlielye 43be395
Run all noir tests in ci. Slow. Might need splitting out into separat…
charlielye 6095911
fix dep
charlielye 8a668fe
Separate noir build and test.
charlielye c127417
fix
charlielye ae34166
No-repo was a bad idea. We really need it for build state tracking. U…
charlielye a15d06c
Docker too clever and nooped scratch. rm dir instead.
charlielye 4c67bbd
This might work.
charlielye e59a00f
fix
charlielye b62268d
fix
charlielye fad332f
Merge remote-tracking branch 'origin/master' into cl/min_noir_build
charlielye f5196d9
use yarn topological build
charlielye aa92c54
constants sol is handled out of ci.
charlielye 4a8ea92
Merge branch 'master' into cl/yp-build-improv
charlielye 90e5869
Fix dep
charlielye 9576162
fix
charlielye 5a7f0d7
Merge branch 'master' into cl/yp-build-improv
charlielye bab6c1c
Fast incremental.
charlielye 65931ed
Fallback to full build if incremental fails.
charlielye eb8dbce
prject ref
charlielye d21ea9e
constant generator shouldnt need foundation.
charlielye 842f461
Don't rebuild constants.
charlielye 95067ad
fix formatting
charlielye bf291a0
fix formatting
charlielye a71e690
fix formatting
charlielye 3b7d37b
Review cleanup.
charlielye 31b0de5
Performance improv
charlielye File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
# This base dockerfile adds all the remaining source files, performs artifact generation, and builds the project. | ||
# See yarn-project-base/Dockerfile for deeper insight into why things are how they are. | ||
# This should *only* build what is necessary to: | ||
# - Run the tests. | ||
# - Run the formatter checks. | ||
# Any subsequent build steps needed to support downstream containers should be done in those containers build files. | ||
# This base dockerfile adds all the remaining source files and builds the project. | ||
# See yarn-project-base/Dockerfile for why we have separate base Dockerfile. | ||
FROM aztecprotocol/l1-contracts as contracts | ||
FROM aztecprotocol/noir-projects as noir-projects | ||
FROM aztecprotocol/boxes-files as boxes-files | ||
|
@@ -13,15 +9,5 @@ COPY --from=contracts /usr/src/l1-contracts /usr/src/l1-contracts | |
COPY --from=noir-projects /usr/src/noir-projects /usr/src/noir-projects | ||
COPY --from=boxes-files /usr/src/boxes /usr/src/boxes | ||
COPY . . | ||
# Generate L1 contract TypeScript artifacts. | ||
RUN cd l1-artifacts && ./scripts/generate-artifacts.sh && rm -rf /usr/src/l1-contracts | ||
# This is actually our code generation tool. Needed to build contract typescript wrappers. | ||
RUN yarn workspace @aztec/noir-compiler build | ||
# Generates typescript wrappers. | ||
RUN yarn workspace @aztec/noir-contracts.js build | ||
# We need to build accounts as it needs to copy in account contracts from noir-contracts. | ||
RUN yarn workspace @aztec/accounts build:copy-contracts | ||
RUN yarn workspace @aztec/protocol-contracts build:copy-contracts | ||
RUN yarn workspace @aztec/noir-protocol-circuits-types build | ||
RUN yarn tsc -b | ||
RUN ./bootstrap.sh | ||
ENTRYPOINT ["yarn"] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. <3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
src/artifacts/*.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"scripts": { | ||
"build": "yarn clean && yarn build:contracts && yarn formatting:fix", | ||
"build:contracts": "./scripts/generate-types.sh", | ||
"build": "yarn clean && yarn generate", | ||
"generate": "./scripts/generate-types.sh && run -T prettier -w ./src", | ||
"clean": "rm -rf .tsbuildinfo ./artifacts ./codegenCache.json" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
src/artifacts/*.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can delete
PROJECTS
since it's left unused