-
Notifications
You must be signed in to change notification settings - Fork 5
Automated install tests #226
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
Open
ydirson
wants to merge
42
commits into
master
Choose a base branch
from
install
base: master
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.
Open
Changes from all commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
30d9f26
get_vdi_sr_uuid: fix intermediate-style call
ydirson 65ad973
pool: add a log for better understanding of INFO level
ydirson 3d74bb3
ci: pull additional typing data for mypy
ydirson 76e7cea
pxe: improve and simplify error logging
ydirson 873edc3
Host: on VM cache miss print a key pastable into IMAGE_*EQUIVS
ydirson f13b90b
install 1/n: fixture to create VMs from template
ydirson 98751b7
install 2/n: insert ISO in host VM
ydirson 9603aaa
install 3/n: use iso-remaster to plug an hardcoded answerfile
ydirson 58cb7b0
install 4/n: boot and monitor installer
ydirson 606bbf4
install 5/n: make sure host running installer appears in PXE ARP tables
ydirson c39a168
install 6/n: install test-pingpxe service on host
ydirson cfc208a
install 7/n: answerfile generation
ydirson b81be83
install 8/n: use VM cache to chain tests
ydirson ec64c6c
install 9/n: add firstboot test
ydirson dfa32dd
Image caching: include commit hash in caching key
ydirson a291975
Image caching: allow to declare image equivalence
ydirson c2550d8
install: use xcpng_chained/continuation_of to simplify dependency spec
ydirson 74b325a
remastered_iso: support for unsigned ISOs
ydirson 5229098
install: add "version" test parameter and test-sequences
ydirson 873681e
Add upgrade test
ydirson 43d907b
install: add a "firmware" parameter
ydirson 2c55489
install: add "restore" test using 8.3 ISO
ydirson a8ca7fc
install/firstboot: check installed version
ydirson 636832f
install: add XS/CH support
ydirson f551413
install: add installation of xcp-ng 8.0 and 8.1, upgrades to 8.3
ydirson 828b331
install: 7.5, 7.6, and XS 7.0
ydirson a58c091
install: produce several hosts from single install
ydirson d6d75da
install: adjust host IP, name, UUIDs in firstboot data before booting
ydirson 628b441
Add local_sr parameter to test_install
ydirson dbe207b
import_vm: add clone:// and clone+start:// URIs
ydirson c2aebd4
hosts: make setup_host a nested func
ydirson 1ed82c5
Add support for --nest=... --hosts=cache://...
ydirson ba67db4
Add support for netinstall
gthvn1 e0e7161
New test: pool_join
ydirson 0c0818b
firstboot: reordering cleanup
ydirson 36dd692
firstboot: move _upg and _rst tests to group them with upgrade and re…
ydirson 5af18ff
install: add 82nightly configuration for CI
ydirson 0f7adf8
install: replace 8.3 prereleases with 8.3.0 as base version for upgrades
ydirson 7e2c63b
install: support the new platform setting for nesting in 8.3+
ydirson 646cd62
pxe.arp_addresses_for: use ARP_SERVER not PXE_CONFIG_SERVER
ydirson 5f09060
pxe.arp_addresses_for: use iproute2
ydirson 371fef4
install: add a first README for automated installs
ydirson 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 hidden or 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 hidden or 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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Check test-sequences consistency | ||
|
||
on: [push] | ||
|
||
jobs: | ||
jobs-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements/base.txt | ||
- name: Create a dummy data.py | ||
run: cp data.py-dist data.py | ||
- name: jobs-check | ||
run: | | ||
FAILURES="" | ||
for seq in $(find -name "*.lst"); do | ||
if ! pytest @$seq --collect-only --quiet; then | ||
FAILURES="$FAILURES $seq" | ||
fi | ||
done | ||
[ -z "$FAILURES" ] || { echo >&2 "ERROR: test sequences failed consistency check: $FAILURES"; exit 1; } |
This file contains hidden or 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.
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.
There is no check to ensure that
config
is notNone
.In fact
setup_host
is defined and used only insidehosts()
and could as well usepytestconfig
fromhosts()
instead of passing the config as parameter.