LinuxSuRen / LinuxSuRen/api-testing
[bug] Extension Download Test Failures on darwin_arm64
Personne n'a encore pris cette issue.
- Langage dominant
- Go
- Étoiles
- 369
- Forks
- 67
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
Extension Download Test Failures on darwin_arm64
Description
The extension download functionality tests are failing when running make test on macOS with ARM64 architecture. The tests fail to find architecture-specific binaries in the mock Docker registry.
Error Details
=== FAIL: TestExtensionCmd/normal (0.01s)
Error: not found atest-store-git_darwin_arm64/atest-store-git from http://127.0.0.1:55323/v2/linuxsuren/atest-ext-store-git/manifests/0.0.2
Error: not found atest-store-orm_darwin_arm64/atest-store-orm from http://127.0.0.1:55323/v2/linuxsuren/atest-ext-store-orm/manifests/0.0.2
Environment
- OS: macOS (Darwin 25.0.0)
- Architecture: ARM64 (Apple Silicon)
- Test:
TestExtensionCmdincmd/extension_test.go - Mock Registry:
127.0.0.1:55323
Root Cause Analysis
- Architecture-Specific Binary Missing: The test expects
darwin_arm64binaries but the mock Docker registry only contains limited test data - Mock Registry Incomplete: The simulated registry manifests don't include all required architecture variants
- Platform Detection: The extension system correctly detects
darwin_arm64but can't find matching binaries
Impact
- Extension installation tests fail on ARM64 macOS systems
- Core API testing functionality remains unaffected
- CI/CD might fail on ARM64 runners
Reproduction Steps
- Run
make teston macOS with ARM64 architecture - Observe
TestExtensionCmd/normaltest failure - Check mock registry logs for missing manifest requests
Suggested Solutions
- Expand Mock Registry Data: Add
darwin_arm64binaries to test fixtures - Platform Fallback Logic: Implement fallback to
linux_amd64for testing - Skip Architecture-Specific Tests: Skip extension tests on unsupported platforms
- Mock Registry Enhancement: Generate complete manifest data for all supported architectures
Files Involved
cmd/extension_test.go:66- Test assertion location- Mock registry configuration and test data
- Extension download and platform detection logic
Priority
Low - This affects testing infrastructure but not core functionality. Extension system works in production environments with proper registries.
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Start with cmd/extension_test.go:66 and run TestExtensionCmd, or reproduce with make test on darwin_arm64. Then inspect the mock registry configuration and test data for the missing architecture-specific binaries and compare the requested manifests. Done means the extension download tests pass on ARM64 macOS without affecting the existing test behavior.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- go
- Domaine
- testing-qa
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 42/100