Skip to content

ci: Update CI workflows#258

Merged
mhovd merged 3 commits into
mainfrom
update-ci
Apr 1, 2026
Merged

ci: Update CI workflows#258
mhovd merged 3 commits into
mainfrom
update-ci

Conversation

@mhovd
Copy link
Copy Markdown
Collaborator

@mhovd mhovd commented Mar 25, 2026

Attempts to save compute time.

Runs cargo fmt only on Ubuntu, and before all other checks.
Uses a consistent cache strategy.
Runs security-audits bi-weekly.

mhovd added 3 commits March 25, 2026 10:19
Runs Lint only on Ubuntu, saving minutes.
Uses a consistent cache.
Runs security-audits bi-weekly.
Use binary of cargo audit instead of compiling from source
Copilot AI review requested due to automatic review settings March 25, 2026 09:24
@github-actions
Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Branchupdate-ci
Testbedmhovd-pgx
Click to view all benchmark results
BenchmarkLatencymilliseconds (ms)
bimodal_ke_npag📈 view plot
🚷 view threshold
4,962.80 ms
bimodal_ke_npod📈 view plot
🚷 view threshold
1,303.50 ms
bimodal_ke_postprob📈 view plot
🚷 view threshold
345.79 ms
🐰 View full continuous benchmarking report in Bencher

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates GitHub Actions workflows to reduce CI compute and standardize parts of the Rust CI pipeline, including scheduling dependency security audits.

Changes:

  • Splits formatting into a dedicated Ubuntu-only lint job and gates the test matrix on it.
  • Replaces manual Cargo caching with Swatinem/rust-cache@v2 in the Rust build/test workflow.
  • Moves security auditing to rustsec/audit-check@v2 and adds a twice-monthly scheduled run.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
.github/workflows/security_audit.yml Adds a cron schedule and switches the audit implementation to rustsec/audit-check@v2.
.github/workflows/rust.yml Adds a lint job for cargo fmt, updates caching to rust-cache, and reorganizes the job flow.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


name: Build
'on':
"on":
Copy link

Copilot AI Mar 25, 2026

Choose a reason for hiding this comment

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

Workflow trigger key is changed to "on" (quoted) here, but other workflows in this repo still use the unquoted on: form (e.g., .github/workflows/docs.yml, release.yml). Consider keeping the style consistent across workflows (either update the others in the same PR, or revert to on: here).

Suggested change
"on":
on:

Copilot uses AI. Check for mistakes.
name: Security Audit

'on':
"on":
Copy link

Copilot AI Mar 25, 2026

Choose a reason for hiding this comment

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

Workflow trigger key is quoted as "on" here, while other workflows in the repo use on: unquoted. For consistency/maintainability, consider standardizing on one style across all workflow files.

Suggested change
"on":
on:

Copilot uses AI. Check for mistakes.
@mhovd mhovd merged commit 1ca2a0a into main Apr 1, 2026
11 checks passed
@github-actions github-actions Bot mentioned this pull request Apr 1, 2026
@mhovd mhovd deleted the update-ci branch May 21, 2026 12: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.

3 participants