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

Add poweroff hardware cleanup step after Tinkerbell E2E tests #8140

Merged
merged 4 commits into from
May 29, 2024

Conversation

cxbrowne1207
Copy link
Member

@cxbrowne1207 cxbrowne1207 commented May 10, 2024

Issue #, if available:

Description of changes:
This PR makes changes to ensure that Tinkerbell hardware for a test are powered off after a run. A few changes were made as a result:

  • Changed --cleanup-vms to --cleanup-resources to make it more generic (because tinkerbell does not use VMs).
  • Changed the E2E test Provider.CleanupVMs method to Provider.CleanupResources
  • Move powerOffHardware out of ValidateHardwareDecommissioned so it does not run twice at the end of existing tests.
  • Implemented the E2E test Tinkerbell Provider.CleanupResources method to power off hardware machines.

Testing (if applicable):

Documentation added/planned (if applicable):

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@eks-distro-bot eks-distro-bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label May 10, 2024
@cxbrowne1207 cxbrowne1207 changed the title Add Tinkerbell cleanup step after E2E tests Add poweroff hardware cleanup step after Tinkerbell E2E tests May 10, 2024
@cxbrowne1207 cxbrowne1207 force-pushed the tinkerbell-test-cleanup branch from 500a6aa to 84f9079 Compare May 10, 2024 22:12
@cxbrowne1207 cxbrowne1207 changed the title Add poweroff hardware cleanup step after Tinkerbell E2E tests [WIP] Add poweroff hardware cleanup step after Tinkerbell E2E tests May 10, 2024
Copy link

codecov bot commented May 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.42%. Comparing base (0e112c0) to head (19e9019).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8140   +/-   ##
=======================================
  Coverage   73.42%   73.42%           
=======================================
  Files         577      577           
  Lines       35944    35944           
=======================================
  Hits        26391    26391           
  Misses       7884     7884           
  Partials     1669     1669           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

internal/test/bmc.go Outdated Show resolved Hide resolved
internal/test/cleanup/cleanup.go Outdated Show resolved Hide resolved
internal/test/cleanup/cleanup.go Show resolved Hide resolved
test/framework/tinkerbell.go Outdated Show resolved Hide resolved
@cxbrowne1207 cxbrowne1207 force-pushed the tinkerbell-test-cleanup branch from 84f9079 to 3163645 Compare May 15, 2024 14:44
@cxbrowne1207 cxbrowne1207 changed the title [WIP] Add poweroff hardware cleanup step after Tinkerbell E2E tests Add poweroff hardware cleanup step after Tinkerbell E2E tests May 15, 2024
@cxbrowne1207 cxbrowne1207 force-pushed the tinkerbell-test-cleanup branch from 3163645 to 85b7f79 Compare May 15, 2024 16:00
@cxbrowne1207 cxbrowne1207 force-pushed the tinkerbell-test-cleanup branch from 85b7f79 to af8985f Compare May 15, 2024 16:13
cmd/integration_test/cmd/run.go Outdated Show resolved Hide resolved
cmd/integration_test/cmd/run.go Outdated Show resolved Hide resolved
internal/test/cleanup/cleanup.go Outdated Show resolved Hide resolved
@cxbrowne1207 cxbrowne1207 force-pushed the tinkerbell-test-cleanup branch from af8985f to 19e9019 Compare May 28, 2024 23:28
@cxbrowne1207
Copy link
Member Author

/approve

@eks-distro-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cxbrowne1207

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@eks-distro-bot eks-distro-bot merged commit 249f20d into aws:main May 29, 2024
12 checks passed
@cxbrowne1207 cxbrowne1207 deleted the tinkerbell-test-cleanup branch May 29, 2024 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants