Skip to content

ci(Build-Rock): add flag to run rockcraft test conditionally - #475

Closed
alesancor1 wants to merge 72 commits into
mainfrom
ROCKS-2151/rockcraft-test-integration
Closed

ci(Build-Rock): add flag to run rockcraft test conditionally#475
alesancor1 wants to merge 72 commits into
mainfrom
ROCKS-2151/rockcraft-test-integration

Conversation

@alesancor1

Copy link
Copy Markdown
Member

Ping the @canonical/rocks team.


Description

A new flag to the rockcraft pack action will be added to conditionally run rockcraft test. This PR adapts the current reusable Build-Rock workflow to cope with the new flag.

Blocked by: canonical/craft-actions#40

@alesancor1
alesancor1 requested a review from a team as a code owner June 6, 2025 11:44
type: string
rockcraft-test:
description: "Whether to run rockcraft test when packing the rock"
type: boolean

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

this means it's mandatory, but it's optional in the action. wanna default to false?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

GH Actions docs suggest that required is false by default, as it is only necessary to specify it when something is actually required (i.e set to true). So it should work anyway, as the action itself will consider test: false if no value is passed down to it.

In any case, I added the default value just to be safe 👍
Check: 8d319ed

@zhijie-yang zhijie-yang left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM, thanks!

@alesancor1
alesancor1 requested a review from cjdcordeiro July 1, 2025 09:27
alesancor1 and others added 22 commits July 1, 2025 12:40
* ci: decouple vulnerability-scan workflow from oci-factory

The input required only for OCI-Factory are now optional. A check has been added for it.
Co-authored-by: lucabello <lucabello@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
ROCKsBot and others added 24 commits July 1, 2025 12:41
Co-authored-by: sed-i <sed-i@users.noreply.github.com>
Co-authored-by: observability-noctua-bot <observability-noctua-bot@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: zhijie-yang <zhijie.yang@canonical.com>
@alesancor1
alesancor1 force-pushed the ROCKS-2151/rockcraft-test-integration branch from c61e814 to a14427a Compare July 1, 2025 10:42
@github-actions

github-actions Bot commented Jul 1, 2025

Copy link
Copy Markdown

@alesancor1 please make sure all PR contributors have signed the CLA.

@github-actions

github-actions Bot commented Jul 1, 2025

Copy link
Copy Markdown

One or more files in this PR are not valid! 😬
Run ID: 15997048210 ; Attempt: 1

See logs.

@alesancor1

alesancor1 commented Jul 1, 2025

Copy link
Copy Markdown
Member Author

Messed PR - will create it again: #492

@alesancor1 alesancor1 closed this Jul 1, 2025
@alesancor1
alesancor1 deleted the ROCKS-2151/rockcraft-test-integration branch July 1, 2025 10:50
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.

8 participants