-
Notifications
You must be signed in to change notification settings - Fork 36
PR checks and how to fix failures
Whenever you open a PR in the common Objective-C library, following checks are triggered:
As a contributor to the open source library, you'll need to sign the Contributor License Agreement: https://cla.opensource.microsoft.com/AzureAD/microsoft-authentication-library-common-for-objc
Travis CI pipeline validates that common Objective-C library is building for both iOS and macOS, and ensures that all unit tests pass successfully. Travis build configuration can be found here
If you're seeing failures, try following:
- On your machine, run "python ./build.py" script to ensure that fix any test failures, or
- Open IdentityCore.xcworkspace and ensure that IdentityCoreTests iOS and IdentityCoreTests Mac succeed
Common library contains common code used by both the Active Directory Authentication Library (ADAL) and the Microsoft Authentication Library (MSAL). Therefore, when updates are made to the common library, it is important to make sure that dependent libraries are also updated.
This CI pipeline ensures that common library updates don't require any additional MSAL updates.
If you see it failing, then:
- Check out dev branch of MSAL repository: https://github.com/AzureAD/microsoft-authentication-library-for-objc
- Create new branch with your name/common-core-update
- Run "git submodule update --init"
- Navigate to "MSAL/IdentityCore" folder
- Point Git submodule to your branch in common library
- Make sure MSAL builds and tests are passing. Fix any tests that are failing.
- Submit a pull request in MSAL repository with your submodule update and any MSAL and/or test fixes.
- Once your pull request is approved, merge it to dev branch
- Re-run CI build in common library, which should now succeed
This check is similar to the previous one, but applies to the Microsoft Authentication Broker. Steps to resolve issues are the same. However, if you're external to Microsoft, you won't be able to resolve issues by yourself. Someone from Microsoft Identity team will help you to resolve the build failure.
This check ensures that each PR owner updates changelog.txt file. Each new feature and/or bug fix needs to be represented in the changelog.txt file.