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

[MBL-1152] Update Xcode version on CircleCI #1919

Merged
merged 4 commits into from
Jan 29, 2024
Merged

Conversation

ifosli
Copy link
Contributor

@ifosli ifosli commented Jan 23, 2024

📲 What

Update Circle CI Xcode version. This also updates the test iOS version and device as well as updating ruby and our gems to be versions that align better with what's pre-installed on the virtual machine.

Note: Changes are split into two commits; one that makes the actual changes (software changes & fixing tests) and one that changes all the snapshots. Feel free to just look at the first; I went through all the snapshots and it's a tedious process. (If you do check them, I recommend github desktop & feel free to add a comment about it; I'm planning to re-check them before I submit, since I'll need to sync to main before submitting anyways).

Note: iPad padding in the login flow is noticeably different in the screenshots. Since it's also noticeably different when running the app in the simulator, I created https://kickstarter.atlassian.net/browse/MBL-1162 to look into this instead of doing that as part of this PR.

👀 See

JIRA

✅ Acceptance criteria

  • Tests pass locally and in CircleCI
  • Snapshots look reasonable

⏰ TODO

  • Take another pass at the snapshots right before this is ready to submit (after review approval, syncing to main, and re-running any snapshots that need it).

@ifosli ifosli self-assigned this Jan 23, 2024
@ifosli ifosli added the draft label Jan 23, 2024
@ifosli ifosli force-pushed the circleCIXcodeUpdate branch 7 times, most recently from 9df756e to 6dfb377 Compare January 24, 2024 21:12
@@ -211,11 +216,6 @@ internal final class DiscoveryNavigationHeaderViewController: UIViewController {
|> UILabel.lens.backgroundColor .~ .ksr_support_100
|> UILabel.lens.isAccessibilityElement .~ false
|> UILabel.lens.textColor .~ discoveryPrimaryColor()
|> UILabel.lens.font %~~ { _, label in
Copy link
Contributor

Choose a reason for hiding this comment

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

Was this delete intentional? (Just because above it says initial style, unclear if it's also supposed to be able to mutate in bindViewModel).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is github being unhelpful - it's deleted from bindStyles and is still in bindViewModel. So the font will still be updated when the view model is updated; it just won't be reset if the traitcollection changes and bindStyles gets called again.


guard supportedModels.contains(ProcessInfo().environment[modelKey] ?? "") else {
fatalError("Please only test and record screenshots on an iPhone 8 simulator running iOS 15.5")
guard deviceName == "iPhone SE (3rd generation)", iOSVersion == "17.2" else {
Copy link
Contributor

@amy-at-kickstarter amy-at-kickstarter Jan 29, 2024

Choose a reason for hiding this comment

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

Suggestion for nice-to-have: Add a comment that these values are also in .circleci/config.yml and Makefile here, plus parallel comments in those two places. It's a bummer these values can't come from a shared file somewhere.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's a good idea; I'll add comments for this!

Copy link
Contributor

@amy-at-kickstarter amy-at-kickstarter left a comment

Choose a reason for hiding this comment

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

I just looked at the code changes (no PNGs as requested), they LGTM. One or two questions about the code you pulled out of bindViewModel because I'm not familiar with our styling infrastructure.

@ifosli ifosli merged commit ac79c9a into main Jan 29, 2024
5 checks passed
@ifosli ifosli deleted the circleCIXcodeUpdate branch January 29, 2024 23:47
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