Skip to content

fix(ci+rds): unbreak Docker workflow + RDS engine_version validator#818

Merged
vieiralucas merged 2 commits intomainfrom
worktree-trivy-action-bump
Apr 28, 2026
Merged

fix(ci+rds): unbreak Docker workflow + RDS engine_version validator#818
vieiralucas merged 2 commits intomainfrom
worktree-trivy-action-bump

Conversation

@vieiralucas
Copy link
Copy Markdown
Member

@vieiralucas vieiralucas commented Apr 28, 2026

Summary

Two fixes to clear red CI on main after #814 + #810 merged:

  1. Bump aquasecurity/trivy-action v0.30.0 -> v0.36.0. v0.30.0 internally pins aquasecurity/setup-trivy@v0.2.2 which upstream has removed — the only reachable tag is v0.2.6. Every Docker workflow run failed with Unable to resolve action aquasecurity/setup-trivy@v0.2.2. v0.36.0 references setup-trivy@v0.2.6; input surface unchanged.
  2. Accept short engine_version majors in CreateDBInstance validator. PR feat(rds): MySQL/MariaDB Lambda bridge + prebuilt images #810's aws_lambda_bridge_mysql_round_trip + aws_lambda_bridge_mariadb_round_trip use engine_version("8.0") / ("10.11") — major-only strings AWS RDS accepts. The validator only knew about full <major>.<minor>.<patch> triplets, so both tests have been failing on every main E2E run since feat(rds): MySQL/MariaDB Lambda bridge + prebuilt images #810. Added postgres/mysql/mariadb majors to supported_versions.

Test plan

  • Docker workflow run on main succeeds (no Unable to resolve action).
  • E2E aws_lambda_bridge_mysql_round_trip + aws_lambda_bridge_mariadb_round_trip pass on the PR run.
  • Trivy scan executes and reports findings (or zero) on the next merge to main.

`aquasecurity/trivy-action@v0.30.0` pins
`aquasecurity/setup-trivy@v0.2.2` internally, which has been removed
upstream — only `v0.2.6` exists today. The pin breaks every workflow
run with `Unable to resolve action aquasecurity/setup-trivy@v0.2.2,
unable to find version v0.2.2`.

Bump to `v0.36.0` (SHA pinned), which references
`setup-trivy@v0.2.6`. No input changes needed; the action surface is
backwards compatible.
Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

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

No issues found across 2 files

@vieiralucas vieiralucas changed the title fix(ci): bump trivy-action to v0.36.0 fix(ci+rds): unbreak Docker workflow + RDS engine_version validator Apr 28, 2026
Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

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

1 issue found across 1 file (changes from recent commits).

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="crates/fakecloud-rds/src/service.rs">

<violation number="1" location="crates/fakecloud-rds/src/service.rs:2486">
P2: Don't add MariaDB 11.4 here unless the matching default parameter-group and engine-version metadata are wired through too.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

Comment thread crates/fakecloud-rds/src/service.rs Outdated
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 28, 2026

Codecov Report

❌ Patch coverage is 83.33333% with 3 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
crates/fakecloud-rds/src/service.rs 50.00% 3 Missing ⚠️

📢 Thoughts on this report? Let us know!

@vieiralucas vieiralucas force-pushed the worktree-trivy-action-bump branch 3 times, most recently from 9603ff4 to 2cf0af7 Compare April 28, 2026 13:18
`aws_lambda_bridge_mysql_round_trip` and the matching mariadb test in
PR #810 use `engine_version("8.0")` / `("10.11")` — short major-only
strings AWS RDS accepts. The CreateDBInstance validator only knew about
full `<major>.<minor>.<patch>` strings (`8.0.35`, `10.11.6`), so both
tests have been failing on every main run since #810 merged with
`EngineVersion 'X' is not supported yet.`

Add the short majors for postgres, mysql, and mariadb to
`supported_versions`. The runtime already resolves them — it parses
the prefix to pick an image tag — so this is a validator-only gap.
@vieiralucas vieiralucas force-pushed the worktree-trivy-action-bump branch from 2cf0af7 to 738abf5 Compare April 28, 2026 13:39
@vieiralucas vieiralucas merged commit ccf8746 into main Apr 28, 2026
88 of 91 checks passed
@vieiralucas vieiralucas deleted the worktree-trivy-action-bump branch April 28, 2026 14:14
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.

1 participant