-
Bug
-
Resolution: Unresolved
-
Critical
-
None
-
None
BATS sometimes fails with an error checking modular content in a published composite content view version. This could be a bug and it also disrupts the build pipeline.
Run through the BATS steps manually and try to determine how the error is possible. It is difficult to reproduce naturally via the pipelines.
Last reproduced via `ansible-playbook pipelines/satellite_install_pipeline.yml -e forklift_state=up -e pipeline_type=satellite -e pipeline_version=6.16 -e pipeline_os=rhel9`
Error:
not ok 47 ensure component cv 1 latest version has proper content
- (in test file fb-katello-content.bats, line 382)
- `diff cvv_content_modulemds fixtures/component_1_modulemds' failed
- $ [fb-katello-content.bats, line 11]
- $ HOSTNAME=$(hostname -f)
- $ hostname -f
- $ "$@"
- $ cvv_id=$(hammer --csv --no-headers content-view version list --organization="${ORGANIZATION}" | grep "${CONTENT_VIEW_2} 1.1" | cut -d, -f1)
- $ hammer --csv --no-headers content-view version list --organization="${ORGANIZATION}"
- $ grep "${CONTENT_VIEW_2} 1.1"
- $ cut -d, -f1
- $ hammer package list --content-view-version-id=$cvv_id --order='name DESC' --fields='filename' > cvv_content_rpms
- $ diff cvv_content_rpms fixtures/component_1_rpms
- $ hammer erratum list --content-view-version-id=$cvv_id --order='id' --fields='Errata ID' > cvv_content_errata
- $ diff cvv_content_errata fixtures/component_1_errata
- $ hammer module-stream list --content-view-version-id=$cvv_id --order='stream id' --fields="module stream name,stream,version,architecture,context" > cvv_content_modulemds
- $ diff cvv_content_modulemds fixtures/component_1_modulemds
- 1,5c1,5
- < ------------------
|------|---------------|------------|--------
- < MODULE STREAM NAME | STREAM | VERSION | ARCHITECTURE | CONTEXT
- < ------------------
|------|---------------|------------|--------
- < duck | 0 | 201809302113907 | noarch | deadbeef
- < ------------------
|------|---------------|------------|--------
- —
- > ------------------
|------|--------------|------------|--------
- > MODULE STREAM NAME | STREAM | VERSION | ARCHITECTURE | CONTEXT
- > ------------------
|------|--------------|------------|--------
- > walrus | 5.21 | 20180704144203 | x86_64 | deadbeef
- > ------------------
|------|--------------|------------|--------
ok 48 ensure component cv 2 latest version has proper content
not ok 49 ensure composite cv latest version has proper content
- (in test file fb-katello-content.bats, line 427)
- `diff cvv_content_modulemds_composite fixtures/composite_modulemds' failed
- $ [fb-katello-content.bats, line 11]
- $ HOSTNAME=$(hostname -f)
- $ hostname -f
- $ "$@"
- $ cvv_id=$(hammer --csv --no-headers content-view version list --organization="${ORGANIZATION}" | grep "${CONTENT_VIEW_3} 1.1" | cut -d, -f1)
- $ hammer --csv --no-headers content-view version list --organization="${ORGANIZATION}"
- $ grep "${CONTENT_VIEW_3} 1.1"
- $ cut -d, -f1
- $ hammer package list --content-view-version-id=$cvv_id --order='name DESC' --fields='filename'
- $ awk '!seen[$0]++' > cvv_content_rpms_composite
- $ diff -w cvv_content_rpms_composite fixtures/composite_rpms
- $ hammer erratum list --content-view-version-id=$cvv_id --order='id' --fields='Errata ID' > cvv_content_errata_composite
- $ diff cvv_content_errata_composite fixtures/composite_errata
- $ hammer module-stream list --content-view-version-id=$cvv_id --order='stream id' --fields="module stream name,stream,version,architecture,context" > cvv_content_modulemds_composite
- $ diff cvv_content_modulemds_composite fixtures/composite_modulemds
- 1,5c1,5
- < ------------------
|------|---------------|------------|--------
- < MODULE STREAM NAME | STREAM | VERSION | ARCHITECTURE | CONTEXT
- < ------------------
|------|---------------|------------|--------
- < duck | 0 | 201809302113907 | noarch | deadbeef
- < ------------------
|------|---------------|------------|--------
- —
- > ------------------
|------|--------------|------------|--------
- > MODULE STREAM NAME | STREAM | VERSION | ARCHITECTURE | CONTEXT
- > ------------------
|------|--------------|------------|--------
- > walrus | 5.21 | 20180704144203 | x86_64 | deadbeef
- > ------------------
|------|--------------|------------|--------
1.
|
[DEV] Resolve flaky BATS composite CV test | New | Unassigned |