Skip to content

Conversation

@vivus-ignis
Copy link
Contributor

@vivus-ignis vivus-ignis commented Oct 23, 2025

What this PR does / why we need it:

Which issue(s) this PR fixes:
Fixes #189

This PR also includes a fixed release notes mockup file.

@codecov
Copy link

codecov bot commented Oct 23, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.24%. Comparing base (c197e25) to head (f237e18).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #232   +/-   ##
=======================================
  Coverage   90.24%   90.24%           
=======================================
  Files          42       42           
  Lines        2009     2009           
=======================================
  Hits         1813     1813           
  Misses        196      196           

☔ View full report in Codecov by Sentry.
📢 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.

@vivus-ignis vivus-ignis marked this pull request as ready for review October 23, 2025 12:51

s3_artifacts = S3Artifacts(s3_bucket_name)

commitish_short = commitish[:8]
Copy link
Contributor

Choose a reason for hiding this comment

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

The gardenlinux.features.CName class is capable of calculating the correct short commit hash based on the Git commit hash and defined behavior. Please do not truncate commit hashes elsewhere in the code.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This particular short commit variable is used to construct an s3 objects filter. Not sure how CName instance could help there.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Otherwise replaced its use for CName call below with full commit id.

Copy link
Contributor

Choose a reason for hiding this comment

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

Use commitish_short = cname.commit_id for that purpose or directly Prefix=f"meta/singles/{cname}-{version}-{cname.commit_id}".

Copy link
Contributor

Choose a reason for hiding this comment

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

You may also use Prefix=f"meta/singles/{cname.cname} if applicable.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Switched to using cname.cname where appropriate. cname.commit_id however doesn't work as expected and breaks tests. Will check it out in a separate PR.

Copy link
Contributor

@NotTheEvilOne NotTheEvilOne left a comment

Choose a reason for hiding this comment

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

LGTM

@vivus-ignis vivus-ignis merged commit 8be8d85 into main Oct 24, 2025
6 of 9 checks passed
@vivus-ignis vivus-ignis deleted the 189-refactor-new-code-imported-from-gl-workflow-scripts branch October 24, 2025 10:31
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.

Refactor new code imported from GL workflow scripts to conform with the style of the rest of the project

3 participants