In this task we will try to work out a solution to work on a more kubernetes friendly solution to provide the parsoidtest functionality .
Requirements
A high-level overview of requirements for feature parity with parsoidtest1001 can be found here. Paraphrasing / re-framing slightly, a k8s-based solution:
- Must support running mediawiki in a configuration as close to production as possible (e.g., latest production image).
- Must support loading parsoid code from its repository at an arbitrary commit ref in lieu of the vendored parsoid code in the mediawiki image.
3. Must support applying configuration overrides such as forcing read-only access to the production databases.
- Must be accessible from the WMF production network to facilitate round-trip and one-off testing (not externally accessible, but ideally accessible at some point in the future from CI).
- Must support running one-off scripts via the maintenance wrapper.
Proposed Solution
Extend mw-experimental, to cover parsoidtest's functionality. We will be repeating/reusing most of the work done for T276994
How?
- Repurpose`mw-parsoid`, to target pods running specifically on wikikube-worker-exp*
- Update profile::kubernetes::mediawiki_experimental to clone mediawiki/services/parsoid
- Allow mounting mediawiki/services/parsoid via hostPath similarly to T395284
- Edit wmf-config/CommonSettings.php accordingly
[]x Allow access via XWD
- create a pinkllama release (and remove main)
- use the default mediawiki image (aka not -debug)
- tracing sampling will be 0
- DB user should have RO access only. T420336: mw-parsoid improvements
- mediawiki-config support
- remove any related alerts (hieradata/common/service.yaml)
- bump VCPUs to 6 on VMs
Reusing mw-parsoid speeds the process up, since we will not have to create new namespace, DNS entries, discovery records etc.
Documentation & Monitoring
- wikitech
- grafana
- logstash dashboard . T420336: mw-parsoid improvements
Open Questions
do we need to bump the resources of the VMs ?yes we do.CPUs: 4, Memory: 16G, Disks: 200G