Repository navigation
NO-ISSUE: [DO NOT MERGE] Dummy intentional failures to exercise the AI diagnostic pipeline #980
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -93,6 +93,12 @@ def test_baremetal_instance_lifecycle( | |
| test_run_id: str, | ||
| ssh_public_key: str, | ||
| ) -> None: | ||
| assert False, ( | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win Remove the unconditional failure before merging.
🤖 Prompt for AI Agents |
||
| "DUMMY FAILURE (NO-ISSUE) -- intentional break to exercise the AI " | ||
| "diagnostic pipeline end-to-end (Reserve -> Running -> diagnosis), " | ||
| "placed before any real resource creation. Not a real regression; " | ||
| "revert this line before merging." | ||
| ) | ||
| name = f"e2e-bmi-{test_run_id}" | ||
| bmi_id: str = cli.create_baremetal_instance(name=name, catalog_item=catalog_item, ssh_key=ssh_public_key) | ||
| bmh_ns = "" | ||
|
|
||
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.
🎯 Functional Correctness | 🔴 Critical | ⚡ Quick win
Remove the unused
unicodeimport.Go rejects unused imports during compilation. This makes
osac-metering/adapters/cmd/echo-adapterfail type checking and blocks the build stage. Remove this import when the failure injection is no longer required.🧰 Tools
🪛 golangci-lint (2.13.2)
[error] 47-47: : # github.com/osac-project/osac-metering/adapters/cmd/echo-adapter [github.com/osac-project/osac-metering/adapters/cmd/echo-adapter.test]
cmd/echo-adapter/main.go:47:2: "unicode" imported and not used
(typecheck)
🤖 Prompt for AI Agents
Source: Linters/SAST tools