-
Notifications
You must be signed in to change notification settings - Fork 547
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
[testing] Add debian to standard testing #3907
Open
arif-ali
wants to merge
1
commit into
sosreport:main
Choose a base branch
from
arif-ali:sos-arif-debian-ci
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+71
−29
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,8 @@ env: | |
FEDORA_NAME: "fedora-38" | ||
FEDORA_PRIOR_NAME: "fedora-37" | ||
|
||
DEBIAN_NAME: "debian-11" | ||
DEBIAN_12_NAME: "debian-12" | ||
DEBIAN_11_NAME: "debian-11" | ||
|
||
UBUNTU_DEVEL_NAME: "ubuntu-25.04" | ||
UBUNTU_LATEST_NAME: "ubuntu-24.10" | ||
|
@@ -135,22 +136,36 @@ rpm_build_task: | |
deb_build_task: | ||
skip: *man-changes-include | ||
alias: "deb_build" | ||
name: "deb Build From Checkout" | ||
name: "deb Build From Checkout - ${BUILD_NAME}" | ||
gce_instance: | ||
image_project: "${UBUNTU_PROJECT}" | ||
image_family: "${UBUNTU_DEB_FAMILY_NAME}" | ||
image_project: "${PROJECT}" | ||
image_family: "${VM_FAMILY_NAME}" | ||
type: e2-medium | ||
matrix: | ||
- env: &debian-11-deb-pkg | ||
PROJECT: ${DEBIAN_PROJECT} | ||
BUILD_NAME: ${DEBIAN_11_NAME} | ||
VM_FAMILY_NAME: ${DEBIAN_FAMILY_NAME} | ||
- env: &debian-12-deb-pkg | ||
PROJECT: ${DEBIAN_PROJECT} | ||
BUILD_NAME: ${DEBIAN_12_NAME} | ||
VM_FAMILY_NAME: ${DEBIAN_FAMILY_NAME} | ||
- env: &ubuntu-latest-deb-pkg | ||
PROJECT: ${UBUNTU_PROJECT} | ||
BUILD_NAME: ${UBUNTU_LATEST_NAME} | ||
VM_FAMILY_NAME: ${UBUNTU_DEB_FAMILY_NAME} | ||
setup_script: | | ||
apt update --allow-releaseinfo-change | ||
apt -y install devscripts equivs python3-pip | ||
mk-build-deps | ||
apt -y install ./sosreport-build-deps*.deb | ||
pip3 install -r test-requirements.txt --break-system-packages | ||
[[ $(pip3 install --help | grep break-system) ]] && PIP_EXTRA="--break-system-packages" | ||
pip3 install -r test-requirements.txt ${PIP_EXTRA} | ||
main_script: | | ||
dpkg-buildpackage -b -us -uc -rfakeroot -m --build-by="[email protected]" | ||
prep_artifacts_script: mv ../*.deb ./sos_cirrus.deb | ||
prep_artifacts_script: mv ../*.deb ./sos_${BUILD_NAME}.deb | ||
packages_artifacts: | ||
path: ./sos_cirrus.deb | ||
path: ./sos_${BUILD_NAME}.deb | ||
type: application/octet-stream | ||
|
||
# Make sure a user can manually build a snap from the checkout | ||
|
@@ -213,25 +228,36 @@ report_stageone_task: | |
BUILD_NAME: "${UBUNTU_LATEST_NAME} - ${PKG}" | ||
VM_FAMILY_NAME: ${UBUNTU_LATEST_FAMILY_NAME} | ||
- env: &ubuntu-latest-deb | ||
<<: *ubuntu-latest-deb-pkg | ||
PKG: "deb" | ||
PROJECT: ${UBUNTU_PROJECT} | ||
BUILD_NAME: "${UBUNTU_LATEST_NAME} - ${PKG}" | ||
DEB_BUILD_NAME: ${UBUNTU_LATEST_NAME} | ||
VM_FAMILY_NAME: ${UBUNTU_LATEST_FAMILY_NAME} | ||
- env: &debian-12 | ||
<<: *debian-12-deb-pkg | ||
PKG: "deb" | ||
DEB_BUILD_NAME: ${BUILD_NAME} | ||
- env: &debian-11 | ||
<<: *debian-11-deb-pkg | ||
PKG: "deb" | ||
DEB_BUILD_NAME: ${BUILD_NAME} | ||
setup_script: &setup | | ||
if [ $(command -v apt) ]; then | ||
apt -y purge sosreport | ||
apt update --allow-releaseinfo-change | ||
apt -y install python3-pip snapd | ||
apt -y install python3-pip ethtool python3-systemd | ||
if [ ${PKG} == "snap" ] ; then | ||
apt -y install snapd | ||
echo "$ARTCURL/snap%20Build%20From%20Checkout/packages/sosreport_test_amd64.snap" | ||
$ARTCURL/snap%20Build%20From%20Checkout/packages/sosreport_test_amd64.snap | ||
systemctl start snapd | ||
snap install ./sosreport_test_amd64.snap --classic --dangerous | ||
snap alias sosreport.sos sos | ||
elif [ ${PKG} == "deb" ]; then | ||
echo "$ARTCURL/deb%20Build%20From%20Checkout/packages/sos_cirrus.deb" | ||
$ARTCURL/deb%20Build%20From%20Checkout/packages/sos_cirrus.deb | ||
apt -y install ./sos_cirrus.deb | ||
echo "$ARTCURL/deb%20Build%20From%20Checkout%20-%20${DEB_BUILD_NAME}/packages/sos_${DEB_BUILD_NAME}.deb" | ||
$ARTCURL/deb%20Build%20From%20Checkout%20-%20${DEB_BUILD_NAME}/packages/sos_${DEB_BUILD_NAME}.deb | ||
apt -y install ./sos_${DEB_BUILD_NAME}.deb | ||
sed -i 's/\(127.0.1.1\)/#\1/g' /etc/hosts | ||
fi | ||
fi | ||
if [ $(command -v dnf) ]; then | ||
|
@@ -290,6 +316,7 @@ report_stagetwo_task: | |
- env: *ubuntu | ||
- env: *ubuntu-latest-snap | ||
- env: *ubuntu-latest-deb | ||
- env: *debian-12 | ||
setup_script: *setup | ||
install_pexpect_script: | | ||
if [ $(command -v apt) ]; then | ||
|
@@ -330,9 +357,7 @@ report_foreman_task: | |
type: e2-standard-2 | ||
matrix: | ||
- env: | ||
PROJECT: ${DEBIAN_PROJECT} | ||
VM_FAMILY_NAME: ${DEBIAN_FAMILY_NAME} | ||
BUILD_NAME: ${DEBIAN_NAME} | ||
<<: *debian-11 | ||
FOREMAN_VER: "3.7" | ||
setup_script: *setup | ||
foreman_setup_script: ./tests/test_data/foreman_setup.sh | ||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see sometimes
packages['Ubuntu']
and sometimespackages['ubuntu']
declared. While distro checking is case sensitive, I think..?This PR does not change the case sensitivity on either place, but maybe it reveals the problem behind it..?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, the Report Stage One - ubuntu-24.10 - deb is not even getting to that point, it's as if it's not even running the if statement or is coming out as false, and hence not completing the setup
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I dont understand the error. How it could ever attempt to run
apt -y install sosreport
if that package/file name (forapt
) is never mentioned..?