List of commits:
Subject Hash Author Date (UTC)
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
We did not validated the plan id - now is fixed. 3786d759107c4028f181c7de77d39382d9f572bf Catalin(ux) M. BOIE 2022-02-16 18:55:05
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
Commit 2c27620922c4990454dc3039b2f1c4a86388501f - Builder improvements
Author: Catalin(ux) M. BOIE
Author date (UTC): 2022-03-29 06:28
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2022-03-29 06:28
Parent(s): 416ed9995151c29bffb4ca3f0f6901aab7cbaa8e
Signer:
Signing key:
Signing status: N
Tree: 8ec19857cf6b5ddf94e4323ae1b9995eef3fe298
File Lines added Lines deleted
scripts/builder.php 15 5
File scripts/builder.php changed (mode: 100644) (index 8351cf3..1f3e824)
... ... function xdispatch_one($key, $data)
345 345 break; break;
346 346 } }
347 347
348 if (strcmp($op, 'stats') == 0) {
348 if (strcmp($op, 'vm_stats') == 0) {
349 349 //rg_log_debug($key . ': ' . $jid . ': stats: ' . rg_array2string_short($u)); //rg_log_debug($key . ': ' . $jid . ': stats: ' . rg_array2string_short($u));
350 350 rg_build_stats_add($s['db'], $jid, $u['stats']); rg_build_stats_add($s['db'], $jid, $u['stats']);
351 351 break; break;
 
... ... function rg_process_job($db, &$job)
746 746 //rg_log_debug('workers list: ' . rg_array2string($workers_list)); //rg_log_debug('workers list: ' . rg_array2string($workers_list));
747 747
748 748 // Trying to find a worker in the list of connections // Trying to find a worker in the list of connections
749 $reason = '';
749 750 foreach ($rg_conns as $key => &$i) { foreach ($rg_conns as $key => &$i) {
750 751 if (strcmp($key, 'master') == 0) if (strcmp($key, 'master') == 0)
751 752 continue; continue;
 
... ... function rg_process_job($db, &$job)
753 754 if (!isset($i['ann'])) { if (!isset($i['ann'])) {
754 755 //rg_log($key . ': ' . $jid . ': conn has no announce.'); //rg_log($key . ': ' . $jid . ': conn has no announce.');
755 756 // TODO: close after some time? // TODO: close after some time?
757 $reason .= 'A';
756 758 continue; continue;
757 759 } }
758 760
759 761 if (empty($i['ann']['env'])) { if (empty($i['ann']['env'])) {
760 762 //rg_log($key . ': ' . $jid . ': conn has no environments.'); //rg_log($key . ': ' . $jid . ': conn has no environments.');
763 $reason .= 'E';
761 764 continue; continue;
762 765 } }
763 766
764 767 if (($i['worker_uid'] > 0) && ($i['worker_uid'] != $req['uid'])) { if (($i['worker_uid'] > 0) && ($i['worker_uid'] != $req['uid'])) {
765 768 rg_log($key . ': ' . $jid . ': uids do not match, try next'); rg_log($key . ': ' . $jid . ': uids do not match, try next');
769 $reason .= 'U';
766 770 continue; continue;
767 771 } }
768 772
 
... ... function rg_process_job($db, &$job)
771 775 if (!isset($workers_list[$k])) { if (!isset($workers_list[$k])) {
772 776 rg_internal_error('Worker ' . $name . ' not found' rg_internal_error('Worker ' . $name . ' not found'
773 777 . ' in workers_list! Strange!'); . ' in workers_list! Strange!');
778 $reason .= 'i';
774 779 continue; continue;
775 780 } }
776 781 $wi = $workers_list[$k]; $wi = $workers_list[$k];
777 782
778 783 if (isset($job['avoid'][$k]) && ($job['avoid'][$k] > time())) { if (isset($job['avoid'][$k]) && ($job['avoid'][$k] > time())) {
779 784 rg_log($key . ': ' . $jid . ': we must avoid worker ' . $name); rg_log($key . ': ' . $jid . ': we must avoid worker ' . $name);
785 $reason .= 'V';
780 786 continue; continue;
781 787 } }
782 788
 
... ... function rg_process_job($db, &$job)
787 793 rg_log($key . ': ' . $jid . ': DEBUG: skip worker ' . $name . ' because' rg_log($key . ': ' . $jid . ': DEBUG: skip worker ' . $name . ' because'
788 794 . ' sent jobs(' . $aj . ')' . ' sent jobs(' . $aj . ')'
789 795 . ' >= workers(' . $wi['workers'] . ')'); . ' >= workers(' . $wi['workers'] . ')');
796 $reason .= 'O';
790 797 continue; continue;
791 798 } }
792 799 } }
 
... ... function rg_process_job($db, &$job)
803 810 $env_found = TRUE; $env_found = TRUE;
804 811 break; break;
805 812 } }
806 if (!$env_found)
813 if (!$env_found) {
814 $reason .= 'e';
807 815 continue; continue;
816 }
808 817
809 818 // Send only what is really needed // Send only what is really needed
810 819 $job2 = $req; $job2 = $req;
 
... ... function rg_process_job($db, &$job)
835 844
836 845 // TODO: we should signal this and prevent the call if the list of // TODO: we should signal this and prevent the call if the list of
837 846 // workers does not change. // workers does not change.
838 rg_log('No workers found! Suspend job for 10s');
847 rg_log('No workers found [' . $reason . ']! Suspend job for 10s');
839 848 $job['next_try'] = time() + 10; $job['next_try'] = time() + 10;
840 849 return TRUE; return TRUE;
841 850 } }
 
... ... $rg_conns['master']['func_new_arg'] = $db;
906 915
907 916 // What features the builder supports // What features the builder supports
908 917 $features = array( $features = array(
909 'allow_stats' => 1,
918 'worker_stats' => 1,
910 919 'notify' => 1, 'notify' => 1,
911 'stats' => 1);
920 'vm_stats' => 1);
921 rg_log_debug('Supported features: ' . rg_array2string($features));
912 922
913 923 $workers = 0; $workers = 0;
914 924 $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