Testing against the Beta Cluster hosted Commons server unreliable; discussion of alternatives needed

Open
#7,304 8 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
20/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Active
Tech stack
android, kotlin
Domain
mobile

Research direction

Start by reading the linked Beta Cluster instability task T420833 and the Patch Demo page to understand why the current Commons test environment is unreliable and what alternatives are in use. The issue asks developers and knowledgeable contributors to discuss the app’s testing needs and choose a suitable replacement; done means agreeing on an appropriate environment for testing without flooding production Commons.

Written by the indexing model from the issue text.

Description

While handling IP unblock requests for the Beta Cluster environment, I (User:BryanDavis, User:BDavis (WMF)) have realized that wikis hosted in that environment cannot provide reliable service for the people developing and testing the Commons Android app.

The root problem is that Beta Cluster has become an unstable environment for everyone due to overactive bot traffic. See T420833 for a lot more details. Attempts to address this root problem have led us to using broad IPv4 range blocks and a manual unblock request process.

Our unblocking process tries to open up enough network space around the blocked IP that it will be likely that the device remains unblocked with normal DHCP address updates from the user's ISP. This work becomes more burdensome on the unblocking users as the number of blocked users increases (for example during a GSoC or Outreachy matching period) or users have reason to use more networks (home, school, multiple mobile providers). It also becomes more frustrating for the blocked users as the problem repeats or is declared too difficult to unblock because of usage or ISP quirks. One example this is users who use Starlink as their ISP. The Starlink system has been shown to use a very large number of distinct IPv4 networks and to have a much higher churn in DHCP leases than a typical home ISP. This effectively makes Starlink impossible for us to selectively unblock with our current tooling.

Before the traffic based instability started we were already working to untangle use cases from Beta Cluster due to complexity based instability. Many MediaWiki testing use cases have been moved to the Patch Demo platform. Other work is underway to move some use cases to suitable Wikimedia production network wikis like test.wikipedia.org. There are more use cases that we still need to find new homes for, and this app is one of them.

I assume that Beta's Commons clone is used for testing so that the real Commons is not flooded with test media uploads. At the moment I'm not sure what replacement environment would be appropriate, but I would like to discuss the needs of the application developers with knowledgeable folks here in the hope of finding a better solution for everyone.

Dominant language
Kotlin
Stars
1.2k
Forks
1.4k
Avg merge
1d 4h
Merged PRs (30d)
156

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from commons-app/apps-android-commons

All issues in commons-app/apps-android-commons

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.