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

Make runPostActionsOnFailure optional #619

Merged
merged 2 commits into from
Jun 17, 2021

Conversation

kwridan
Copy link
Collaborator

@kwridan kwridan commented Jun 16, 2021

Resolves: tuist/tuist#2991

Short description 📝

  • Generated projects had runPostActionsOnFailure set in their schemes by default to NO
  • Xcode ends up removing this attribute when it's value is NO resultting in producing git diffs for any checked in projects that were previously generated

Solution 📦

To mitigate this, the runPostActionsOnFailure option is being changed to an optional one where it's only written in the case it's explicitly defined to a specific value

Implementation 👩‍💻👨‍💻

  • Mark runPostActionsOnFailure as optional
  • Add Breaking changelog entry

Resolves: tuist/tuist#2991

- Generated projects had `runPostActionsOnFailure` set in their schemes by default to `NO`
- Xcode ends up removing this attribute when it's value is `NO` resultting in producing git diffs for any checked in projects that were previously generated
- To mitigate this, the `runPostActionsOnFailure` option is being changed to an optional one where it's only written in the case it's explicitly defined to a specific value

Test Plan:

- Verify unit tests pass
@codecov-commenter
Copy link

codecov-commenter commented Jun 16, 2021

Codecov Report

Merging #619 (21c64cf) into main (6910a7f) will increase coverage by 0.15%.
The diff coverage is 96.55%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #619      +/-   ##
==========================================
+ Coverage   84.17%   84.32%   +0.15%     
==========================================
  Files         154      154              
  Lines        8718     8738      +20     
==========================================
+ Hits         7338     7368      +30     
+ Misses       1380     1370      -10     
Impacted Files Coverage Δ
...ources/XcodeProj/Scheme/XCScheme+BuildAction.swift 80.82% <88.88%> (+14.62%) ⬆️
Tests/XcodeProjTests/Scheme/XCSchemeTests.swift 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6910a7f...21c64cf. Read the comment docs.

@pepicrft pepicrft merged commit 3bfa83f into main Jun 17, 2021
@pepicrft pepicrft deleted the fix/optional-runPostActionsOnFailure branch June 17, 2021 09:28
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.

Unnecessary default scheme attribute runPostActionsOnFailure in generated projects
3 participants