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

feat: refactor CI tests - WPB-11406 #1707

Open
wants to merge 99 commits into
base: release/cycle-3.114
Choose a base branch
from

Conversation

netbe
Copy link
Collaborator

@netbe netbe commented Jul 16, 2024

StoryWPB-11406 Refactor CI tests workflow

Issue

This PR allows to test all related frameworks when touching a framework on a PR. Previously it was not running tests of frameworks having the dependency.

It also moves the develop tests that are run when a PR is merged to be run nightly at 21:00.

  • add testplans to all targets
  • use fastlane to run tests
  • create dependency graph in ruby
  • run nightly all tests for release branches
  • fastlane action to run all tests locally: bundle exec fastlane select_frameworks

TODO

  • add test plans for new frameworks introduced: WireAPI...
  • run tests for new frameworks introduced: WireAPI...
  • handle warnings report

Testing

Running PR as a test


Checklist

  • Title contains a reference JIRA issue number like [WPB-XXX].
  • Description is filled and free of optional paragraphs.
  • Adds/updates automated tests.

Base automatically changed from chore/unify-schemes-and-testplans-WPB-11406 to release/cycle-3.114 November 28, 2024 08:34
@netbe netbe requested a review from caldrian November 28, 2024 15:09
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
text: "🆘 Tests for 'develop' failed 🆘\ncommit: https://github.com/wireapp/wire-ios-mono/commit/${{ github.sha }}\n**Triggered by:** ${{ github.triggering_actor }}\n**Build log:** ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}\n"
text: "🆘 Tests for '${{ github.ref_name }}' failed 🆘\ncommit: https://github.com/wireapp/wire-ios-mono/commit/${{ github.sha }}\n**Triggered by:** ${{ github.triggering_actor }}\n**Build log:** ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}\n"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

change this message because it might be green + different channel "Nightly tests" + check github.sha

when "wire-ios"
"Wire-iOS"
when "WireFoundation"
"WireFoundationAll" # use a custom scheme that includes all targets of WireFoundation
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

WireFoundation-Package

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this cannot work so I had to duplicate the scheme

fastlane/framework.rb Outdated Show resolved Hide resolved
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_USERNAME: ${{ secrets.ZENKINS_USERNAME }}
SLACK_WEBHOOK_URL: ${{ secrets.WIRE_IOS_CI_WEBHOOK }}
SLACK_WEBHOOK_URL: ${{ secrets[inputs.notify_secret] }}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

different channel depending on parent workflow

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

added this file because it does not work with WireFoundation-Package with Fastlane

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
echoes: technical-roadmap/throughput More specific category, to highlight task aiming at improving the development velocity and effici...
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants