Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI Test workflows #2515

Closed
wants to merge 31 commits into from
Closed

UI Test workflows #2515

wants to merge 31 commits into from

Conversation

kshann
Copy link
Contributor

@kshann kshann commented Mar 27, 2024

Task/Issue URL: https://app.asana.com/0/0/1205717523425891/f
Tech Design URL:
CC: @ayoy

Description:

  • This runs UI tests across macos 11/12/13/14.

  • MacOS11 has some problems with the current set of tests. I think it's better we merge this and monitor how other tests run in MacOS 11 and debug as we go as 12/13/14 run well and will provide feedback.

  • Currently will not notify asana until we begin running more tests but can be uncommented when that is required.

  • Sample workflows MacOS 13/14 MacOS 12

  • Happy with schedules?

Steps to test this PR:

  1. Run workflows!

Internal references:

Pull Request Review Checklist
Software Engineering Expectations
Technical Design Template
Pull Request Documentation

@github-actions github-actions bot added the bot: not in app board Added by automation for pull requests with tasks not added to macOS App Board Asana project label Mar 27, 2024
@kshann kshann marked this pull request as draft March 27, 2024 14:09
@kshann kshann removed the bot: not in app board Added by automation for pull requests with tasks not added to macOS App Board Asana project label Mar 27, 2024
@kshann kshann requested a review from ayoy March 27, 2024 14:18
@kshann kshann marked this pull request as ready for review March 27, 2024 14:18
Copy link
Collaborator

@ayoy ayoy left a comment

Choose a reason for hiding this comment

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

@kshann this looks good! I'm leaving a few comments that need to be addressed before we merge it (mostly because of #2458 adding more cool stuff and also causing conflicts in some places).

.github/workflows/ui_tests.yml Outdated Show resolved Hide resolved
.github/workflows/ui_tests_legacy_os.yml Outdated Show resolved Hide resolved
UITests/FindInPageTests.swift Outdated Show resolved Hide resolved
Copy link
Collaborator

Choose a reason for hiding this comment

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

Halle changed UI Tests xcscheme in #2458 to include building and running tests-server so these changes will have to be ported here too.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ayoy Thanks for pointing that out.

I looked at the test-server config in here and it was only setup for the debug . Synced up with Halle on MM and she indicated it needs another change to work for Review too, I'll wait for that and reflect whatever happens in UI Tests in here before we merge.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

++@Halle

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, thanks for catching this. The scheme test section has to be set to review with debug executable turned off, but this also means that accessibility loses the app PID after the first test case during a local run, so I also probably need to port your solution with setting the XCUIApplication() to the review bundle ID, and then I need to run all of the tests a couple of times to confirm that everything is going to be sturdy.

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm checking this out right now, and with some luck will have confirmed this in not very long.

Copy link
Contributor

@Halle Halle Mar 28, 2024

Choose a reason for hiding this comment

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

@kshann, do the tests all run normally in CI with this PR when you set the UI Tests scheme test target to review with debug executable unchecked, or do you also see anomalies?

kshann added a commit that referenced this pull request Apr 12, 2024
Task/Issue URL: https://app.asana.com/0/0/1205717523425891/f
Tech Design URL:
CC: @ayoy 

**Description**:
13/14 flows from this PR
#2515
Have left asana notifications commented out for now.

**Steps to test this PR**:
1. Example run
https://github.com/duckduckgo/macos-browser/actions/runs/8660861087
2. If you want to run `gh workflow run "ui_tests.yml" --ref
"kieran/ui-tests-macos1314"`


<!--
Tagging instructions
If this PR isn't ready to be merged for whatever reason it should be
marked with the `DO NOT MERGE` label (particularly if it's a draft)
If it's pending Product Review/PFR, please add the `Pending Product
Review` label.

If at any point it isn't actively being worked on/ready for
review/otherwise moving forward (besides the above PR/PFR exception)
strongly consider closing it (or not opening it in the first place). If
you decide not to close it, make sure it's labelled to make it clear the
PRs state and comment with more information.
-->

---
###### Internal references:
[Pull Request Review
Checklist](https://app.asana.com/0/1202500774821704/1203764234894239/f)
[Software Engineering
Expectations](https://app.asana.com/0/59792373528535/199064865822552)
[Technical Design
Template](https://app.asana.com/0/59792373528535/184709971311943)
[Pull Request
Documentation](https://app.asana.com/0/1202500774821704/1204012835277482/f)
Copy link
Contributor

This PR has been inactive for more than 7 days and will be automatically closed 7 days from now.

@github-actions github-actions bot added the stale label Apr 19, 2024
Copy link
Contributor

This PR has been closed after 14 days of inactivity. Feel free to reopen it if you plan to continue working on it or have further discussions.

@github-actions github-actions bot closed this Apr 27, 2024
@kshann kshann deleted the kieran/ui-test-workflows branch November 18, 2024 05:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants