Skip to content

[chore] Modify Playwright changed files workflow#12480

Merged
sfc-gh-nbellante merged 3 commits intodevelopfrom
nico/tweak-changed-e2e-workflow
Sep 10, 2025
Merged

[chore] Modify Playwright changed files workflow#12480
sfc-gh-nbellante merged 3 commits intodevelopfrom
nico/tweak-changed-e2e-workflow

Conversation

@sfc-gh-nbellante
Copy link
Copy Markdown
Contributor

@sfc-gh-nbellante sfc-gh-nbellante commented Sep 9, 2025

Describe your changes

This PR stemmed from #12473 (review)

I noticed that the changed files workflow didn't fail the snapshots as I expected. After talking with @lukasmasuch he said it's because it only looks for changes to the _test.py files. This PR changes it so that it will look at both.

GitHub Issue Link (if applicable)

Testing Plan

I tested it by changing the icon in st_alert.py and ensuring that the workflow failed as expected.
image


Contribution License Agreement

By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Sep 9, 2025

✅ PR preview is ready!

Name Link
📦 Wheel file https://core-previews.s3-us-west-2.amazonaws.com/pr-12480/streamlit-1.49.1-py3-none-any.whl
🕹️ Preview app pr-12480.streamlit.app (☁️ Deploy here if not accessible)

@snyk-io
Copy link
Copy Markdown
Contributor

snyk-io bot commented Sep 9, 2025

🎉 Snyk checks have passed. No issues have been found so far.

security/snyk check is complete. No issues have been found. (View Details)

license/snyk check is complete. No issues have been found. (View Details)

@sfc-gh-nbellante sfc-gh-nbellante changed the title Update Playwright workflow to improve test file detection and modify success message icon in st_alert.py to test [chore] Modify Playwright changed files workflow Sep 9, 2025
@sfc-gh-nbellante sfc-gh-nbellante added impact:internal PR changes only affect internal code change:chore PR contains maintenance or housekeeping change security-assessment-completed labels Sep 9, 2025
@sfc-gh-nbellante sfc-gh-nbellante marked this pull request as ready for review September 9, 2025 20:46
@sfc-gh-nbellante sfc-gh-nbellante requested a review from a team as a code owner September 9, 2025 20:46
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR modifies the Playwright E2E testing workflow to trigger snapshot tests for both direct test file changes and changes to corresponding source files that have associated test files. Previously, the workflow only monitored *_test.py files directly, missing cases where changes to source files should trigger their corresponding test files to run.

  • Expands file monitoring to include both test files and their corresponding source files
  • Adds deduplication logic to prevent running the same test multiple times
  • Maintains existing filtering for custom components and deleted files

Copy link
Copy Markdown
Collaborator

@lukasmasuch lukasmasuch left a comment

Choose a reason for hiding this comment

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

LGTM 👍 Thanks for updating!

@sfc-gh-nbellante sfc-gh-nbellante merged commit dec14ef into develop Sep 10, 2025
36 checks passed
@sfc-gh-nbellante sfc-gh-nbellante deleted the nico/tweak-changed-e2e-workflow branch September 10, 2025 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

change:chore PR contains maintenance or housekeeping change impact:internal PR changes only affect internal code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants