Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(container): skip "label" rule evaluation in container execution #380

Merged
merged 2 commits into from
Jun 14, 2024

Conversation

wsan3
Copy link
Contributor

@wsan3 wsan3 commented Jun 13, 2024

Description

Add label as another rule to skip when matching during container execution, as worker lacks necessary rule data.

The compiler already determines whether a container will run based on that rule and others.

@wsan3 wsan3 added the bug Indicates a bug label Jun 13, 2024
@wsan3 wsan3 self-assigned this Jun 13, 2024
@wsan3 wsan3 requested a review from a team as a code owner June 13, 2024 21:37
Copy link

codecov bot commented Jun 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.08%. Comparing base (f69ce12) to head (0811f1f).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #380   +/-   ##
=======================================
  Coverage   96.08%   96.08%           
=======================================
  Files          69       69           
  Lines        5363     5365    +2     
=======================================
+ Hits         5153     5155    +2     
  Misses        136      136           
  Partials       74       74           
Files Coverage Δ
pipeline/container.go 81.20% <100.00%> (+0.25%) ⬆️

@ecrupper
Copy link
Contributor

Can you add a test case to container_test.go for this?

Copy link
Contributor

@KellyMerrick KellyMerrick left a comment

Choose a reason for hiding this comment

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

lgtm

@wsan3 wsan3 merged commit fce2449 into main Jun 14, 2024
11 checks passed
@wsan3 wsan3 deleted the fix/skip-label-evaluation branch June 14, 2024 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants