Skip to content

Release Production Merge develop into main#15

Merged
sd0xdev merged 3 commits into
mainfrom
develop
May 18, 2025
Merged

Release Production Merge develop into main#15
sd0xdev merged 3 commits into
mainfrom
develop

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

Created by GitHub Action

@codecov
Copy link
Copy Markdown

codecov Bot commented May 18, 2025

Codecov Report

Attention: Patch coverage is 46.84211% with 101 lines in your changes missing coverage. Please review.

Project coverage is 65.67%. Comparing base (9e5118a) to head (6c2bb62).
Report is 9 commits behind head on main.

Files with missing lines Patch % Lines
src/webhook/webhook-management.service.ts 42.35% 49 Missing ⚠️
...rc/chains/services/core/priceable-chain.service.ts 0.00% 23 Missing ⚠️
src/core/cache/cache.module.ts 0.00% 9 Missing ⚠️
src/prices/services/mock-price.service.ts 35.71% 9 Missing ⚠️
src/chains/services/bsc/bsc.service.ts 0.00% 2 Missing ⚠️
...hains/services/core/priceable-evm-chain.service.ts 93.33% 2 Missing ⚠️
src/chains/services/polygon/polygon.service.ts 0.00% 2 Missing ⚠️
src/chains/services/solana/solana.service.ts 50.00% 2 Missing ⚠️
src/prices/price.module.ts 75.00% 1 Missing and 1 partial ⚠️
src/utils/tests/matchers.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #15      +/-   ##
==========================================
- Coverage   66.42%   65.67%   -0.75%     
==========================================
  Files          96      102       +6     
  Lines        3937     4087     +150     
  Branches      798      794       -4     
==========================================
+ Hits         2615     2684      +69     
- Misses       1321     1401      +80     
- Partials        1        2       +1     
Flag Coverage Δ
unittests 65.67% <46.84%> (-0.75%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sd0xdev sd0xdev force-pushed the develop branch 10 times, most recently from 532f9dc to 91e6a33 Compare May 18, 2025 10:12
…build.yaml 檔案以整合 Cloud Build 部署流程;更新 gcp-deploy-unified.yml,簡化部署工作流程;擴展 setup-gcp.sh 和 setup-secrets.sh 腳本以支援 Cloud Build 服務帳號權限設置;更新 Redis 配置以支援 URL 形式的連接。

fix: 移除不支援的 cache 選項

feat: Grants object viewer and service usage roles

Adds necessary roles to the project and Cloud Build service account,
specifically granting object viewer and service usage consumer permissions.
This enables access to storage objects and the ability to consume
services within the GCP project.

fix: Grants Cloud Build necessary permissions

Adds minimal required permissions to address Cloud Build bucket access issues.

Specifically, it grants `cloudbuild.builds.builder` and `storage.objectCreator` roles
to both the project and Cloud Build service account.
The `storage.objectCreator` role is used instead of the full Admin role to restrict
permissions to the minimum necessary for creating objects.

feat: 更新 cloudbuild.yaml 和 gcp-deploy-unified.yml,調整環境變數配置以支持更靈活的映像名稱生成,並確保部署過程中使用正確的區域參數。

fix: 更新 gcp-deploy-unified.yml,將 substitutions 參數列表包裹在引號中,以確保正確處理環境變數。

feat: 更新 cloudbuild.yaml,確保映像標籤始終有值,並調整環境變數配置以支持更靈活的映像名稱生成,提升部署過程的穩定性。

fix: 更新 gcp-deploy-unified.yml,手動構建完整映像路徑並調整 substitutions 參數,確保在部署過程中正確處理環境變數。

feat: 更新 cloudbuild.yaml 和 gcp-deploy-unified.yml,將映像名稱後綴變數從 IMAGE_SUFFIX 改為 APP_SUFFIX,並調整相關邏輯以提升環境變數的靈活性與可讀性。

feat: 更新 cloudbuild.yaml 和 gcp-deploy-unified.yml,調整環境變數設置邏輯,確保在部署過程中使用純 Bash 變數,提升可讀性與靈活性。

feat: 更新 cloudbuild.yaml 和 gcp-deploy-unified.yml,將映像名稱後綴變數統一為 suffix,並調整相關邏輯以提升環境變數的可讀性與一致性。

feat: 新增測試和驗證腳本以檢查 Cloud Build 變數的正確性,並優化 cloudbuild.yaml 的變數使用方式,提升可讀性與穩定性。

feat: 更新 cloudbuild.yaml,簡化映像標籤生成邏輯,確保使用 SHORT_SHA 或 latest 作為標籤,並調整環境變數配置以提升可讀性與靈活性。

feat: 更新 cloudbuild.yaml 和 gcp-deploy-unified.yml,新增 _GIT_SHA 環境變數以支持映像標籤生成,並調整 validate-cloudbuild.sh 腳本以包含該變數,提升部署過程的靈活性與穩定性。

feat: 更新 cloudbuild.yaml 和 gcp-deploy-unified.yml,新增 _GIT_SHA 環境變數以支持映像標籤生成,並調整 validate-cloudbuild.sh 腳本以包含該變數,提升部署過程的靈活性與穩定性。

feat: 更新 cloudbuild.yaml,將 Docker 映像建置過程從 Docker CLI 轉換為 Kaniko,簡化建置邏輯並提升效率;新增快取功能以加速重複建置,並調整標籤生成邏輯以支持多個標籤版本。

feat: 更新 WebhookManagementService,新增 webhook ID 獲取邏輯,若未找到則嘗試創建新的 webhook,並記錄相應的錯誤信息以提升錯誤處理能力。

feat: 更新 cloudbuild.yaml,新增 logging 設定為 CLOUD_LOGGING_ONLY,以提升日誌管理與監控能力。

fix: 移除 webhook ID 檢查邏輯,簡化 webhook 創建流程,提升代碼可讀性與錯誤處理能力。

feat: 在 WebhookManagementService 測試中新增 createNewWebhook 方法的測試案例,涵蓋成功創建新 webhook 及處理錯誤情況,提升測試覆蓋率與錯誤處理能力。

fix: 在 WebhookManagementService 中新增錯誤日誌,當 Alchemy API 金鑰未配置時記錄錯誤信息,以提升錯誤處理能力。

feat: 更新 cloud-run-service.template.yaml,新增 ALCHEMY_API_KEY 環境變數配置,以支持 Alchemy API 的金鑰管理。

feat: 在 WebhookController 中新增清除簽名金鑰快取的邏輯,以提升簽名驗證的安全性與可靠性。

feat: 在 WebhookManagementService 中新增緩存服務以防止同時創建 webhook,並優化 webhook ID 獲取邏輯,提升錯誤處理能力與性能。

refactor: 簡化 WebhookManagementService 中的 webhook ID 獲取邏輯,移除重試機制,並在未找到 webhook ID 時記錄錯誤信息以提升錯誤處理能力;更新測試以移除不再需要的案例。

refactor: 移除 WebhookManagementService 中的 webhook ID 緩存邏輯,簡化獲取 webhook ID 的流程,提升代碼可讀性與錯誤處理能力。

feat: 更新 cloudbuild.yaml,將映像標籤生成邏輯中的 SHORT_SHA 改為 _GIT_SHA,並調整 node_env 環境變數的設置邏輯,以支持 staging 環境,提升部署過程的靈活性與穩定性。
fix: 移除 Solana 和 EVM 鏈服務中的默認餘額實現,改為拋出提供者錯誤,提升錯誤處理能力;更新 WebhookManagementService 中的網絡識別邏輯,確保正確使用 networkId。

fix: 更新 Solana 和 EVM 鏈服務中的錯誤處理邏輯,將默認餘額返回改為拋出錯誤,提升錯誤處理能力;更新測試用例以確保在地址無效或提供者不支持的情況下正確拋出錯誤。
@sd0xdev sd0xdev merged commit 0c57b78 into main May 18, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant