test(ait-bundle): web-framework 3.0-beta forward-compat verification#186
Merged
Conversation
…forward-compat guard Builds a real .ait with @apps-in-toss/web-framework@3.0.0-beta.9d42c0b in a scratch dir, pins the deploymentId round-trip as a regression test. Parser passes with zero code change — ait-format 1.0 binary layout is identical to what the hand-rolled parser in ait-bundle.ts expects.
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.
검증 결과
3.0-beta 번들이 코드 변경 없이 정상 파싱된다.
ait-bundle.ts의 hand-rolled 파서는@apps-in-toss/ait-format@^1.0.0이 생성한 바이너리 레이아웃을 그대로 처리한다.검증 방법
/tmp/sdk30-scratch에 scratch 프로젝트를 만들고 3.0-beta로 실 번들을 빌드:빌드 출력:
파서 라운드트립 확인 (
deploymentIdFromBundleBytes로 직접 읽기):변경 내용
src/config/fixtures/sdk30-test-app.ait— 3.0-beta로 빌드한 실 번들 (1.9 kB)src/config/ait-bundle.test.ts— 해당 픽스처를 읽어 deploymentId 라운드트립을 핀하는 regression guard 추가src/코드 변경 없음.pnpm test/pnpm lint/pnpm typecheck모두 green.Closes #185