Skip to content

Write workflow long term shutdown servers#453

Draft
jose-caballero wants to merge 2 commits into
mainfrom
write_workflow_long_term_shutdown_servers
Draft

Write workflow long term shutdown servers#453
jose-caballero wants to merge 2 commits into
mainfrom
write_workflow_long_term_shutdown_servers

Conversation

@jose-caballero

Copy link
Copy Markdown
Contributor

Description:

Special Notes:


Submitter:

Have you (where applicable):

  • Added unit tests?
  • Checked the latest commit runs on Dev?
  • Updated the example config file(s) and README?

Reviewer

Does this PR:

  • Place non-StackStorm code into the lib directory?
  • Have unit tests for the action/sensor and lib layers?
  • Have clear and obvious action parameter names and descriptions?

@jose-caballero jose-caballero marked this pull request as draft June 17, 2026 08:15
@jose-caballero jose-caballero force-pushed the write_workflow_long_term_shutdown_servers branch from 636f071 to 7bcf13f Compare June 17, 2026 08:17
@codecov

codecov Bot commented Jun 17, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 10 lines in your changes missing coverage. Please review.
✅ Project coverage is 98.83%. Comparing base (ed7efdb) to head (78d0f03).
⚠️ Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
lib/workflows/find_shutdown_servers.py 0.00% 10 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #453      +/-   ##
==========================================
- Coverage   99.18%   98.83%   -0.36%     
==========================================
  Files         111      113       +2     
  Lines        2698     2736      +38     
  Branches      338      339       +1     
==========================================
+ Hits         2676     2704      +28     
- Misses         19       29      +10     
  Partials        3        3              

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jose-caballero jose-caballero force-pushed the write_workflow_long_term_shutdown_servers branch from e327a01 to edb6c51 Compare June 17, 2026 12:41
This implementation is just a first draft.
For the time being, it just prints out the list of Servers found being
in SHUTOFF state for longer than a given number of days.
The main purpose of this is to validate the call to the query API.

This function does not require unit testing, at least not yet.
@jose-caballero jose-caballero force-pushed the write_workflow_long_term_shutdown_servers branch from edb6c51 to 78d0f03 Compare June 17, 2026 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant