Repository navigation
fix(devtest): make sntest VM run on x86 hosts and fix stale smoke checks - #211
Merged
Merged
Conversation
- web3_gateway_staging.py: default --target to the host CPU instead of aarch64; build with buckyos-build and install only web3-gateway into the staging dir (build.py/buckyos-update also updated cyfs-gateway in the host $BUCKYOS_ROOT). - sn-dev-smoke.sh: S3/S5 request the DID resolution envelope and check the source (seed-v2 publishes did:bns docs as bare JWTs); S7 runs the loopback-only admin reset inside the SN VM via buckyos-devtest; S7 waits past the SN DNS answer cache (60s) before reading back the published TXT record. - readme: staging build mechanism and smoke usage for sn_test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Follow-up from a full
sntestVM run (buckyossrc/dev_configs/sntest.json, Linux x86_64 host, multipass 1.17). The buckyos side (sntest.json,buckyos.json,build_for_vm_test.py, doc) and the devkit multipass transfer fix are already on main (buckyos 14c43121e, buckyos-devkit 0b58214).Changes
dev_configs/web3_gateway_staging.py--targetused to default toaarch64(andapps/web3-gateway.jsonhard-coded it), so x86 hosts built the wrong arch. It now defaults to the host CPU.build.py, i.e.buckyos-build+buckyos-update. The latter also updates cyfs-gateway into the host$BUCKYOS_ROOT(/opt/buckyos), overwriting a running local DV's gateway binary. It now runsbuckyos-build <arch>and thenbuckyos-install --app=web3-gateway --target-rootfs=<staging>.web3-gateway/scripts/sn-dev-smoke.sh/1.0/identifiers/did:bns:*returns a bareapplication/jwt, so grepping JSON keys always failed. The check now asks forapplication/did-resolution+jsonand verifiesdidDocumentplus the expectedsource(bns_document/auth_db_projection).admin.clear_state_by_active_codeis loopback-only on the SN, so in--vmmode it returned 404 from the host. The reset now runs inside the SN VM viabuckyos-devtest <group> run sn.dev_configs/readme.md: documents the staging build mechanism and the smoke flags needed for the single-nodesn_testgroup (--devtest-group sn_test --no-keep-tunnel).Verification
cd src/dev_configs && uv run python -m unittest test_web3_gateway_staging: 13 tests OK.sntest(clean_vms → create_vms → install → start) plusrestore installed,update, andstop/startcycles. After each,sn-dev-smoke.sh --vmpassed 10/10 and the alice relay through the SN returned 200. Final run used buckyos-devkit 0.7.34 (0b58214) viauv run.sn_testgroup, and the--localsmoke mode (S3/S5/S7 logic is shared; local mode still calls the admin reset directly over 127.0.0.1).Not addressed (noted for follow-up)
dns_txt, so answers can be up to ~60s stale.bns.devtests.orgforward logsERROR Unknown protocol: httpeven though the request succeeds.src/devenv_config.tshas drifted from the buckyos copy: thebns_hostfield and thevmtestgroup are missing here.🤖 Generated with Claude Code