Skip to content

Conversation

@Redent0r
Copy link

@Redent0r Redent0r commented Jan 14, 2025

Merge Checklist
Summary

The aim of this PR is to fix a regression introduced in https://github.com/microsoft/kata-containers/pull/273/files#diff-84f120758564e7adf93c69772f22eb04eaefcde3d30c01ddbe5a906f1611233d where rego error logs were no longer available after that change.

take_prints takes and clear prints per https://github.com/microsoft/regorus/blob/748c11cfa1319c808977194c1657e0fd866269be/src/engine.rs#L848
Add back error logs by not calling take_prints twice.

Test Methodology

tested locally: rego error logs are again printed as expected

@Redent0r Redent0r added the upstream/missing PRs that are yet to be upstreamed label Jan 14, 2025
@Redent0r Redent0r requested review from a team as code owners January 14, 2025 01:20
@Redent0r Redent0r force-pushed the saulparedes/add_back_rego_error_logs branch from 68c4ca8 to e0060a9 Compare January 14, 2025 01:31
take_prints takes and clear prints per https://github.com/microsoft/regorus/blob/748c11cfa1319c808977194c1657e0fd866269be/src/engine.rs#L848
Add back error logs by not calling take_prints twice.

Signed-off-by: Saul Paredes <[email protected]>
@Redent0r Redent0r force-pushed the saulparedes/add_back_rego_error_logs branch from e0060a9 to c2f84a6 Compare January 14, 2025 17:27
@Redent0r Redent0r merged commit 6e3fd0a into msft-main Jan 14, 2025
45 of 55 checks passed
@Redent0r Redent0r deleted the saulparedes/add_back_rego_error_logs branch January 14, 2025 18:06
@Redent0r Redent0r added upstream/not-needed PRs that will not be upstreamed (e.g. internal) and removed upstream/missing PRs that are yet to be upstreamed labels Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

upstream/not-needed PRs that will not be upstreamed (e.g. internal)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants