Skip to content

Commit d3204a0

Browse files
committed
Merge remote-tracking branch 'origin/master' into HEAD
2 parents 650e059 + c4f9277 commit d3204a0

499 files changed

Lines changed: 6957 additions & 5241 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.env.example

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,6 @@ CLIENT_CHECK_VERSION=false
290290
# TWITCH_CLIENT_SECRET=
291291

292292
# SCORES_ES_CACHE_DURATION=
293-
# SCORES_EXPERIMENTAL_RANK_AS_DEFAULT=false
294-
# SCORES_EXPERIMENTAL_RANK_AS_EXTRA=false
295293
# SCORES_PROCESSING_QUEUE=osu-queue:score-statistics
296294
# SCORES_SUBMISSION_ENABLED=1
297295
# SCORE_INDEX_MAX_ID_DISTANCE=10_000_000
@@ -304,7 +302,6 @@ CLIENT_CHECK_VERSION=false
304302
# TRUSTED_PROXIES=
305303

306304
# IS_DEVELOPMENT_DEPLOY=true
307-
# OSU_EXPERIMENTAL_HOST=
308305

309306
# OSU_URL_LAZER_ANDROID='https://github.com/ppy/osu/releases/latest/download/sh.ppy.osulazer.apk'
310307
# OSU_URL_LAZER_IOS='/home/testflight'
@@ -329,3 +326,6 @@ CLIENT_CHECK_VERSION=false
329326

330327
# TAGS_CACHE_DURATION=60
331328
# BEATMAP_TAGS_CACHE_DURATION=60
329+
330+
# OSU_SENTRY_MIN_LOG_DURATION_MS=500
331+
# SENTRY_TRACES_SAMPLE_RATE=

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
uses: shivammathur/setup-php@v2
2828
with:
2929
tools: composer:v2, cs2pr
30-
php-version: '8.3'
30+
php-version: '8.4'
3131
coverage: none
3232

3333
- name: Get composer cache directory

.github/workflows/tests.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ jobs:
9595
tests:
9696
strategy:
9797
matrix:
98-
php: ['8.3']
98+
php: ['8.4']
9999
name: Tests
100100
runs-on: ubuntu-latest
101101
steps:
@@ -152,7 +152,6 @@ jobs:
152152

153153
- name: Setup indices
154154
run: |
155-
php artisan es:create-search-blacklist
156155
php artisan es:index-documents --no-interaction
157156
php artisan es:index-wiki --create-only --no-interaction
158157

Dockerfile.deployment

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,20 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
1414
build-essential \
1515
git \
1616
nodejs \
17-
php8.3 \
18-
php8.3-common \
19-
php8.3-curl \
20-
php8.3-ds \
21-
php8.3-gd \
22-
php8.3-intl \
23-
php8.3-mbstring \
24-
php8.3-mysql \
25-
php8.3-redis \
26-
php8.3-sqlite3 \
27-
php8.3-swoole \
28-
php8.3-tokenizer \
29-
php8.3-xml \
30-
php8.3-zip \
17+
php8.4 \
18+
php8.4-common \
19+
php8.4-curl \
20+
php8.4-ds \
21+
php8.4-gd \
22+
php8.4-intl \
23+
php8.4-mbstring \
24+
php8.4-mysql \
25+
php8.4-redis \
26+
php8.4-sqlite3 \
27+
php8.4-swoole \
28+
php8.4-tokenizer \
29+
php8.4-xml \
30+
php8.4-zip \
3131
zip
3232

3333
RUN npm install -g yarn
@@ -55,20 +55,20 @@ RUN apt-get update
5555
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
5656
jhead \
5757
nginx \
58-
php8.3 \
59-
php8.3-common \
60-
php8.3-curl \
61-
php8.3-ds \
62-
php8.3-gd \
63-
php8.3-intl \
64-
php8.3-mbstring \
65-
php8.3-mysql \
66-
php8.3-redis \
67-
php8.3-sqlite3 \
68-
php8.3-swoole \
69-
php8.3-tokenizer \
70-
php8.3-xml \
71-
php8.3-zip
58+
php8.4 \
59+
php8.4-common \
60+
php8.4-curl \
61+
php8.4-ds \
62+
php8.4-gd \
63+
php8.4-intl \
64+
php8.4-mbstring \
65+
php8.4-mysql \
66+
php8.4-redis \
67+
php8.4-sqlite3 \
68+
php8.4-swoole \
69+
php8.4-tokenizer \
70+
php8.4-xml \
71+
php8.4-zip
7272

7373
RUN rm -f /var/log/nginx/access.log /var/log/nginx/error.log && \
7474
ln -s /dev/stdout /var/log/nginx/access.log && \

Dockerfile.development

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,27 @@ RUN echo "deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesou
1212
RUN apt-get update
1313
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
1414
build-essential \
15+
chromium \
1516
chromium-driver \
1617
default-mysql-client \
1718
git \
1819
gosu \
1920
jhead \
2021
nodejs \
21-
php8.3 \
22-
php8.3-common \
23-
php8.3-curl \
24-
php8.3-ds \
25-
php8.3-gd \
26-
php8.3-intl \
27-
php8.3-mbstring \
28-
php8.3-mysql \
29-
php8.3-redis \
30-
php8.3-sqlite3 \
31-
php8.3-swoole \
32-
php8.3-tokenizer \
33-
php8.3-xml \
34-
php8.3-zip \
22+
php8.4 \
23+
php8.4-common \
24+
php8.4-curl \
25+
php8.4-ds \
26+
php8.4-gd \
27+
php8.4-intl \
28+
php8.4-mbstring \
29+
php8.4-mysql \
30+
php8.4-redis \
31+
php8.4-sqlite3 \
32+
php8.4-swoole \
33+
php8.4-tokenizer \
34+
php8.4-xml \
35+
php8.4-zip \
3536
zip
3637

3738
RUN npm install -g yarn

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The browser-facing portion of [osu!](https://osu.ppy.sh/home).
99

1010
## Requirements
1111

12-
- A PHP 8.3 environment
12+
- A PHP 8.4 environment
1313
- MySQL 8.0+
1414
- Elasticsearch
1515

app/Console/Commands/EsCreateSearchBlacklist.php

Lines changed: 0 additions & 60 deletions
This file was deleted.

app/Console/Commands/EsIndexDocuments.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,20 +104,21 @@ private function indexGroup($name)
104104

105105
foreach ($types as $type) {
106106
$bar = $this->output->createProgressBar();
107+
$bar->setFormat(' %current% [%bar%] %message%');
107108

108109
$this->info("{$pretext} {$type} into {$indexName}");
109110

111+
$progressCallback = function ($progress, $message) use ($bar) {
112+
$bar->setMessage($message);
113+
$bar->setProgress($progress);
114+
};
110115
if (!$this->inplace && $type === $first) {
111116
// create new index if the first type for this index, otherwise
112117
// index in place.
113-
$type::esIndexIntoNew(Es::CHUNK_SIZE, $indexName, function ($progress) use ($bar) {
114-
$bar->setProgress($progress);
115-
});
118+
$type::esIndexIntoNew(Es::CHUNK_SIZE, $indexName, $progressCallback);
116119
} else {
117120
$options = ['index' => $indexName];
118-
$type::esReindexAll(Es::CHUNK_SIZE, 0, $options, function ($progress) use ($bar) {
119-
$bar->setProgress($progress);
120-
});
121+
$type::esReindexAll(Es::CHUNK_SIZE, 0, $options, $progressCallback);
121122
}
122123

123124
$bar->finish();

app/Console/Commands/EsIndexWiki.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,13 @@ private function reindex()
136136
$total = count($paths);
137137
$this->line("Total: {$total} documents");
138138
$bar = $this->output->createProgressBar($total);
139+
$bar->setFormat(' %current% [%bar%] %message%');
140+
$logger = fn ($message) => $bar->setMessage($message);
139141

140142
foreach ($paths as $path => $_inEs) {
141143
$pagePath = Page::parsePagePath($path);
142144
$page = new Page($pagePath['path'], $pagePath['locale']);
145+
$page->logger = $logger;
143146
$page->sync(true, $this->indexName);
144147

145148
if (!$page->isVisible()) {

app/Console/Commands/MigrateFreshAllCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66
namespace App\Console\Commands;
77

88
use Illuminate\Database\Console\Migrations\FreshCommand;
9+
use Symfony\Component\Console\Attribute\AsCommand;
910
use Symfony\Component\Console\Input\InputOption;
1011

12+
#[AsCommand(name: 'migrate:fresh')]
1113
class MigrateFreshAllCommand extends FreshCommand
1214
{
1315
public function handle()
@@ -57,8 +59,6 @@ public function handle()
5759
'--no-interaction' => $this->option('no-interaction'),
5860
]);
5961

60-
$this->call('es:create-search-blacklist');
61-
6262
if ($this->needsSeeding()) {
6363
$this->runSeeder(null);
6464
}

0 commit comments

Comments
 (0)