Skip to content

Add CI check for uncommitted changes by "make all"#525

Merged
Acepresso merged 1 commit into
enterprise-contract:mainfrom
Acepresso:pre-merge-make-all-EC-1262
May 22, 2025
Merged

Add CI check for uncommitted changes by "make all"#525
Acepresso merged 1 commit into
enterprise-contract:mainfrom
Acepresso:pre-merge-make-all-EC-1262

Conversation

@Acepresso

Copy link
Copy Markdown
Contributor

This check fails pre-merge if there are uncommitted changes generated during make all execution.

Refs: https://issues.redhat.com/browse/EC-1262

@Acepresso Acepresso marked this pull request as draft May 15, 2025 15:06
@codecov-commenter

codecov-commenter commented May 15, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 0.55%. Comparing base (8935728) to head (ca0759c).

Additional details and impacted files

Impacted file tree graph

@@          Coverage Diff          @@
##            main    #525   +/-   ##
=====================================
  Coverage   0.55%   0.55%           
=====================================
  Files          6       6           
  Lines        363     363           
=====================================
  Hits           2       2           
  Misses       361     361           
Flag Coverage Δ
api 0.64% <ø> (ø)
controller 0.00% <ø> (ø)
schema 0.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Acepresso

Copy link
Copy Markdown
Contributor Author

In order to test the new CI, I created #528 with uncommitted changes by make all, and CI detected the uncommitted files and failed as expected.

@Acepresso Acepresso marked this pull request as ready for review May 19, 2025 10:27
Comment thread .github/workflows/checks.yaml Outdated

@simonbaird simonbaird left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

See my question.

Comment thread .github/workflows/checks.yaml Outdated
@simonbaird

Copy link
Copy Markdown
Member

Looks like it needs some commit signing.

Currently, `make test` is used to detect uncommitted file changes, but
it missed some targets that modify files (e.g. "make docs").
Update the workflow to also run `make all`, to ensure that all relevant
file-generating targets are executed before checking for uncommitted
changes.

Refs: https://issues.redhat.com/browse/EC-1262
@Acepresso Acepresso force-pushed the pre-merge-make-all-EC-1262 branch from aea473c to ca0759c Compare May 22, 2025 09:29
@Acepresso Acepresso merged commit 718a621 into enterprise-contract:main May 22, 2025
4 checks passed
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.

4 participants