Skip to content

Commit 8470564

Browse files
committed
fix CI: update color assertions for zero-padded RGB values
1 parent 26393ba commit 8470564

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

.github/workflows/test.yml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -529,15 +529,15 @@ jobs:
529529
psql -h localhost -U postgres -d postgres -v ON_ERROR_STOP=1 << 'EOF'
530530
DO $$
531531
DECLARE
532-
v_green text := E'\033[38;2;80;250;123m';
532+
v_green text := E'\033[38;2;080;250;123m';
533533
v_light_yellow text := E'\033[38;2;241;250;140m';
534-
v_blue text := E'\033[38;2;30;100;255m';
535-
v_red text := E'\033[38;2;255;85;85m';
534+
v_blue text := E'\033[38;2;030;100;255m';
535+
v_red text := E'\033[38;2;255;085;085m';
536536
v_pink text := E'\033[38;2;255;121;198m';
537-
v_cyan text := E'\033[38;2;0;200;255m';
537+
v_cyan text := E'\033[38;2;000;200;255m';
538538
v_yellow text := E'\033[38;2;255;220;100m';
539-
v_orange text := E'\033[38;2;255;165;0m';
540-
v_teal text := E'\033[38;2;0;210;180m';
539+
v_orange text := E'\033[38;2;255;165;000m';
540+
v_teal text := E'\033[38;2;000;210;180m';
541541
v_purple text := E'\033[38;2;150;100;255m';
542542
v_light_purple text := E'\033[38;2;190;150;255m';
543543
v_gray text := E'\033[38;2;180;180;180m';
@@ -933,26 +933,26 @@ jobs:
933933
DO $$
934934
BEGIN
935935
-- Exact boundary matches
936-
ASSERT ash._wait_color('CPU*', true) = E'\033[38;2;80;250;123m', 'CPU* green';
937-
ASSERT ash._wait_color('CPUsomething', true) = E'\033[38;2;80;250;123m', 'CPU prefix green';
936+
ASSERT ash._wait_color('CPU*', true) = E'\033[38;2;080;250;123m', 'CPU* green';
937+
ASSERT ash._wait_color('CPUsomething', true) = E'\033[38;2;080;250;123m', 'CPU prefix green';
938938
ASSERT ash._wait_color('IdleTx', true) = E'\033[38;2;241;250;140m', 'IdleTx light yellow';
939-
ASSERT ash._wait_color('IO:DataFileRead', true) = E'\033[38;2;30;100;255m', 'IO blue';
940-
ASSERT ash._wait_color('IO:WALSync', true) = E'\033[38;2;30;100;255m', 'IO:WALSync blue';
941-
ASSERT ash._wait_color('Lock:tuple', true) = E'\033[38;2;255;85;85m', 'Lock red';
942-
ASSERT ash._wait_color('Lock:transactionid', true) = E'\033[38;2;255;85;85m', 'Lock:txid red';
943-
ASSERT ash._wait_color('Lock:relation', true) = E'\033[38;2;255;85;85m', 'Lock:relation red';
939+
ASSERT ash._wait_color('IO:DataFileRead', true) = E'\033[38;2;030;100;255m', 'IO blue';
940+
ASSERT ash._wait_color('IO:WALSync', true) = E'\033[38;2;030;100;255m', 'IO:WALSync blue';
941+
ASSERT ash._wait_color('Lock:tuple', true) = E'\033[38;2;255;085;085m', 'Lock red';
942+
ASSERT ash._wait_color('Lock:transactionid', true) = E'\033[38;2;255;085;085m', 'Lock:txid red';
943+
ASSERT ash._wait_color('Lock:relation', true) = E'\033[38;2;255;085;085m', 'Lock:relation red';
944944
ASSERT ash._wait_color('LWLock:WALWrite', true) = E'\033[38;2;255;121;198m', 'LWLock pink';
945945
ASSERT ash._wait_color('LWLock:BufferContent', true) = E'\033[38;2;255;121;198m', 'LWLock:BufferContent pink';
946-
ASSERT ash._wait_color('IPC:BgWorkerStartup', true) = E'\033[38;2;0;200;255m', 'IPC cyan';
946+
ASSERT ash._wait_color('IPC:BgWorkerStartup', true) = E'\033[38;2;000;200;255m', 'IPC cyan';
947947
ASSERT ash._wait_color('Client:ClientRead', true) = E'\033[38;2;255;220;100m', 'Client yellow';
948948
ASSERT ash._wait_color('Client:ClientWrite', true) = E'\033[38;2;255;220;100m', 'Client:Write yellow';
949-
ASSERT ash._wait_color('Timeout:PgSleep', true) = E'\033[38;2;255;165;0m', 'Timeout orange';
950-
ASSERT ash._wait_color('BufferPin:BufferPin', true) = E'\033[38;2;0;210;180m', 'BufferPin teal';
949+
ASSERT ash._wait_color('Timeout:PgSleep', true) = E'\033[38;2;255;165;000m', 'Timeout orange';
950+
ASSERT ash._wait_color('BufferPin:BufferPin', true) = E'\033[38;2;000;210;180m', 'BufferPin teal';
951951
ASSERT ash._wait_color('Activity:ArchiverMain', true) = E'\033[38;2;150;100;255m', 'Activity purple';
952952
ASSERT ash._wait_color('Extension:DblinkGetResult', true) = E'\033[38;2;190;150;255m', 'Extension light purple';
953953
ASSERT ash._wait_color('', true) = E'\033[38;2;180;180;180m', 'empty string gray (fallback)';
954954
ASSERT ash._wait_color('') = '', 'empty string no-color returns empty';
955-
ASSERT ash._wait_color('UnknownType:Whatever', true) = E'\033[38;2;180;180;180m', 'unknown gray';
955+
ASSERT ash._wait_color('UnknownType:Whatever', true) = E'\033[38;2;180;180;180m', 'unknown gray'; -- 180 already 3 digits
956956
957957
RAISE NOTICE '_wait_color comprehensive tests PASSED';
958958
END;
@@ -1204,9 +1204,9 @@ jobs:
12041204
ASSERT v_count > 1, 'timeline_chart_at failed';
12051205
12061206
-- _wait_color
1207-
ASSERT ash._wait_color('CPU*', true) = E'\033[38;2;80;250;123m', 'CPU* color wrong';
1208-
ASSERT ash._wait_color('IO:DataFileRead', true) = E'\033[38;2;30;100;255m', 'IO color check';
1209-
ASSERT ash._wait_color('Lock:tuple', true) = E'\033[38;2;255;85;85m', 'Lock color wrong';
1207+
ASSERT ash._wait_color('CPU*', true) = E'\033[38;2;080;250;123m', 'CPU* color wrong';
1208+
ASSERT ash._wait_color('IO:DataFileRead', true) = E'\033[38;2;030;100;255m', 'IO color check';
1209+
ASSERT ash._wait_color('Lock:tuple', true) = E'\033[38;2;255;085;085m', 'Lock color wrong';
12101210
12111211
-- Absolute-time variants
12121212
SELECT count(*) INTO v_count

0 commit comments

Comments
 (0)