Mattermost app required by a whole movement

buildserver
#1

Because i cant find any Mattermost forum topic here on F-Droid i would like to create this one.
Mattermost is been used by a movement named Extinction Rebellion. Its a worldwide movement. Here a short overview: https://www.youtube.com/watch?v=EVLGfl4Xrjc

There are more then 1000 activists out there that sadly cant use a F-Droid version of this app. Many people that are part in this movement understand the requirement of free software for their privacy and thus for the whole movement. Recently its really sad to see that there is no maintained Mattermost version in F-Droid.

This is not a app request forum post. This is a general forum post for discussion of the Mattermost app development to be compatible with google-free devices.

I have seen that there is just one outdated Mattermost version recently at f-droid: https://f-droid.org/en/packages/com.mattermost.mattermost/
There is written “This app is not maintained anymore and has been replaced by Mattermost Beta.”
https://gitlab.com/fdroid/fdroiddata/blob/master/metadata/com.mattermost.mattermost.yml

I have seen this post here: https://mastodon.technology/@fdroidorg/100516647192548047
What is the status of the acceptance of this patch upstream?

The outdated app in F-Droid dont seem to work with recent software versions of the server software: https://gitlab.com/fdroid/fdroiddata/issues/1360

The F-Droid build services seems to not be able to build the new app:

This have been merged to the build servers to help the issue out when i understand right: https://gitlab.com/fdroid/fdroidserver/merge_requests/623

Recent questions i have:

  • Have Mattermost upstream done some work to make it possible to build the app without closed source software/services?
  • If not, does F-Droid now use a patch that is not being accepted upstream to make those free software builds possible?
  • What is the current build issue?
2 Likes
#2

The current situation is: we have successfully patched the Mattermost app to remove non-free libraries, but our build server does not have enough RAM to build it :confused:

2 Likes
#3

how much RAM does it need? I believe the build server host has 16GB, I can’t imagine it takes more than Fennec, which builds using 4GB.

#4

Are you sure? I can build it on my computer with 12 GB so I assumed the build server had less.
(And I think @Bubu managed to build it in a 3 GB VM.)

#5

@hans Older build logs say this: https://f-droid.org/wiki/page/com.mattermost.rnbeta/lastbuild_176

#6

It’s been two month or more since I added logging for guest ram amount to fdroidserver. This hasn’t been deployed yet. :frowning:

I think the VM I built it on had 6 gb of ram, but I’m not sure.

#7

I checked and it was indeed 6 GB.

#8

The server was just updated, latest commit is two weeks old, still doesn’t have your commits?

Now it failed for other reason though…

#9

Does Mattermost upstream have accepted the patches for google free builds?

Why was @Bubu able to build it with 3GB of RAM and the f-droid build server that have 33% more RAM but cant build it?

@Licaon_Kter THanks for the news. For what reason did it fail now?

#10

Nope

Still a mistery

I’ve looked by ENOSPC is rather odd, no space left? Where? Why?

#11

ENOSPC can mean a lot of things. The error happens in FSWatcher, so it is probably caused by the build process watching more files than the maximum number allowed by the system.

I am trying a solution here.

#12

I think @bubu said that there is now 10GB for the buildserver instance

#13

10Gb RAM or storage space?

@bubu @Rudloff Memory again? https://f-droid.org/wiki/page/com.mattermost.rnbeta/lastbuild_187

#14

See here: https://f-droid.org/wiki/page/build

And it’s not quite 10 GB but 10.000 MB :slight_smile:

#15

10GB RAM, many many GB of storage

#16

Any progress?

I see today’s build also failed
https://f-droid.org/wiki/page/com.mattermost.rnbeta/lastbuild

#17

The last build from 23.05.2019 also failed: https://f-droid.org/wiki/page/com.mattermost.rnbeta/lastbuild

Quote:

Task :app:bundleReleaseJsAndAssets
warning: the transform cache was reset.
Loading dependency graph, done.
BUILDING MODULES FOR android

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
<— Last few GCs —>

[4623:0x56434b030830] 2424685 ms: Mark-sweep 1322.8 (1491.0) -> 1322.4 (1491.5) MB, 16889.9 / 0.4 ms allocation failure GC in old space requested
[4623:0x56434b030830] 2444115 ms: Mark-sweep 1322.4 (1491.5) -> 1322.3 (1445.5) MB, 19428.1 / 0.5 ms last resort GC in old space requested
[4623:0x56434b030830] 2463472 ms: Mark-sweep 1322.3 (1445.5) -> 1322.3 (1439.5) MB, 19354.5 / 0.4 ms last resort GC in old space requested

#18

That’s before the latest fix, let’s wait for the next cycle…hopefully…

#19

We finally got it to build: https://staging.f-droid.org/fr/packages/com.mattermost.rnbeta/

(Now let’s hope that future updates won’t break our patches so we can keep it up-to-date.)

2 Likes
#20

This is awesome! Finally!
Can we now throw away this classic version? Its fully outdated and works only with mattermost versions that have huge security issues. With other words: It should not be used in any case.

What about upstreaming the patches that have been used to build this F-Droid version? Now its publicly proven that those work.

Mastodon