Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Expose the Analize method of yip #548

Merged
merged 1 commit into from
Sep 20, 2024
Merged

Expose the Analize method of yip #548

merged 1 commit into from
Sep 20, 2024

Conversation

Itxaka
Copy link
Member

@Itxaka Itxaka commented Sep 19, 2024

This only shows for a given stage what steps would be run and in which order

With a given yaml as this

name: test stage
stages:
  test.after:
    - name: AFTER
  test.before:
    - name: BEFORE
  test:
    - name: test1
    - name: test2

The output is as follows:

$ go run main.go run-stage -a --cloud-init-paths . test
2024-09-19T12:54:47+02:00 INF Kairos Agent version=v0.0.1
2024-09-19T12:54:47+02:00 INF creating a runtime
2024-09-19T12:54:47+02:00 INF detecting boot state
2024-09-19T12:54:47+02:00 INF Boot Mode boot_mode=unknown
2024-09-19T12:54:47+02:00 INF Boot in uki mode result=false
2024-09-19T12:54:47+02:00 INF Analyze mode, showing DAG
2024-09-19T12:54:47+02:00 INF 1.
2024-09-19T12:54:47+02:00 INF  <init> (background: false) (weak: false)
2024-09-19T12:54:47+02:00 INF 2.
2024-09-19T12:54:47+02:00 INF  <test stage.BEFORE> (background: false) (weak: true)
2024-09-19T12:54:47+02:00 INF 1.
2024-09-19T12:54:47+02:00 INF  <init> (background: false) (weak: false)
2024-09-19T12:54:47+02:00 INF 2.
2024-09-19T12:54:47+02:00 INF  <test stage.test1> (background: false) (weak: true)
2024-09-19T12:54:47+02:00 INF 3.
2024-09-19T12:54:47+02:00 INF  <test stage.test2> (background: false) (weak: true)
2024-09-19T12:54:47+02:00 INF 1.
2024-09-19T12:54:47+02:00 INF  <init> (background: false) (weak: false)
2024-09-19T12:54:47+02:00 INF 2.
2024-09-19T12:54:47+02:00 INF  <test stage.AFTER> (background: false) (weak: true)

@Itxaka Itxaka requested a review from a team September 19, 2024 10:57
Copy link

codecov bot commented Sep 19, 2024

Codecov Report

Attention: Patch coverage is 26.92308% with 19 lines in your changes missing coverage. Please review.

Project coverage is 49.80%. Comparing base (fbb64f2) to head (e8982cc).
Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
pkg/utils/runstage.go 29.16% 8 Missing and 9 partials ⚠️
pkg/cloudinit/cloudinit.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #548      +/-   ##
==========================================
- Coverage   49.94%   49.80%   -0.15%     
==========================================
  Files          48       48              
  Lines        4549     4566      +17     
==========================================
+ Hits         2272     2274       +2     
- Misses       2010     2018       +8     
- Partials      267      274       +7     

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

This only shows for a given stage what steps would be run and in which
order

Signed-off-by: Itxaka <itxaka@kairos.io>
Copy link
Member

@mauromorales mauromorales left a comment

Choose a reason for hiding this comment

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

noiiiice 👏

@Itxaka Itxaka merged commit bd4dce0 into main Sep 20, 2024
14 checks passed
@Itxaka Itxaka deleted the runstage_analyze branch September 20, 2024 08:36
renovate bot referenced this pull request in kairos-io/provider-kairos Sep 24, 2024
…4.2 (#639)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/kairos-io/kairos-agent/v2](https://github.com/kairos-io/kairos-agent)
| `v2.14.1` -> `v2.14.2` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fkairos-io%2fkairos-agent%2fv2/v2.14.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fkairos-io%2fkairos-agent%2fv2/v2.14.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fkairos-io%2fkairos-agent%2fv2/v2.14.1/v2.14.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fkairos-io%2fkairos-agent%2fv2/v2.14.1/v2.14.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>kairos-io/kairos-agent
(github.com/kairos-io/kairos-agent/v2)</summary>

###
[`v2.14.2`](https://github.com/kairos-io/kairos-agent/releases/tag/v2.14.2)

[Compare
Source](https://github.com/kairos-io/kairos-agent/compare/v2.14.1...v2.14.2)

#### What's Changed

- chore(deps): update securego/gosec action to v2.21.3 by
[@&#8203;renovate](https://github.com/renovate) in
[https://github.com/kairos-io/kairos-agent/pull/547](https://github.com/kairos-io/kairos-agent/pull/547)
- Revert "chore(deps): update securego/gosec action to v2.21.3" by
[@&#8203;Itxaka](https://github.com/Itxaka) in
[https://github.com/kairos-io/kairos-agent/pull/549](https://github.com/kairos-io/kairos-agent/pull/549)
- chore(deps): update securego/gosec action to v2.21.3 by
[@&#8203;renovate](https://github.com/renovate) in
[https://github.com/kairos-io/kairos-agent/pull/551](https://github.com/kairos-io/kairos-agent/pull/551)
- Expose the Analize method of yip by
[@&#8203;Itxaka](https://github.com/Itxaka) in
[https://github.com/kairos-io/kairos-agent/pull/548](https://github.com/kairos-io/kairos-agent/pull/548)
- Revert "chore(deps): update securego/gosec action to v2.21.3" by
[@&#8203;Itxaka](https://github.com/Itxaka) in
[https://github.com/kairos-io/kairos-agent/pull/553](https://github.com/kairos-io/kairos-agent/pull/553)
- fix(deps): update dependency codemirror to v5.65.18 by
[@&#8203;renovate](https://github.com/renovate) in
[https://github.com/kairos-io/kairos-agent/pull/555](https://github.com/kairos-io/kairos-agent/pull/555)
- Accept more paths to devices for install by
[@&#8203;Itxaka](https://github.com/Itxaka) in
[https://github.com/kairos-io/kairos-agent/pull/552](https://github.com/kairos-io/kairos-agent/pull/552)

**Full Changelog**:
kairos-io/kairos-agent@v2.14.1...v2.14.2

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "after 11pm every weekday,before 7am
every weekday,every weekend" in timezone Europe/Brussels, Automerge - At
any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/kairos-io/provider-kairos).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC44MC4wIiwidXBkYXRlZEluVmVyIjoiMzguODAuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants