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

Fix CI/CD pipeline #971

Merged

Conversation

hax0rbana-adam
Copy link

@hax0rbana-adam hax0rbana-adam commented Aug 31, 2023

It looks like there are linter errors that are stopping the CI/CD from running on all branches, so I thought I'd take a shot at trying to fix them.

This builds on !965 since that's the MR where I was trying to make the CI/CD green. I didn't commit it over there because I didn't want to force these changes to be accepted with the logo change.

@hax0rbana-adam
Copy link
Author

I guess not, Bitrise is still failing nearly instantly. I think the issue is in the Bitrise workflow configuration. I had to change mine to get it to get past the new Java 17 requirement, like so:

  1. In Bitrise, go to a pipeline that is failing (example)
  2. If you're logged in, you should see an Edit workflow button. Click that.
  3. On the left, click on the Plus button above Git Clone Repository
  4. Search for Java, and click Set Java Version
  5. Change Java version (under Input variables) to 17

The changes in this branch are also required, but the errors that are being fixed won't appear until the pipeline can get past the current error ("error: invalid source release: 17").

@hax0rbana-adam hax0rbana-adam force-pushed the vector-graphics-logo-with-CI branch 2 times, most recently from 4932bc1 to 52431f5 Compare September 3, 2023 01:25
@n8fr8
Copy link
Member

n8fr8 commented Sep 28, 2023

THanks, we'll work on getting bitrise fixed up again.

@meenbeese
Copy link
Contributor

I will also try to help this get resolved faster. Can you rebase on master so everything is up-to-date @hax0rbana-adam ? I want to take a look on what the actual problem is that the applied changes cannot fix.

@hax0rbana-adam
Copy link
Author

I have rebased on the default branch, and I think I even did so correctly this time.

@meenbeese
Copy link
Contributor

Thanks! It looks like there is a mismatch in the Java version we use.

> Task :intentintegrator:compileDebugJavaWithJavac FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':intentintegrator:compileDebugJavaWithJavac'.
> error: invalid source release: 17

Plus, things are broken starting from #903, as Bitrise checks passed before. Could you try to revert said PR and see if my hypothesis is true or not?

@syphyr
Copy link
Contributor

syphyr commented Sep 30, 2023

No need to revert, just change here to 17.

java-version: 1.8

@hax0rbana-adam
Copy link
Author

I updated the java version in .github/workflows/android.yml, but I still think the change need to be made in the bitrise UI.

@n8fr8
Copy link
Member

n8fr8 commented Oct 3, 2023

Will review this week

@n8fr8 n8fr8 self-assigned this Oct 3, 2023
@n8fr8 n8fr8 merged commit 2808663 into guardianproject:master Oct 5, 2023
1 check failed
@n8fr8
Copy link
Member

n8fr8 commented Oct 5, 2023

fixed now... had to add the bitrise step to set java sdk to 17

@hax0rbana-adam hax0rbana-adam deleted the vector-graphics-logo-with-CI branch October 5, 2023 18:58
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.

None yet

4 participants