Skip to content

Fix UI licence-header checks for large screenshot updates - #36820

Merged
shah-harshit merged 1 commit into
mainfrom
shah-harshit/7505-ui-license-png-filter
Nov 4, 2026
Merged

shah-harshit merged 1 commit into
mainfrom
shah-harshit/7505-ui-license-png-filter

Conversation

@shah-harshit

Copy link
Copy Markdown
Contributor

Describe your changes:

Refs open-metadata/openmetadata-collate#7505. Prerequisite for #36640.

Large visual-baseline updates put hundreds of kilobytes of PNG paths into CHANGED_FILES_ALL, so Linux cannot start the licence-header shell (Argument list too long). Exclude PNGs before constructing that environment value. The licence checker already ignores PNGs; all non-PNG paths remain checked.

This workflow-only change must reach main first because pull_request_target executes the base branch's workflow. All visual coverage changes remain in #36640.

Type of change:

  • Bug fix

High-level design:

N/A — three added lines in the existing changed-file selector.

Tests:

  • YAML parses successfully and the pinned changed-files action supports files_ignore.
  • Applied the glob to Expand OSS visual regression coverage in light and dark modes #36640's actual changed-file list: 339,614 bytes becomes 3,357 bytes; all 66 non-PNG paths remain included.
  • Reviewed every selector consumer: only licence checking receives its filename list; source-audit conditions still select every non-PNG source change.
  • git diff --check passes. The added lines match Prettier; unrelated workflow-formatting differences reproduce on the unchanged base.
  • Unit coverage, backend integration, ingestion and Playwright tests: N/A — no application, schema, endpoint or test behavior changes.

Manual testing performed:

Compared the filtered paths with all non-PNG paths in the actual large coverage PR and verified that the resulting environment value fits Linux's per-value limit.

UI screen recording:

N/A — CI file-list filtering only; no UI behavior changes.

Checklist:

  • Linked to the cross-repository issue and dependent coverage PR.
  • Comment explains the shell-startup constraint.
  • Local configuration and file-selection checks completed.
  • Schema/migration, application test coverage and UI recording requirements: N/A.
  • Self-review against REVIEW.md: only the intended selector changes; no unanswered critical findings.
  • Decision record: N/A — aligns file selection with the existing PNG licence exclusion.

@shah-harshit shah-harshit added UI UI specific issues safe to test Add this label to run secure Github workflows on PRs skip-pr-checks Bypass PR metadata validation check labels Nov 2, 2026
@shah-harshit
shah-harshit requested a review from a team as a code owner November 2, 2026 08:11
@shah-harshit shah-harshit self-assigned this Nov 2, 2026
@gitar-bot

gitar-bot Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved

🟢 Low risk · Filtering PNG baselines from the licence-check list preserves non-PNG checks and only reduces CI environment size, with no application behavior change.

Excludes PNG files from the changed-file list passed to the UI licence-header check, preventing Argument list too long errors on large screenshot updates. Non-PNG paths remain checked. No issues found.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@shah-harshit
shah-harshit merged commit 2d33640 into main Nov 4, 2026
95 of 105 checks passed
@shah-harshit
shah-harshit deleted the shah-harshit/7505-ui-license-png-filter branch November 4, 2026 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs skip-pr-checks Bypass PR metadata validation check UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants