Skip to content

Conversation

adamhjk
Copy link
Contributor

@adamhjk adamhjk commented Feb 28, 2025

This PR runs all validations in parallel, rather than in serial. The result is that initial validation runs feel pretty much instantaneous.

This PR runs all validations in parallel, rather than in serial. The
result is that initial validation runs feel pretty much instantaneous.
@github-actions github-actions bot added the A-dal label Feb 28, 2025
Copy link

Dependency Review

✅ No vulnerabilities or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Files

let value = AttributeValue::get_by_id(ctx, av_id)
.await?
.value(ctx)
let ctx_clone = ctx.clone();
Copy link
Contributor

Choose a reason for hiding this comment

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

Most places I've seen we just use the same variable name (makes the code read the same whether it's in the block or not.)

Suggested change
let ctx_clone = ctx.clone();
let ctx = ctx.clone();

@wendybujalski
Copy link
Contributor

Do I assume correctly that this change means that we're sure all validations are independent of each other and can run concurrently? Could there possibly be a case where two validations would affect each other when running in parallel?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants