Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package service integration tests fail on non-amd64 architectures #2018

Open
lengau opened this issue Dec 6, 2024 · 1 comment
Open

Package service integration tests fail on non-amd64 architectures #2018

lengau opened this issue Dec 6, 2024 · 1 comment
Labels
Bug Something isn't working triaged

Comments

@lengau
Copy link
Collaborator

lengau commented Dec 6, 2024

Bug Description

We have 'amd64' hardcoded in some of the package service integration tests that cause them to fail on other architectures.

To Reproduce

https://github.com/canonical/charmcraft/actions/runs/12205703353/job/34053604513?pr=2015

Environment

Canonical hosted GH CI, arm64

charmcraft.yaml

n/a

Relevant log output

=========================== short test summary info ============================
  FAILED tests/integration/commands/test_pack.py::test_build_basic_charm[platforms-jammy-charm] - IndexError: list index out of range
  FAILED tests/integration/services/test_package.py::test_write_metadata[complex-legacy] - RuntimeError: Could not determine run-on bases.
  FAILED tests/integration/services/test_package.py::test_write_metadata[basic] - check charmcraft-version: 3.0-test-version
  charmcraft-started-at: '2020-03-14T00:00:00+00:00'
  bases:
  - name: ubuntu
    channel: '22.04'
    architectures:
    - arm64
  analysis:
    attributes:
    - name: language
      result: unknown
    - name: framework
      result: unknown
   == charmcraft-version: 3.0-test-version
  charmcraft-started-at: '2020-03-14T00:00:00+00:00'
  bases:
  - name: ubuntu
    channel: '22.04'
    architectures:
    - amd64
  analysis:
    attributes:
    - name: language
      result: unknown
    - name: framework
      result: unknown
  test_package.py:69 in test_write_metadata() -> pytest_check.equal((test_prime_dir / file.name).read_text(), file.read_text())
  
  ------------------------------------------------------------
  Failed Checks: 1
  FAILED tests/integration/services/test_package.py::test_write_metadata[complex-self-contained] - RuntimeError: Could not determine run-on bases.
  FAILED tests/integration/services/test_package.py::test_write_metadata[basic-reactive] - check charmcraft-version: 3.0-test-version
  charmcraft-started-at: '2020-03-14T00:00:00+00:00'
  bases:
  - name: ubuntu
    channel: '22.04'
    architectures:
    - arm64
  analysis:
    attributes:
    - name: language
      result: unknown
    - name: framework
      result: unknown
   == charmcraft-version: 3.0-test-version
  charmcraft-started-at: '2020-03-14T00:00:00+00:00'
  bases:
  - name: ubuntu
    channel: '22.04'
    architectures:
    - amd64
  analysis:
    attributes:
    - name: language
      result: unknown
    - name: framework
      result: unknown
  test_package.py:69 in test_write_metadata() -> pytest_check.equal((test_prime_dir / file.name).read_text(), file.read_text())
  
  ------------------------------------------------------------
  Failed Checks: 1
  FAILED tests/integration/services/test_package.py::test_overwrite_metadata[complex-legacy] - RuntimeError: Could not determine run-on bases.
  FAILED tests/integration/services/test_package.py::test_overwrite_metadata[basic] - check charmcraft-version: 3.0-test-version
  charmcraft-started-at: '2020-03-14T00:00:00+00:00'
  bases:
  - name: ubuntu
    channel: '22.04'
    architectures:
    - arm64
  analysis:
    attributes:
    - name: language
      result: unknown
    - name: framework
      result: unknown
   == charmcraft-version: 3.0-test-version
  charmcraft-started-at: '2020-03-14T00:00:00+00:00'
  bases:
  - name: ubuntu
    channel: '22.04'
    architectures:
    - amd64
  analysis:
    attributes:
    - name: language
      result: unknown
    - name: framework
      result: unknown
  test_package.py:103 in test_overwrite_metadata() -> pytest_check.equal((test_prime_dir / file.name).read_text(), file.read_text())
  
  ------------------------------------------------------------
  Failed Checks: 1
  FAILED tests/integration/services/test_package.py::test_overwrite_metadata[complex-self-contained] - RuntimeError: Could not determine run-on bases.
  FAILED tests/integration/services/test_package.py::test_overwrite_metadata[basic-reactive] - check charmcraft-version: 3.0-test-version
  charmcraft-started-at: '2020-03-14T00:00:00+00:00'
  bases:
  - name: ubuntu
    channel: '22.04'
    architectures:
    - arm64
  analysis:
    attributes:
    - name: language
      result: unknown
    - name: framework
      result: unknown
   == charmcraft-version: 3.0-test-version
  charmcraft-started-at: '2020-03-14T00:00:00+00:00'
  bases:
  - name: ubuntu
    channel: '22.04'
    architectures:
    - amd64
  analysis:
    attributes:
    - name: language
      result: unknown
    - name: framework
      result: unknown
  test_package.py:103 in test_overwrite_metadata() -> pytest_check.equal((test_prime_dir / file.name).read_text(), file.read_text())
  
  ------------------------------------------------------------
  Failed Checks: 1
  = 9 failed, 2398 passed, 1 skipped, 20 deselected, 1 xfailed, 2078 warnings in 54.37s =
@lengau lengau added Bug Something isn't working triaged labels Dec 6, 2024
Copy link

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/CRAFT-3775.

This message was autogenerated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working triaged
Projects
None yet
Development

No branches or pull requests

1 participant