Increase upload size maximum to 100MB on w.org

The current server configuration seems to have a max upload file size of 50MB. I assume this is in the PHPPHP PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML. http://php.net/manual/en/intro-whatis.php. configuration, although it may be limited by the webserver settings as well.

This is currently limited to 10MB on the main w.org network, and 50MB on the make network. These settings are through WordPress itself, in the Network Settings pages.

We would like that to be bumped to 100MB globally. The sites would still be limited to 10 and 50, respectively, with one exception. The https://wordpress.org/news/ site will need larger upload capabilities for the podcast files. Code has been added to allow up to 100MB uploads for the /news site only, but it is currently limited to 50MB by the server.

So, the request is to bump the max upload size on w.org to 100MB.

#prio2

Core build sync node version selection

As part of #52341-core there’s some work being done to standardise the build configuration for WordPress releases, but one of the changes is likely to cause breakage with the develop.svn -> core.svn sync.

Currently package.jsonJSON JSON, or JavaScript Object Notation, is a minimal, readable format for structuring data. It is used primarily to transmit data between a server and web application, as an alternative to XML. contains (for example) { engines: { node: "1.2.3" } } however the field should ideally contain >=1.2.3.
Due to the way that the nodeVersion switching code works though, I believe it’ll fail to find node ">=1.2.3" and then fail to find node ">=1*" not taking into account the version qualifiers.
See https://github.com/WordPress/wordpress-develop/pull/897/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519R9-R12

While not an ideal way to parse the field, altering nodeVersion() {} in develop-core-svn-sync-config.sh like so should make this more reliable and work well enough until this can be replaced.

 nodeVersion() {
 	# Old branches don't have a node version defined
 	if [ "$1" = 'null' ]; then
 		NODE_VER=0.10.5
 	else
 		NODE_VER=$1
 	fi
+
+	# Remove any non-numeric characters and version qualifiers (>=1.2.3)
+	NODE_VER=$( echo "$NODE_VER" | grep -oE '[0-9.]+' | head -n1 )
+
 	echo Switching nodejs to $NODE_VER

This has been tested by copying it to a new file, and running with the following output:

$ cat test.sh && echo ----- && ./test.sh
#!/bin/sh

nodeVersion() {
        # Old branches don't have a node version defined
        if [ "$1" = 'null' ]; then
                NODE_VER=0.10.5
        else
                NODE_VER=$1
        fi

	NODE_VER=$( echo "$NODE_VER" | grep -oE '[0-9.]+' | head -n1 )

	echo $NODE_VER
}


nodeVersion "1.2.3"
nodeVersion ">=0.1.2"
nodeVersion ">=1.2.3 <2.0.0"
-----
1.2.3
0.1.2
1.2.3

After it’s standardised, I believe the build team intends to look at self-containing the build process so it’s less tied to the system it’s being built on.

cc @desrosj

#svn #build #prio1

#52341-core

Remove WordPress.org SupportPress remnants

As of r16882-dotorg the SupportPress configs and externals have been removed.

Can you please:
* Remove the SupportPress nginxNGINX NGINX is open source software for web serving, reverse proxying, caching, load balancing, media streaming, and more. It started out as a web server designed for maximum performance and stability. In addition to its HTTP server capabilities, NGINX can also function as a proxy server for email (IMAP, POP3, and SMTP) and a reverse proxy and load balancer for HTTP, TCP, and UDP servers. https://www.nginx.com/. config file from wporg-web
* Remove the public_html/sp directory from all hosts (production & sandbox). Due to nested externals, there’s a set of */includes/backpress* directories that SVNSVN Apache Subversion (often abbreviated SVN, after its command name svn) is a software versioning and revision control system. Software developers use Subversion to maintain current and historical versions of files such as source code, web pages, and documentation. Its goal is to be a mostly compatible successor to the widely used Concurrent Versions System (CVS). WordPress core and the wordpress.org released code are all centrally managed through SVN. https://subversion.apache.org/. won’t clean up and will leave as a local mod (I couldn’t work around it due to nested externals within nested externals)

#prio2

Remove Support Forum bbpress 1 rules

As of r16878-dotorg and r16879-dotorg the Support forumSupport Forum WordPress Support Forums is a place to go for help and conversations around using WordPress. Also the place to go to report issues that are caused by errors with the WordPress code and implementations. bbPressbbPress Free, open source software built on top of WordPress for easily creating forums on sites. https://bbpress.org. 1 external has been removed.

Similarly to https://make.wordpress.org/systems/2021/01/11/remove-ideas-rewrite-rules-files/

Can these rules be altered in wporg-web’s wporg-wordpress.orgWordPress.org The community site where WordPress code is created and shared by the users. This is where you can download the source code for WordPress core, plugins and themes as well as the central location for community conversations and organization. https://wordpress.org/ ?

  • location = /support/search.php {} can be removed
  • location = /support/register.php {} can be removed
  • location = /support/bb-login.php {} should be able to be removed. I haven’t seen anything linking to it, but it works and leaving it won’t harm anything other than being an extra nginxNGINX NGINX is open source software for web serving, reverse proxying, caching, load balancing, media streaming, and more. It started out as a web server designed for maximum performance and stability. In addition to its HTTP server capabilities, NGINX can also function as a proxy server for email (IMAP, POP3, and SMTP) and a reverse proxy and load balancer for HTTP, TCP, and UDP servers. https://www.nginx.com/. rule.
  • In the location /support/ {} blockBlock Block is the abstract term used to describe units of markup that, composed together, form the content or layout of a webpage using the WordPress editor. The idea combines concepts of what in the past may have achieved with shortcodes, custom HTML, and embed discovery into a single consistent API and user experience.:
    • #Profiles (Handled by bbPress1) needs to be removed
    • #bbPress Admin needs to be temporarily accessible. needs to be removed
  • Please ensure that public_html/support is removed from all production hosts (it should be)
  • Please remove public_html/support from sandboxes. The commits above removed it on production hosts, but not sandboxes.

Previously: https://make.wordpress.org/systems/2015/01/22/i-have-an-nginx-fix-for-a-fun/

See https://meta.trac.wordpress.org/ticket/5384 & https://meta.trac.wordpress.org/ticket/4135

#prio1

Final few supportpress email forwards

Can we please make these updates to the wordpress.orgWordPress.org The community site where WordPress code is created and shared by the users. This is where you can download the source code for WordPress core, plugins and themes as well as the central location for community conversations and organization. https://wordpress.org/ email forwards?

  • Update training@ to forward to learn@wordpress.org
  • Update getinvolved@ to forward to support@wordcamp.org
  • Update friendlyandsafe@ to forward to report@wordcamp.org
  • Remove the various updatehelp*@ forwards, let them bounce

#email #prio2

Remove Ideas rewrite rules (& files)

As of r16852-dotorg & r16853-dotorg the ideas forum external has been removed from WordPress.orgWordPress.org The community site where WordPress code is created and shared by the users. This is where you can download the source code for WordPress core, plugins and themes as well as the central location for community conversations and organization. https://wordpress.org/.

Can these rules be altered in wporg-web’s wporg-wordpress.org ?

  • Remove the location /ideas/ {} blockBlock Block is the abstract term used to describe units of markup that, composed together, form the content or layout of a webpage using the WordPress editor. The idea combines concepts of what in the past may have achieved with shortcodes, custom HTML, and embed discovery into a single consistent API and user experience.
  • Remove rewrite ^/ideas/.*$ from @404-extend.
  • Remove rewrite ^/extend/ideas(/.*)?$ ...
    (That should remove all references to /ideas from server configs)
  • Verify that public_html/ideas/ no longer exists on disk on web nodes (it shouldn’t, due to the double-deployDeploy Launching code from a local development environment to the production web server, so that it's available to visitors.)
  • Remove public_html/ideas/ on sandboxes (svn up not needed, svn will gracefully update with that folder removed, but will not remove it, although it won’t error out, optional)

/ideas/ and /extend/ideas/ will be handled by a redirect in PHPPHP PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML. http://php.net/manual/en/intro-whatis.php. (r10567-meta) and is temporarily also being handled by r16851-dotorg until these rewrite rules are removed.
If wanted, a server-level redirect for /ideas/ and /extend/ideas/ to https://wordpress.org/support/forum/requests-and-feedback/ can be added, but I don’t think it’s warranted.

#prio1

Remove bad plugins SVN tag

It looks like someone managed to create a svn tag with a character return in it over a year ago, unfortunately however this tag can’t be removed, and as a result, the tag list for the pluginPlugin A plugin is a piece of software containing a group of functions that can be added to a WordPress website. They can extend functionality or add new features to your WordPress websites. WordPress plugins are written in the PHP programming language and integrate seamlessly with WordPress. These can be free in the WordPress.org Plugin Directory https://wordpress.org/plugins/ or can be cost-based plugin from a third-party can’t be checked out without causing SVNSVN Apache Subversion (often abbreviated SVN, after its command name svn) is a software versioning and revision control system. Software developers use Subversion to maintain current and historical versions of files such as source code, web pages, and documentation. Its goal is to be a mostly compatible successor to the widely used Concurrent Versions System (CVS). WordPress core and the wordpress.org released code are all centrally managed through SVN. https://subversion.apache.org/. to go into a 100% cpu loopLoop The Loop is PHP code used by WordPress to display posts. Using The Loop, WordPress processes each post to be displayed on the current page, and formats it according to how it matches specified criteria within The Loop tags. Any HTML or PHP code in the Loop will be processed on each post. https://codex.wordpress.org/The_Loop..

It looks like the request is being denied by nginxNGINX NGINX is open source software for web serving, reverse proxying, caching, load balancing, media streaming, and more. It started out as a web server designed for maximum performance and stability. In addition to its HTTP server capabilities, NGINX can also function as a proxy server for email (IMAP, POP3, and SMTP) and a reverse proxy and load balancer for HTTP, TCP, and UDP servers. https://www.nginx.com/. prior to the request hitting ApacheApache Apache is the most widely used web server software. Developed and maintained by Apache Software Foundation. Apache is an Open Source software available for free., so if a systems team member could bypass nginx and execute svn rm https://plugins.svn.wordpress.org/blogger-to-wordpress-redirection/tags/2.2.6%0d/ that would be appreciated.

This tag will also cause problems for the plugin directory, as it uses the CLICLI Command Line Interface. Terminal (Bash) in Mac, Command Prompt in Windows, or WP-CLI for WordPress. SVN commands to interact with the plugin as well.

ref: https://wordpress.slack.com/archives/C02RQC6RW/p1609928527429400

#prio3