Skip to content

SK-298 // chore: minor style updates - #262

Merged
ogorman89 merged 15 commits into
mainfrom
ian/minor-cleanup
Jul 14, 2026
Merged

SK-298 // chore: minor style updates#262
ogorman89 merged 15 commits into
mainfrom
ian/minor-cleanup

Conversation

@ogorman89

@ogorman89 ogorman89 commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Description and Rationale

  • A few minor style discussions recently this PR just makes a few of those changes globally
    • Avoid importing the prelude within the same crate e.g. use crate::prelude::*; prefer explicit imports for clarity
    • Avoid using Super outside tests prefer explicit imports for clarity
    • When importing constants prefer use crate::constants::*; constants should all have descriptive names and are co-located so explicit imports don't offer the same clarity benefit that importing functionality does

These are all quite minor.

Test Steps

  • make test

  • [ X ] I certify that this PR does not contain any code that has been generated with GitHub Copilot or any other AI-based code generation tool, in accordance with this project's policies.

@codecov

codecov Bot commented Jul 14, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.20%. Comparing base (c2554e9) to head (d44634f).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #262   +/-   ##
=======================================
  Coverage   79.20%   79.20%           
=======================================
  Files          61       61           
  Lines        4010     4010           
=======================================
  Hits         3176     3176           
  Misses        834      834           

☔ 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.

@ogorman89
ogorman89 force-pushed the ian/minor-cleanup branch from 0848b02 to 533a3d8 Compare July 14, 2026 16:46
use sk_api::v1::{
Simulation,
SimulationRoot,
};

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because we are no longer importing prelude in sk-core/src/k8s/mod.rs

use sk_testutils::*;

use super::*;
use crate::constants::*;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also now needed because the prelude is not being imported in sk-core/src/k8s/mod.rs

@@ -1,5 +1,6 @@
use assertables::*;
use clockabilly::Utc;
use kube::api::DynamicObject;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and .... also now needed because the prelude is not being imported in sk-core/src/k8s/mod.rs

@ogorman89 ogorman89 changed the title Ian/minor cleanup SK-298 // chore: minor style updates Jul 14, 2026
@linear-code

linear-code Bot commented Jul 14, 2026

Copy link
Copy Markdown

SK-298

@ogorman89 ogorman89 self-assigned this Jul 14, 2026
@ogorman89
ogorman89 requested a review from drmorr0 July 14, 2026 17:28
@ogorman89
ogorman89 marked this pull request as ready for review July 14, 2026 17:28

@drmorr0 drmorr0 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Comment thread sk-core/src/k8s/util.rs Outdated
Comment on lines +18 to +21
DEPL_REVISION_LABEL_KEY,
GVK,
KubernetesError,
LAST_APPLIED_CONFIG_LABEL_KEY,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel like these should be moved into constants

@ogorman89
ogorman89 merged commit 4ff5124 into main Jul 14, 2026
7 checks passed
@ogorman89
ogorman89 deleted the ian/minor-cleanup branch July 14, 2026 19:54
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.

2 participants