Conversation
6ca7f6d to
f0a4de8
Compare
andrew-fleming
left a comment
There was a problem hiding this comment.
I'm getting the output now! Though, there's a ton of repetition. I assume this is not expected bc it differs from the PR comment output?—I'm running pnpm install && pnpm run compact (I also tried pnpm build:contracts with the same result). Can you confirm?
@midnight-dapps/access-contract:compact: > pnpm exec compact-compiler
@midnight-dapps/access-contract:compact:
ℹ [COMPILE] Compact Compiler startedact:
ℹ [COMPILE] COMPACT_HOME: /Users/johngalt/my-binaries
ℹ [COMPILE] COMPACTC_PATH: /Users/johngalt/my-binaries/compactc
ℹ [COMPILE] Found 3 .compact file(s) to compile
[COMPILE] [1/3] compactc AccessControl.compact
@midnight-dapps/access-contract:compact: (node:73762) [DEP0178] DeprecationWarning: dirent.path is deprecated in favor of dirent.parentPath
@midnight-dapps/access-contract:compact: (Use `node --trace-deprecation ...` to show where the warning was created)
ℹ [COMPILE] Compact Compiler started
ℹ [COMPILE] COMPACT_HOME: /Users/johngalt/my-binaries
ℹ [COMPILE] COMPACTC_PATH: /Users/johngalt/my-binaries/compactc
ℹ [COMPILE] Found 1 .compact file(s) to compile
[COMPILE] [1/1] compactc Index.compact
@midnight-dapps/compact-std:compact: (node:73763) [DEP0178] DeprecationWarning: dirent.path is deprecated in favor of dirent.parentPath
@midnight-dapps/compact-std:compact: (Use `node --trace-deprecation ...` to show where the warning was created)
ℹ [COMPILE] Compact Compiler startedmpact:
ℹ [COMPILE] COMPACT_HOME: /Users/johngalt/my-binaries
ℹ [COMPILE] COMPACTC_PATH: /Users/johngalt/my-binaries/compactc
ℹ [COMPILE] Found 2 .compact file(s) to compile
[COMPILE] [1/2] compactc Queue.compact
@midnight-dapps/structs-contracts:compact: (node:73764) [DEP0178] DeprecationWarning: dirent.path is deprecated in favor of dirent.parentPath
@midnight-dapps/structs-contracts:compact: (Use `node --trace-deprecation ...` to show where the warning was created)
@midnight-dapps/access-contract:compact: Compactc version: 0.23.0
@midnight-dapps/compact-std:compact: Compactc version: 0.23.0
@midnight-dapps/structs-contracts:compact: Compactc version: 0.23.0
✔ [COMPILE] [1/3] ✓ AccessControl.compact
[COMPILE] [2/3] compactc Index.compact
✔ [COMPILE] [1/1] ✓ Index.compactct:
@midnight-dapps/compact-std:compact:
✔ [COMPILE] [1/2] ✓ Queue.compact:compact:
[COMPILE] [2/2] compactc test/mock/MockQueue.compact
@midnight-dapps/access-contract:compact: Compactc version: 0.23.0
@midnight-dapps/structs-contracts:compact: Compactc version: 0.23.0
✔ [COMPILE] [2/3] ✓ Index.compactompact:
[COMPILE] [3/3] compactc test/mock/MockAccessControl.compact
@midnight-dapps/access-contract:compact: Compactc version: 0.23.0
@midnight-dapps/structs-contracts:compact: Compiling 3 circuits:
@midnight-dapps/structs-contracts:compact: circuit "dequeue" |
circuit "dequeue" (k=10) |
circuit "dequeue" (k=10, rows=250) |
circuit "dequeue" (k=10, rows=250) |
@midnight-dapps/access-contract:compact: Compiling 1 circuits:
circuit "dequeue" (k=10, rows=250) |
circuit "dequeue" (k=10, rows=250) |
circuit "dequeue" (k=10, rows=250) |
circuit "dequeue" (k=10, rows=250) |
circuit "dequeue" (k=10, rows=250) |
circuit "dequeue" (k=10, rows=250) |
circuit "dequeue" (k=10, rows=250) |
circuit "dequeue" (k=10, rows=250) /
circuit "dequeue" (k=10, rows=250) -
circuit "dequeue" (k=10, rows=250)
circuit "dequeue" (k=10, rows=250)
circuit "dequeue" (k=10, rows=250)
circuit "dequeue" (k=10, rows=250)
circuit "dequeue" (k=10, rows=250)
circuit "dequeue" (k=10, rows=250)
circuit "dequeue" (k=10, rows=250)
circuit "dequeue" (k=10, rows=250)
circuit "dequeue" (k=10, rows=250)
circuit "dequeue" (k=10, rows=250)
@midnight-dapps/structs-contracts:compact: circuit "enqueue" (k=10, rows=54)
@midnight-dapps/structs-contracts:compact: circuit "isEmpty" (k=10, rows=37) /
@midnight-dapps/access-contract:compact: circuit "testGrantRole" |
circuit "testGrantRole" (k=16) |
circuit "testGrantRole" (k=16, rows=58342) |
circuit "testGrantRole" (k=16, rows=58342) |
circuit "dequeue" (k=10, rows=250)
@midnight-dapps/structs-contracts:compact: circuit "enqueue" (k=10, rows=54)
circuit "dequeue" (k=10, rows=250)
circuit "dequeue" (k=10, rows=250)
circuit "dequeue" (k=10, rows=250)
circuit "dequeue" (k=10, rows=250)
@midnight-dapps/structs-contracts:compact: circuit "enqueue" (k=10, rows=54)
@midnight-dapps/structs-contracts:compact: circuit "isEmpty" (k=10, rows=37)
@midnight-dapps/structs-contracts:compact: Overall progress [====================] 3/3 ✔ [COMPILE] [2/2] ✓ test/mock/MockQueue.compact
@midnight-dapps/structs-contracts:compact:
circuit "testGrantRole" (k=16, rows=58342) \
circuit "testGrantRole" (k=16, rows=58342) |
circuit "testGrantRole" (k=16, rows=58342) /
circuit "testGrantRole" (k=16, rows=58342) -
circuit "testGrantRole" (k=16, rows=58342) \
circuit "testGrantRole" (k=16, rows=58342) |
circuit "testGrantRole" (k=16, rows=58342) /
circuit "testGrantRole" (k=16, rows=58342) -
circuit "testGrantRole" (k=16, rows=58342) \
circuit "testGrantRole" (k=16, rows=58342) |
circuit "testGrantRole" (k=16, rows=58342) /
circuit "testGrantRole" (k=16, rows=58342) -
circuit "testGrantRole" (k=16, rows=58342) \
circuit "testGrantRole" (k=16, rows=58342) |
circuit "testGrantRole" (k=16, rows=58342) /
circuit "testGrantRole" (k=16, rows=58342) -
circuit "testGrantRole" (k=16, rows=58342) \
circuit "testGrantRole" (k=16, rows=58342) |
circuit "testGrantRole" (k=16, rows=58342) /
circuit "testGrantRole" (k=16, rows=58342) -
circuit "testGrantRole" (k=16, rows=58342) \
circuit "testGrantRole" (k=16, rows=58342) |
circuit "testGrantRole" (k=16, rows=58342) /
circuit "testGrantRole" (k=16, rows=58342) -
circuit "testGrantRole" (k=16, rows=58342) \
circuit "testGrantRole" (k=16, rows=58342) |
circuit "testGrantRole" (k=16, rows=58342) /
circuit "testGrantRole" (k=16, rows=58342) -
circuit "testGrantRole" (k=16, rows=58342) \
circuit "testGrantRole" (k=16, rows=58342) |
circuit "testGrantRole" (k=16, rows=58342) /
circuit "testGrantRole" (k=16, rows=58342) -
circuit "testGrantRole" (k=16, rows=58342) \
circuit "testGrantRole" (k=16, rows=58342) |
circuit "testGrantRole" (k=16, rows=58342) /
circuit "testGrantRole" (k=16, rows=58342) -
circuit "testGrantRole" (k=16, rows=58342) \
circuit "testGrantRole" (k=16, rows=58342) |
circuit "testGrantRole" (k=16, rows=58342) /
circuit "testGrantRole" (k=16, rows=58342) -
circuit "testGrantRole" (k=16, rows=58342) \
circuit "testGrantRole" (k=16, rows=58342) |
circuit "testGrantRole" (k=16, rows=58342) /
circuit "testGrantRole" (k=16, rows=58342) -
circuit "testGrantRole" (k=16, rows=58342) \
circuit "testGrantRole" (k=16, rows=58342) |
circuit "testGrantRole" (k=16, rows=58342) /
circuit "testGrantRole" (k=16, rows=58342) -
circuit "testGrantRole" (k=16, rows=58342) \
circuit "testGrantRole" (k=16, rows=58342) |
circuit "testGrantRole" (k=16, rows=58342) /
circuit "testGrantRole" (k=16, rows=58342) -
circuit "testGrantRole" (k=16, rows=58342) \
circuit "testGrantRole" (k=16, rows=58342) |
circuit "testGrantRole" (k=16, rows=58342) /
circuit "testGrantRole" (k=16, rows=58342) -
circuit "testGrantRole" (k=16, rows=58342) \
circuit "testGrantRole" (k=16, rows=58342) |
circuit "testGrantRole" (k=16, rows=58342) /
circuit "testGrantRole" (k=16, rows=58342) -
circuit "testGrantRole" (k=16, rows=58342) \
circuit "testGrantRole" (k=16, rows=58342) |
circuit "testGrantRole" (k=16, rows=58342) /
circuit "testGrantRole" (k=16, rows=58342) -
circuit "testGrantRole" (k=16, rows=58342) \
circuit "testGrantRole" (k=16, rows=58342) |
circuit "testGrantRole" (k=16, rows=58342) /
circuit "testGrantRole" (k=16, rows=58342) -
circuit "testGrantRole" (k=16, rows=58342) \
circuit "testGrantRole" (k=16, rows=58342) |
circuit "testGrantRole" (k=16, rows=58342) /
circuit "testGrantRole" (k=16, rows=58342) -
circuit "testGrantRole" (k=16, rows=58342) \
circuit "testGrantRole" (k=16, rows=58342) |
circuit "testGrantRole" (k=16, rows=58342) /
circuit "testGrantRole" (k=16, rows=58342) -
circuit "testGrantRole" (k=16, rows=58342) \
circuit "testGrantRole" (k=16, rows=58342) |
circuit "testGrantRole" (k=16, rows=58342) /
circuit "testGrantRole" (k=16, rows=58342) -
circuit "testGrantRole" (k=16, rows=58342) \
circuit "testGrantRole" (k=16, rows=58342) |
circuit "testGrantRole" (k=16, rows=58342) /
circuit "testGrantRole" (k=16, rows=58342) -
circuit "testGrantRole" (k=16, rows=58342) \
circuit "testGrantRole" (k=16, rows=58342) |
circuit "testGrantRole" (k=16, rows=58342) /
circuit "testGrantRole" (k=16, rows=58342) -
circuit "testGrantRole" (k=16, rows=58342) \
circuit "testGrantRole" (k=16, rows=58342) |
circuit "testGrantRole" (k=16, rows=58342) /
circuit "testGrantRole" (k=16, rows=58342) -
circuit "testGrantRole" (k=16, rows=58342) \
circuit "testGrantRole" (k=16, rows=58342) |
circuit "testGrantRole" (k=16, rows=58342) /
circuit "testGrantRole" (k=16, rows=58342) -
circuit "testGrantRole" (k=16, rows=58342) \
circuit "testGrantRole" (k=16, rows=58342) |
circuit "testGrantRole" (k=16, rows=58342) /
circuit "testGrantRole" (k=16, rows=58342) -
circuit "testGrantRole" (k=16, rows=58342) \
circuit "testGrantRole" (k=16, rows=58342) |
circuit "testGrantRole" (k=16, rows=58342) /
circuit "testGrantRole" (k=16, rows=58342) -
circuit "testGrantRole" (k=16, rows=58342) \
circuit "testGrantRole" (k=16, rows=58342) |
circuit "testGrantRole" (k=16, rows=58342) /
circuit "testGrantRole" (k=16, rows=58342) -
circuit "testGrantRole" (k=16, rows=58342) \
circuit "testGrantRole" (k=16, rows=58342) |
circuit "testGrantRole" (k=16, rows=58342) /
circuit "testGrantRole" (k=16, rows=58342) -
circuit "testGrantRole" (k=16, rows=58342) \
circuit "testGrantRole" (k=16, rows=58342) |
circuit "testGrantRole" (k=16, rows=58342) /
circuit "testGrantRole" (k=16, rows=58342) -
circuit "testGrantRole" (k=16, rows=58342) \
circuit "testGrantRole" (k=16, rows=58342) |
circuit "testGrantRole" (k=16, rows=58342) /
circuit "testGrantRole" (k=16, rows=58342) -
circuit "testGrantRole" (k=16, rows=58342) \
circuit "testGrantRole" (k=16, rows=58342) |
circuit "testGrantRole" (k=16, rows=58342) /
circuit "testGrantRole" (k=16, rows=58342) -
circuit "testGrantRole" (k=16, rows=58342) \
circuit "testGrantRole" (k=16, rows=58342) |
circuit "testGrantRole" (k=16, rows=58342) /
circuit "testGrantRole" (k=16, rows=58342) -
circuit "testGrantRole" (k=16, rows=58342) \
circuit "testGrantRole" (k=16, rows=58342) |
circuit "testGrantRole" (k=16, rows=58342) /
circuit "testGrantRole" (k=16, rows=58342) -
circuit "testGrantRole" (k=16, rows=58342) \
circuit "testGrantRole" (k=16, rows=58342) |
circuit "testGrantRole" (k=16, rows=58342) /
circuit "testGrantRole" (k=16, rows=58342) -
circuit "testGrantRole" (k=16, rows=58342) \
circuit "testGrantRole" (k=16, rows=58342) |
circuit "testGrantRole" (k=16, rows=58342) /
circuit "testGrantRole" (k=16, rows=58342)
circuit "testGrantRole" (k=16, rows=58342)
circuit "testGrantRole" (k=16, rows=58342)
circuit "testGrantRole" (k=16, rows=58342)
@midnight-dapps/access-contract:compact: Overall progress [====================] 1/1 ✔ [COMPILE] [3/3] ✓ test/mock/MockAccessControl.compact
@midnight-dapps/access-contract:compact:
Good catch, I spent sometime looking into that it seems an issue with Turbo output logging, as it deals with that looping animation as a new line for each loop. 😅 I tried with this command: As you see it was not repeated in the testGrantRole, but it was repeated in dequeue, and I dont really know why! |
BUT it works properly if you are running pnpm compact from inside each package, |
If it's okay with you, I think we should keep working on this so that it outputs correctly both ways. We're fixing a bug but introducing another haha LMK if you disagree |
andrew-fleming
left a comment
There was a problem hiding this comment.
As mentioned offline, we can approve and merge this. The only thing though is I'd change the README on how to compile bc pnpm build:contracts is compiling from root where the crazy output bug is occurring. Let's update that and then we're good to go :)
f0a4de8 to
eca0c3e
Compare
Updated, also opened this feature request: https://github.com/midnightntwrk/compactc/issues/1188 |
andrew-fleming
left a comment
There was a problem hiding this comment.
Left a tiny suggestion and a comment, but LGTM!
2c1cae6 to
72546a1
Compare
72546a1 to
880ba88
Compare
andrew-fleming
left a comment
There was a problem hiding this comment.
We should def fix this CI issue but in case this is blocking other work :) Nice work!
633ac7f to
cf70213
Compare
Sure that is fixed now by this PR: #172 |
cf70213 to
3893a92
Compare
Description
Blocked By #172
This PR fixes the runCompiler script to show the output of the compilation results.
After: