-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
fix(#345): Hardcode the values ANDROID_KEY_ALIAS
and ANDROID_KEYSTORE_PATH
in make command check-env
#347
Conversation
Nice work @sugat009. I suspect this is the simplest functional version of the change possible. I recommend our roadmap to be:
|
The instrumentation tests seem to be failing for this PR but I'm not sure if these changes have anything to do with the test failing. After going through the already existing issues and PR, the issue seems to be persisting even in the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 I think Kenn is spot on here! These changes look good to me (have just requested a few additional clean-ups below). Before merging this PR, lets follow Kenn's suggestion and try to run a tag build (basically just going to be steps #2
-3
of the Alpha for release testing steps except we are just going to do it in the branch before even going to master). Should be able to create a tag right on the HEAD of this branch called v1.1.2-secrets-345
and push it to GitHub. Then watch to see if the publish workflow succeeds. If it does, then I think we are good to go.
- Commit and tag as latest stable
@kennsippell Is there a reason we need a new tag at this time? (These changes seem to just be with the build process and so will be needed for the next release, but I guess we don't need to actually release anything right now...)
Also, @sugat009 regarding the test failure, since we have not fixed #337, I have no reason to expect that test to pass. 😞 Since nothing is actively blocked yet by this PR, I think we need to bite the bullet and try to solve #337 for this PR 😬. The sad fact is that if we don't do it now, it may never get done. 😓
The bad news for that is that I pretty much exhausted all my ideas for that test with the investigation/documentation that I already did. @sugat009 how much experience do you have with Android tests? 😅 Maybe you can see what I missed. Otherwise, my next best idea is to maybe just try and upgrade our way out of the problem (always a winning strategy). Some ideas to try (from most to least promising):
- build.yml:
- I notice that our targetSdk in the build.gradle is
33
, but the api-level in our CI build.yml jobs for running the tests is29
. Maybe bumping that will help. - Can also try bumping the image versions used by those CI job (if we are not on the latest)
- I notice that our targetSdk in the build.gradle is
- build.gradle
- Updating the versions of our
androidTestImplementation
dependencies (where possible)
- Updating the versions of our
Don't need to release per se, but all future releases will need to be based off this. Once the secrets are gone, old versions will not be publishable. I just noticed this comment
So my comment about the stable tag is just to ensure it is the base branch for future work. |
025cb49
to
8d1617c
Compare
`ANDROID_KEYSTORE_PATH` in make command `check-env`
8d1617c
to
e66c45c
Compare
@jkuester I've made the changes requested and also did the steps from the @jkuester @lorerod Please review.
@jkuester Unfortunately, I have no experience in java or android at all. 😅 I guess this needs to be done another time separately as this issue will be prolonged. |
@sugat009 @jkuester regarding these two comments about the test failure:
I'm happy with both options. If we decide to fix the failing test now for this PR, I can actively help debug and find a solution; I can put all the effort into what is left of this week. Please let me know what you think. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
In other good news, I think I got the CI issues fixed over in #348.
@kennsippell when you get the chance, can you remove the unneeded secrets from the repo now? |
The changes include hardcoding the values
ANDROID_KEY_ALIAS
ANDANDROID_KEYSTORE_PATH
in themake
commandcheck-env
such that they don't use the secrets in the repository.Fixes: (#345 )