Repository navigation
fix(build): fail CD build when remote miniapps download fails - #252
Merged
Merged
Conversation
…ONS to use i18n - Add Chinese string detection to i18n-check.ts script - Simplify KNOWN_PERMISSIONS to only contain risk field - Refactor getPermissionInfo() to return translated text via i18n - Convert MiniappDetailActivity.tsx to use i18n for all UI strings - Add permission translations to all 4 locale files (zh-CN, en, zh-TW, ar) - Export permissions module from ecosystem service
- Expand error.json with validation, transaction, crypto, and other error keys - Update use-send.logic.ts to use i18n for validation messages - Update use-burn.ts to use i18n for error messages - Add translations for all 4 locales (zh-CN, en, zh-TW, ar)
…terns - Add *.stories.tsx and mock-devtools to i18n-check exclude patterns - Add services/*/types.ts (Zod schemas) to exclude patterns - Update use-send.bioforest.ts to use i18n for error messages - Update use-burn.bioforest.ts to use i18n for error messages
- Add i18n-set.ts for batch setting translation keys across all locales - Add i18n-delete.ts for removing translation keys from all locales - Update i18n-check.ts to show quick tool usage hints on errors - Support locale shortcuts (zh -> zh-CN, tw -> zh-TW) - Support nested key paths (e.g., validation.required)
- Add timeout (60s) and retry (3x) mechanism to fetchWithEtag - Throw error in buildStart when remote miniapp download fails (build mode) - Throw error in writeBundle when miniapps are missing from output - Dev mode only warns, does not interrupt development This ensures CI builds fail fast when runner network cannot reach remote miniapp servers, making the issue immediately visible.
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.
Summary
fetchWithEtag问题根因
remoteMiniappsPlugin在 CI 构建时可能静默失败:buildStart阶段网络请求失败时没有捕获错误writeBundle阶段检测到目录不存在时直接跳过,不报错dist/miniapps/rwa-hub/缺失,但构建显示成功改动
scripts/utils/fetch-with-etag.tsscripts/vite-plugin-remote-miniapps.tsvite.config.tstimeout: 60000,retries: 3新行为
Build 模式(CI):
Dev 模式:
继续运行,不中断开发。