List of commits:
Subject Hash Author Date (UTC)
Added build stats 3f574c94ad35d6f85ee37a4da410499f268e608f Catalin(ux) M. BOIE 2022-02-16 18:53:54
Cosmetic 548c8a909c994ef528c9910c625e6afb88beeead Catalin(ux) M. BOIE 2022-02-16 18:44:12
.deb support 722ca672abf6f28109e35f3573dca7e367d3b51a Catalin(ux) M. BOIE 2022-02-16 18:39:19
compare: added rpm/deb lines 1356fb5c8e5d82356776561af4a2dcaec0d19c14 Catalin(ux) M. BOIE 2022-02-16 07:30:06
debian folder updates 45e86104b565e508c514804910cfda87a3c1239c Catalin(ux) M. BOIE 2022-02-16 07:26:09
Fix rate limit for IPv6 336d34f7eaac356688ba5c251f027aff947ce9e4 Catalin(ux) M. BOIE 2022-02-09 14:39:28
Forgot to remove a function after moving it b6fd0700cf5dde953acb0d4584a48cb404a69ab2 Catalin(ux) M. BOIE 2021-11-17 19:27:04
Prepare correctly for rgfs (missed some places) 38d255af17a72fd9f92a8c37d4fddc8f2caf023b Catalin(ux) M. BOIE 2021-11-17 18:05:01
TODO/cosmetic d4968bc1d9c8bbe3c4aba2479f3694a7a3863d0f Catalin(ux) M. BOIE 2021-11-17 18:04:36
More debug help 74f45188bffd7630d0c08648433749a3ef23c9af Catalin(ux) M. BOIE 2021-11-15 17:34:58
worker: Fixed a stupid bug leading to wrong distro upgrade command d9bc215557cd9a6f30dbc90434dc3aba46e39979 Catalin(ux) M. BOIE 2021-11-14 16:16:43
Silence an 'unpack' exception when we do not have enough bytes. add562b15d94501a0585001db526b241c251b6e6 Catalin(ux) M. BOIE 2021-11-14 11:25:01
Run struct and fixes under the same lock d046942317c73351473a18eb833318aec3f4d907 Catalin(ux) M. BOIE 2021-11-14 08:18:05
spec file small updates 7aef02df6ed5f6ce4d39cd2a926a79bcdc1a3c5a Catalin(ux) M. BOIE 2021-11-14 06:33:35
Typo b0087441b4d637c7bf6ed64b6c243ad2ec8f1493 Catalin(ux) M. BOIE 2021-11-14 06:15:00
spec: Added 'Replaces: rocketgit' to easy upgrade, fixed fixfiles c380f40fe86ddf70b99030a6f0be93d91137b909 Catalin(ux) M. BOIE 2021-11-14 06:14:25
Fixed non debug case of rg_debug_html 523f6784671e5f810b8435ad66ad21ea548219d8 Catalin(ux) M. BOIE 2021-11-14 05:58:37
Fix rate limit types 0de3ee35d0d0e46521d64a596232765fb5d618a3 Catalin(ux) M. BOIE 2021-11-14 05:58:03
commented request_slowlog_timeout 505877b567807e11f25695de58725f316f10043e Catalin(ux) M. BOIE 2021-11-13 17:32:46
systemctl git.socket rethinking 3c71e58760f6abc69db661098840c277d4fc13fb Catalin(ux) M. BOIE 2021-11-13 17:25:52
Commit 3f574c94ad35d6f85ee37a4da410499f268e608f - Added build stats
Author: Catalin(ux) M. BOIE
Author date (UTC): 2022-02-16 18:53
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2022-02-16 18:53
Parent(s): 548c8a909c994ef528c9910c625e6afb88beeead
Signer:
Signing key:
Signing status: N
Tree: 647004ef04546866a03d1ae7827a99978b6d8087
File Lines added Lines deleted
inc/builder.inc.php 32 0
inc/struct.inc.php 12 0
scripts/builder.php 8 1
File inc/builder.inc.php changed (mode: 100644) (index 69b9880..a3c81b4)
... ... function rg_builder_cosmetic($db, &$row)
281 281 } }
282 282 } }
283 283
284 /*
285 * Add a build_stat entry
286 */
287 function rg_build_stats_add($db, $job_id, $json)
288 {
289 $ret = array('ok' => 0);
290 do {
291 $ts = $json['ts']; unset($json['ts']);
292
293 $params = array(
294 'itime' => $ts,
295 'job_id' => $job_id,
296 'json' => $json
297 );
298
299 $sql = 'INSERT INTO build_stats_' . gmdate('Y_m', $ts)
300 . ' (itime, job_id, json)'
301 . ' VALUES (@@itime@@, @@job_id@@, @@json@@)';
302 $res = rg_sql_query_params($db, $sql, $params);
303 if ($res === FALSE) {
304 $ret['errmsg'] = 'cannot add job stat in db: ' . rg_sql_error();
305 break;
306 }
307 rg_sql_free_result($res);
308
309 $ret['ok'] = 1;
310 } while (0);
311
312 return $ret;
313 }
314
315
284 316 /* /*
285 317 * Lists the build jobs * Lists the build jobs
286 318 */ */
File inc/struct.inc.php changed (mode: 100644) (index 24e988e..c18a8a9)
... ... $rg_sql_struct[47]['other'] = array(
744 744 ); );
745 745 // Here, 0.74 was released. // Here, 0.74 was released.
746 746
747 $rg_sql_struct[48]['tables'] = array(
748 'build_stats' => 'CREATE TABLE build_stats ('
749 . 'itime INT NOT NULL'
750 . ', job_id INT NOT NULL'
751 . ', json TEXT NOT NULL)'
752 );
753 $rg_sql_struct[48]['other'] = array(
754 'conns_flags' => 'ALTER TABLE conns ADD flags TEXT DEFAULT \'\''
755 );
756 $rg_sql_struct_parts['build_stats'] = array('extra_index' => array('job_id'));
757
747 758 // Do not forget to add the new created tables to statistics. // Do not forget to add the new created tables to statistics.
759
748 760 // The next line must be after all rg_sql_struct* definitions. // The next line must be after all rg_sql_struct* definitions.
749 761 $rg_sql_schema_ver = count($rg_sql_struct); $rg_sql_schema_ver = count($rg_sql_struct);
750 762
File scripts/builder.php changed (mode: 100644) (index a434c4c..f7db50c)
... ... function xdispatch_one($key, $data)
344 344 break; break;
345 345 } }
346 346
347 if (strcmp($op, 'stats') == 0) {
348 //rg_log_debug($key . ': ' . $jid . ': stats: ' . rg_array2string_short($u));
349 rg_build_stats_add($s['db'], $jid, $u['stats']);
350 break;
351 }
352
347 353 if (strcmp($op, 'STA') == 0) { if (strcmp($op, 'STA') == 0) {
348 354 $job['worker_started'] = $now; $job['worker_started'] = $now;
349 355 job_save($job); job_save($job);
 
... ... $rg_conns['master']['func_new_arg'] = $db;
900 906 // What features the builder supports // What features the builder supports
901 907 $features = array( $features = array(
902 908 'allow_stats' => 1, 'allow_stats' => 1,
903 'notify' => 1);
909 'notify' => 1,
910 'stats' => 1);
904 911
905 912 $workers = 0; $workers = 0;
906 913 $original_mtime = @filemtime(__FILE__); $original_mtime = @filemtime(__FILE__);
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/catalinux/rocketgit

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/catalinux/rocketgit

Clone this repository using git:
git clone git://git.rocketgit.com/user/catalinux/rocketgit

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main