List of commits:
Subject Hash Author Date (UTC)
Send client features to the builder dcf648353662409b9e39a422228ddb6a7c43358c Catalin(ux) M. BOIE 2022-12-21 11:10:00
Add support for SHA-256 git repos 8b88927d353c7b588909d0b1220c8922b32129c0 Catalin(ux) M. BOIE 2022-12-21 11:03:19
Look-up pkg_repo using pkg_repo uid f2b188b8cb151c376d8ee8c81f8e82c02ed93cd1 Catalin(ux) M. BOIE 2022-12-12 05:29:13
Cosmetic 04ae5ac6b9805198966a21755d1d430ef5b6a6dd Catalin(ux) M. BOIE 2022-12-11 17:17:39
Keep-alive mechanism for builder/worker 7e3add2ab41feefe37a858439934b8599fb30933 Catalin(ux) M. BOIE 2022-12-10 19:36:53
Bumped version to 0.76 09bb0cc92a9dfce513ce1289a22e71faf4ad1fe1 Catalin(ux) M. BOIE 2022-10-22 06:27:35
Cosmetic 45c59081c97489ccccd35efffa522607fee25a63 Catalin(ux) M. BOIE 2022-10-22 05:52:56
Mostly worker stuff ccf3a8d8da2ad1b0d97418fabb5028b40721835f Catalin(ux) M. BOIE 2022-10-22 05:50:04
wh: lambda: seems we cannot pass x-Amz-Client-Context header empty anymore 7f065b0fb6ceed5d2339afd7590f5a795ed3582e Catalin(ux) M. BOIE 2022-10-21 19:33:58
workers: wrong URL for delete a2b2ff5925b1ee9b4a033da93084c008b7af8c64 Catalin(ux) M. BOIE 2022-10-21 16:03:56
Typo 4557595fb985fb2a0a482a387ef0a61293b511ed Catalin(ux) M. BOIE 2022-03-29 17:06:57
Builder improvements 2c27620922c4990454dc3039b2f1c4a86388501f Catalin(ux) M. BOIE 2022-03-29 06:28:16
Extra space in debian/conffiles preventing Debian build 416ed9995151c29bffb4ca3f0f6901aab7cbaa8e Catalin(ux) M. BOIE 2022-03-28 19:36:06
Show global pkg sub repos; cosmetic 43f60158b760b2789261e703ff2fa0781f590e04 Catalin(ux) M. BOIE 2022-03-28 18:21:07
Cosmetic a60d33914b8a1754c84ddc5440533df9b89337ad Catalin(ux) M. BOIE 2022-03-16 07:40:37
Cosmetic 8bb684cb885e0ad0f24519990a564031ea0e43a9 Catalin(ux) M. BOIE 2022-02-19 08:12:45
Set install_id under lock to not get errors 46904e58621450cc164afe769a2aeb597fbaecd8 Catalin(ux) M. BOIE 2022-02-17 18:08:59
Cosmetic bc38d3b0196d5701f75209a3125543ba096fe340 Catalin(ux) M. BOIE 2022-02-16 19:45:29
Bumped version to 0.75 1341db08f1342e7a6838305e94d31849d6b583c4 Catalin(ux) M. BOIE 2022-02-16 18:58:45
Misc small fixes 7bc12d7ee158d99979dbb91f293162472917a2e2 Catalin(ux) M. BOIE 2022-02-16 18:58:18
Commit dcf648353662409b9e39a422228ddb6a7c43358c - Send client features to the builder
Author: Catalin(ux) M. BOIE
Author date (UTC): 2022-12-21 11:10
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2022-12-21 11:10
Parent(s): 8b88927d353c7b588909d0b1220c8922b32129c0
Signer:
Signing key:
Signing status: N
Tree: fc5fec04b3d9d17d6e8a8d9887312d00a6a4169a
File Lines added Lines deleted
scripts/builder.php 1 0
scripts/worker.php 9 5
File scripts/builder.php changed (mode: 100644) (index 7ed5438..e26fa6a)
... ... $features = array(
933 933 'worker_stats' => 1, 'worker_stats' => 1,
934 934 'notify' => 1, 'notify' => 1,
935 935 'vm_stats' => 1, 'vm_stats' => 1,
936 'client_features' => 1, // if we allow to receive features from client
936 937 'ping' => 1); 'ping' => 1);
937 938 rg_log_debug('Supported features: ' . rg_array2string($features)); rg_log_debug('Supported features: ' . rg_array2string($features));
938 939
File scripts/worker.php changed (mode: 100644) (index c304b96..0031a02)
... ... function start_worker_build_repo($job, $conf, &$reason, &$reason2)
1035 1035 $keys = 0; $keys = 0;
1036 1036 foreach ($job['pkg_repos'] as $pkg_repo_id => $info) { foreach ($job['pkg_repos'] as $pkg_repo_id => $info) {
1037 1037 if ($info['uid'] != $job['uid']) { if ($info['uid'] != $job['uid']) {
1038 rg_log($job['id'] . ': DEBUG: skip saving key for'
1038 rg_log($job['id'] . ': DEBUG: skip storing key for'
1039 1039 . ' pkg_repo_id ' . $pkg_repo_id . ' pkg_repo_id ' . $pkg_repo_id
1040 1040 . ' because the uids do not match'); . ' because the uids do not match');
1041 1041 continue; continue;
 
... ... function xhandle_one($key, $data)
2071 2071 if (strcmp($op, 'FEATURES') == 0) { // what master suports if (strcmp($op, 'FEATURES') == 0) { // what master suports
2072 2072 $features = $u['features']; $features = $u['features'];
2073 2073 rg_log_ml($key . ': FEATURES command: ' . rg_array2string($features)); rg_log_ml($key . ': FEATURES command: ' . rg_array2string($features));
2074
2075 if (isset($features['client_features'])) {
2076 // Sending our features
2077 $j = array('op' => 'features', 'features' => array('ping' => 1));
2078 rg_conn_enq('master', @json_encode($j) . "\n");
2079 } else {
2080 rg_log('Server does not support client features');
2081 }
2074 2082 return; return;
2075 2083 } }
2076 2084
 
... ... function rg_worker_connect()
3009 3017 $rg_conns['master']['exit_on_close'] = 1; $rg_conns['master']['exit_on_close'] = 1;
3010 3018 $rg_conns['master']['func_data'] = 'xhandle'; $rg_conns['master']['func_data'] = 'xhandle';
3011 3019
3012 // Sending our features
3013 $j = array('op' => 'features', 'features' => array('ping' => 1));
3014 rg_conn_enq('master', @json_encode($j) . "\n");
3015
3016 3020 // announce ourselves // announce ourselves
3017 3021 $ann = $conf; $ann = $conf;
3018 3022 unset($ann['key']); unset($ann['key']);
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