Skip to content

Commit 36235c1

Browse files
committed
chore(docs): merge with next
2 parents a08b71c + f0f1acc commit 36235c1

File tree

956 files changed

+4589
-74004
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

956 files changed

+4589
-74004
lines changed

.github/workflows/ci3.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
# The commit to checkout. We want our actual commit, and not the result of merging the PR to the target.
3535
ref: ${{ github.event.pull_request.head.sha || github.sha }}
3636
# Fetch PR commits depth (we'll deepen by 1 in squash script if needed)
37-
fetch-depth: ${{ github.event.pull_request.commits || 0 }}
37+
fetch-depth: ${{ github.event.pull_request.commits || 1 }}
3838
persist-credentials: false
3939

4040
- name: Run

.github/workflows/nightly-docs-release.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ jobs:
7171
echo "GitHub release for $NIGHTLY_TAG is published."
7272
7373
# Check if we already have docs for this nightly version
74-
DOCS_VERSION_DIR="docs/versioned_docs/version-$NIGHTLY_TAG"
74+
# For multi-instance docs, check the developer-specific versioned docs directory
75+
DOCS_VERSION_DIR="docs/developer_versioned_docs/version-$NIGHTLY_TAG"
7576
BB_DOCS_VERSION_DIR="barretenberg/docs/versioned_docs/version-$NIGHTLY_TAG"
7677
7778
if [ -d "$DOCS_VERSION_DIR" ] || [ -d "$BB_DOCS_VERSION_DIR" ]; then
@@ -126,7 +127,7 @@ jobs:
126127
./scripts/aztec_nr_docs_generation/generate_aztec_nr_docs.sh ${{ env.NIGHTLY_TAG }}
127128
echo "Generated Aztec.nr API docs for: ${{ env.NIGHTLY_TAG }}"
128129
129-
- name: Create Aztec nightly docs version
130+
- name: Create Aztec nightly docs version (Developer docs only)
130131
working-directory: ./docs
131132
run: |
132133
# Set the commit tag for version macros
@@ -138,15 +139,16 @@ jobs:
138139
# Build docs to ensure everything works
139140
COMMIT_TAG=${{ env.NIGHTLY_TAG }} yarn build
140141
141-
# Create the versioned docs
142-
yarn docusaurus docs:version ${{ env.NIGHTLY_TAG }}
142+
# Create the versioned docs for Developer docs only
143+
# Network docs have separate versions for testnet/ignition releases
144+
yarn docusaurus docs:version:developer ${{ env.NIGHTLY_TAG }}
143145
144-
echo "Created Aztec docs version: ${{ env.NIGHTLY_TAG }}"
146+
echo "Created Aztec Developer docs version: ${{ env.NIGHTLY_TAG }}"
145147
146-
- name: Update Aztec Docs versions.json with new version
148+
- name: Update Aztec Docs developer_versions.json with new version
147149
working-directory: ./docs/scripts
148150
run: |
149-
./update_versions.sh
151+
./update_docs_versions.sh developer
150152
151153
- name: Cleanup Barretenberg docs nightly versions
152154
working-directory: ./barretenberg/docs

.github/workflows/release-please.yml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -179,20 +179,31 @@ jobs:
179179
./scripts/aztec_nr_docs_generation/generate_aztec_nr_docs.sh ${{ steps.version.outputs.semver }}
180180
echo "Generated Aztec.nr API docs for: ${{ steps.version.outputs.semver }}"
181181
182-
- name: Cut Aztec Docs version
182+
- name: Cut Aztec Developer Docs version
183183
working-directory: ./docs
184184
run: |
185185
COMMIT_TAG=${{ steps.version.outputs.semver }}
186-
# need to specify at least one version in versions.json for it to build
187-
echo "[ \"$(./scripts/get_current_version.sh)\" ]" > versions.json
188186
yarn
189187
COMMIT_TAG=$COMMIT_TAG yarn build
190-
COMMIT_TAG=$COMMIT_TAG yarn docusaurus docs:version ${{ steps.version.outputs.semver }}
188+
# Create versioned docs for Developer docs instance
189+
COMMIT_TAG=$COMMIT_TAG yarn docusaurus docs:version:developer ${{ steps.version.outputs.semver }}
191190
192-
- name: Update Aztec Docs versions.json with new version
191+
- name: Update Aztec Developer Docs versions with new version
193192
working-directory: ./docs/scripts
194193
run: |
195-
./update_versions.sh
194+
./update_docs_versions.sh developer
195+
196+
- name: Cut Aztec Network Docs version
197+
working-directory: ./docs
198+
run: |
199+
COMMIT_TAG=${{ steps.version.outputs.semver }}
200+
# Create versioned docs for Network docs instance
201+
COMMIT_TAG=$COMMIT_TAG yarn docusaurus docs:version:network ${{ steps.version.outputs.semver }}
202+
203+
- name: Update Aztec Network Docs versions with new version
204+
working-directory: ./docs/scripts
205+
run: |
206+
./update_docs_versions.sh network
196207
197208
- name: Commit new Aztec Docs version
198209
run: |

barretenberg/cpp/src/barretenberg/dsl/acir_format/acir_to_constraint_buf.cpp

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,10 @@ T deserialize_any_format(std::vector<uint8_t>&& buf,
285285
// Once we remove support for legacy bincode format, we should expect to always
286286
// have a format marker corresponding to acir::serialization::Format::Msgpack,
287287
// but until then a match could be pure coincidence.
288-
if (buf[0] == 2) {
288+
const uint8_t FORMAT_MSGPACK = 2;
289+
const uint8_t FORMAT_MSGPACK_COMPACT = 3;
290+
uint8_t format = buf[0];
291+
if (format == FORMAT_MSGPACK || format == FORMAT_MSGPACK_COMPACT) {
289292
// Skip the format marker to get the data.
290293
const char* buffer = &reinterpret_cast<const char*>(buf.data())[1];
291294
size_t size = buf.size() - 1;
@@ -295,10 +298,9 @@ T deserialize_any_format(std::vector<uint8_t>&& buf,
295298
// This has to be on a separate line, see
296299
// https://github.com/msgpack/msgpack-c/issues/695#issuecomment-393035172
297300
auto o = oh.get();
298-
// In experiments bincode data was parsed as 0.
299-
// All the top level formats we look for are MAP types.
300-
if (o.type == msgpack::type::MAP) {
301-
BB_ASSERT(false, "acir_format::deserialize_any_format: Msgpack is not currently supported.");
301+
// In experiments bincode data was parsed as 0, so a successful parse is not a guarnatee that it's
302+
// msgpack. All the top level formats we look for are MAP or ARRAY types (depending on the format).
303+
if (o.type == msgpack::type::MAP || o.type == msgpack::type::ARRAY) {
302304
return decode_msgpack(o);
303305
}
304306
}

0 commit comments

Comments
 (0)