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

fix/separate api primitives #4

Merged
merged 5 commits into from
Oct 8, 2024
Merged

fix/separate api primitives #4

merged 5 commits into from
Oct 8, 2024

Conversation

mimir-d
Copy link
Contributor

@mimir-d mimir-d commented Oct 4, 2024

  • split runner.rs into smaller files

    • smaller files makes the scope of the objects easier to reason about,
      grouping them by ocptv topic
    • objects.rs was a mix of unrelated items, move them to separate
      modules for easier maintainability
  • remove the leaky ArtifactContext

    • previously all log and error outputs needed to know where theyre being
      called from; this is an antipattern and leaks impl detail
    • move this context to the proper spaces (in StartedTestRun,
      StartedTestStep)

Copy link

codecov bot commented Oct 4, 2024

Codecov Report

Attention: Patch coverage is 97.80354% with 36 lines in your changes missing coverage. Please review.

Project coverage is 97.9%. Comparing base (1772e2d) to head (4987393).
Report is 7 commits behind head on dev.

Files with missing lines Patch % Lines
src/output/step.rs 91.6% 13 Missing ⚠️
src/output/measurement.rs 98.1% 10 Missing ⚠️
src/output/dut.rs 98.3% 7 Missing ⚠️
src/output/run.rs 97.7% 6 Missing ⚠️
Additional details and impacted files

@mimir-d mimir-d marked this pull request as draft October 4, 2024 19:13
@mimir-d mimir-d marked this pull request as ready for review October 8, 2024 16:22
@mimir-d
Copy link
Contributor Author

mimir-d commented Oct 8, 2024

fixing the check/stable/fmt before merge

@mimir-d mimir-d changed the title WIP: Fix/separate api primitives Fix/separate api primitives Oct 8, 2024
@mimir-d
Copy link
Contributor Author

mimir-d commented Oct 8, 2024

looks like i need to fix the fmt check now; all the next PRs are failing on the same test

@mimir-d mimir-d force-pushed the fix/separate_api_primitives branch from 82b8dd6 to 4c539af Compare October 8, 2024 16:34
@mimir-d mimir-d changed the title Fix/separate api primitives fix/separate api primitives Oct 8, 2024
Base automatically changed from fea/typestate_step to dev October 8, 2024 16:59
- this refactoring is in preparation for the next steps (commits on this
  branch)
- smaller files makes the scope of the objects easier to reason about,
  grouping them by ocptv topic

Signed-off-by: mimir-d <[email protected]>
- `objects.rs` was a mix of unrelated items, move them to separate
  modules for easier maintainability

Signed-off-by: mimir-d <[email protected]>
- previously all log and error outputs needed to know where theyre being
  called from; this is an antipattern and leaks impl detail
- move this context to the proper spaces (in StartedTestRun,
  StartedTestStep)
- this commit changes semantics of the `to_artifact` a bit, but this
  will be cleared in the next commits which refactor the emitter

Signed-off-by: mimir-d <[email protected]>
- reasoning: this spec file will be used in multiple modules (serialized
  in ::output but deserialize in possibly ::parse)
- remove the `Spec` suffix from the objects now, since that's clear from
  the module name

Signed-off-by: mimir-d <[email protected]>
@mimir-d mimir-d force-pushed the fix/separate_api_primitives branch from 4c539af to 4987393 Compare October 8, 2024 17:01
@mimir-d mimir-d merged commit 825e31a into dev Oct 8, 2024
10 checks passed
@mimir-d mimir-d deleted the fix/separate_api_primitives branch October 8, 2024 17:03
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