Open-notes icon indicating copy to clipboard operation
Open-notes copied to clipboard

F-Droid can't build

Open licaon-kter opened this issue 7 months ago β€’ 20 comments

What are we missing? https://gitlab.com/fdroid/checkupdates-bot-fdroiddata/-/jobs/14070307528#L437

licaon-kter avatar Apr 24 '26 04:04 licaon-kter

My bad after pushing the correct code, do I need to publish a new release with a different tag, or can I just delete the v1.3.5 tag and recreate it pointing to the new commit?

Fandroid745 avatar Apr 24 '26 10:04 Fandroid745

@IzzySoft might have picked it up already, hence do create a new tag pls

licaon-kter avatar Apr 24 '26 10:04 licaon-kter

I will create a new tag then Thanks!

Fandroid745 avatar Apr 24 '26 10:04 Fandroid745

Please bump the version for the new tag.

linsui avatar Apr 29 '26 17:04 linsui

will do

Fandroid745 avatar Apr 30 '26 09:04 Fandroid745

Fails as well:

> Task :app:kspReleaseKotlin FAILED
w: [ksp] /build/repo/app/src/main/java/com/opennotes/feature_node/data/data_source/NoteDatabase.kt:30: Schema export directory was not provided to the annotation processor so Room cannot export the schema. You can either provide `room.schemaLocation` annotation processor argument by applying the Room Gradle plugin (id 'androidx.room') OR set exportSchema to false.
e: file:///build/repo/app/src/main/java/com/opennotes/feature_node/presentation/settings/SettingsScreen.kt:333:58 Unexpected tokens (use ';' to separate expressions on the same line)

[Incubating] Problems report is available at: file:///build/repo/build/reports/problems/problems-report.html

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:kspReleaseKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
   > Compilation error. See log for more details

Are you using your Github action to build the APK – or do you build on your local machine, maybe with totally different settings than indicated here? Like, a different JDK? I've tried with 17 and 21, no dice.

IzzySoft avatar Apr 30 '26 17:04 IzzySoft

Task :app:kspReleaseKotlin FAILED w: [ksp] /build/repo/app/src/main/java/com/opennotes/feature_node/data/data_source/NoteDatabase.kt:30: Schema export directory was not provided to the annotation processor so Room cannot export the schema. You can either provide room.schemaLocation annotation processor argument by applying the Room Gradle plugin (id 'androidx.room') OR set exportSchema to false. e: file:///build/repo/app/src/main/java/com/opennotes/feature_node/presentation/settings/SettingsScreen.kt:333:58 Unexpected tokens (use ';' to separate expressions on the same line)

This was a project error previously which I fixed. I am building the apk locally on my machine, using jdk 23. I will release a new apk v1.3.6 with a new versionCode and versionName

Fandroid745 avatar May 01 '26 02:05 Fandroid745

using jdk 23

That's not an LTS, it might break RB. Can you use 21 or 25 instead?

IzzySoft avatar May 01 '26 03:05 IzzySoft

I will swich to using jdk 21

Fandroid745 avatar May 01 '26 03:05 Fandroid745

Thanks! Please give us a ping then when the release is ready, so we can check πŸ€—

IzzySoft avatar May 01 '26 11:05 IzzySoft

@IzzySoft I have created a new release now please check

Fandroid745 avatar May 01 '26 15:05 Fandroid745

Thanks

licaon-kter avatar May 01 '26 16:05 licaon-kter

Failed here. Need to figure why, give me a little…

Edit: first finding, you did not increase versionCode – which makes further checks obsolete, as that release won't be picked up anyway.

IzzySoft avatar May 01 '26 17:05 IzzySoft

I did increase the version code

Image

Fandroid745 avatar May 01 '26 17:05 Fandroid745

Maybe after you tagged the release?

    ],
    "9": [
      "v1.3.5",
      "v1.3.6"
    ]

IzzySoft avatar May 01 '26 17:05 IzzySoft

Ah, OK – and then changed it again it seems. OK, starting a 3rd run here…

IzzySoft avatar May 01 '26 17:05 IzzySoft

Sorry, no idea what you've done there – but v1.3.6 was already in our logs yesterday. As we work append-only, I'm afraid no repair for that then. I did perform a forced manual run (without touching the logs), so what is currently at v1.3.6 is RB. But what was at v1.3.6 yesterday was not. That's why we say: Never replace what was already distributed – it too often just causes a mess 😒

So: sorry, but this will need to wait for the next release to be fixed – hopefully with less "jumping around" πŸ™ˆ

Edit: No idea WTF was going on there. Checking the logs in our git, there is a v1.3.6 marked "RB" with a run from yesterday – but no v1.3.5. But here at releases, v1.3.6 was only created today – so you must have deleted and recreated it. What failed was v1.3.5. Being fetched after 1.3.6 means it must (at least at the time of being fetched) have had a timestamp newer than the one of 1.3.6, Checking the two commits… now, that indeed looks _very_strange:

Image

As if both tags, v1.3.5 and v1.3.6, point to this commit. Or did at some point. Sorry, I give up – waiting for 1.3.7…

IzzySoft avatar May 01 '26 17:05 IzzySoft

I had actually created the v1.3.6 tag earlier and the v1.3.6 apk had the older version code(9) same as the v1.3.5. I deleted the v1.3.6 tag now and published a new apk v1.3.6

Fandroid745 avatar May 01 '26 17:05 Fandroid745

Sorry, won't work: 1.3.6 has already been processed. As I just wrote (and you most likely missed, so in bold this time): Never replace what was already distributed!

[!CAUTION] Never replace what was already distributed

πŸ‰ πŸ‰ πŸ‰ 🐲 🐲 🐲

IzzySoft avatar May 01 '26 17:05 IzzySoft

I will keep this in mind.

Fandroid745 avatar May 01 '26 17:05 Fandroid745