Fix CI: update stale metrics test fixture by lolgab · Pull Request #563 · codacy/codacy-analysis-cli · GitHub
Skip to content

Fix CI: update stale metrics test fixture - #563

Merged
lolgab merged 1 commit into
masterfrom
fix/metrics-fixture-drift
Oct 1, 2026
Merged

lolgab merged 1 commit into
masterfrom
fix/metrics-fixture-drift

Conversation

@lolgab

@lolgab lolgab commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Summary

  • CI was failing on master's compile job (test step) — CLISpec "output correct metrics" test.
  • Root cause: the metrics docker tool drifted and now computes slightly different complexity values for 4 JS fixture files (effects.js, controls.js, prototype.js, dragdrop.js) in the brakeman-rails3 test fixture, vs. the stale stored expected output.
  • Updated cli-output-brakeman-rails-metrics.json to the tool's current actual output (sourced from CircleCI run #1719 / job 7982 logs), not a code change.

Test plan

  • CI run passes compile job (test step) for this branch

The brakeman metrics docker tool drifted, producing slightly different
complexity counts for 4 JS fixture files than the stored fixture,
failing CLISpec "output correct metrics" on CI. Updated expected
values to match the tool's current output.
@lolgab
lolgab enabled auto-merge October 1, 2026 10:49
@codacy-production

codacy-production Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

@codacy-production codacy-production Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull Request Overview

No merge-blocking implementation issues were identified. Codacy is up to standards, with no new issues or complexity findings. Test execution evidence is missing for the affected metrics test and compile job suite.

About this PR

  • Please provide evidence that the CLISpec metrics test and compile job test suite pass with the updated fixture, ideally after regenerating or validating the expected output against the current tool output.

Test suggestions

  • Run the CLISpec metrics output test and verify the updated fixture matches generated metrics.
  • Run the compile job test suite and verify CI passes.
Prompt proposal for missing tests
Consider implementing these tests if applicable:
1. Run the CLISpec metrics output test and verify the updated fixture matches generated metrics.
2. Run the compile job test suite and verify CI passes.

TIP Improve review quality by adding custom instructions
TIP How was this review? Give us feedback

@lolgab
lolgab merged commit 68806c4 into master Oct 1, 2026
7 checks passed
@lolgab
lolgab deleted the fix/metrics-fixture-drift branch October 1, 2026 11:12
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.

2 participants