Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion templates/human.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ <h2 style="margin-top:-55px">build your human</h2>
<td>
<select id="base-platform">
<option disabled="disabled" selected="">Select target OS</option>
<option value="freebsd">FreeBSD</option>
<option value="darwin">MacOS</option>
<option value="linux">Linux</option>
<option value="windows-psh">Windows (PowerShell)</option>
Expand Down Expand Up @@ -257,6 +258,12 @@ <h4>Human behavior configuration:</h4>
' && virtualenv -p python3 \''+humanName+'\' && \''+humanName+'/bin/pip\' install -r \''+humanName+'/requirements.txt\' && \''+humanName+'/bin/python\' \''+humanName+'/human.py\' --clustersize '+taskCount+' ' +
'--taskinterval '+taskInterval+' --taskgroupinterval '+taskClusterInterval+' --extra '+extra;
break;
case "freebsd":
baseHuman = 'curl -sk -o \''+humanName+'.tar.gz\' -X POST -H \'file:'+humanName+'.tar.gz\' '+http+'/file/download 2>&1 && mkdir \''+humanName+'\' && tar -C \''+humanName+'\' -zxvf \''+humanName+'.tar.gz\' ' +
' && virtualenv -p python3.9 \''+humanName+'\' && \''+humanName+'/bin/pip\' install -r \''+humanName+'/requirements.txt\' && \''+humanName+'/bin/python\' \''+humanName+'/human.py\' --clustersize '+taskCount+' ' +
Copy link

Copilot AI Oct 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The FreeBSD case hardcodes 'python3.9' while other platforms use 'python3'. Consider using 'python3' for consistency unless FreeBSD specifically requires version 3.9.

Suggested change
' && virtualenv -p python3.9 \''+humanName+'\' && \''+humanName+'/bin/pip\' install -r \''+humanName+'/requirements.txt\' && \''+humanName+'/bin/python\' \''+humanName+'/human.py\' --clustersize '+taskCount+' ' +
' && virtualenv -p python3 \''+humanName+'\' && \''+humanName+'/bin/pip\' install -r \''+humanName+'/requirements.txt\' && \''+humanName+'/bin/python\' \''+humanName+'/human.py\' --clustersize '+taskCount+' ' +

Copilot uses AI. Check for mistakes.
'--taskinterval '+taskInterval+' --taskgroupinterval '+taskClusterInterval+' --extra '+extra;
break;

case "linux":
baseHuman = 'curl -sk -o \''+humanName+'.tar.gz\' -X POST -H \'file:'+humanName+'.tar.gz\' '+http+'/file/download 2>&1 && mkdir \''+humanName+'\' && tar -C \''+humanName+'\' -zxvf \''+humanName+'.tar.gz\' ' +
' && virtualenv -p python3 \''+humanName+'\' && \''+humanName+'/bin/pip\' install -r \''+humanName+'/requirements.txt\' && \''+humanName+'/bin/python\' \''+humanName+'/human.py\' --clustersize '+taskCount+' ' +
Expand Down Expand Up @@ -296,6 +303,10 @@ <h4>Human behavior configuration:</h4>
command = command.replace(/\\/g, '\\\\');
command = command.replace(/"/g, '\\\"');
break;
case "freebsd":
command = command.replace(/\\/g, '\\\\');
command = command.replace(/"/g, '\\\"');
break;
Copy link

Copilot AI Oct 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove trailing whitespace after 'break;'

Suggested change
break;
break;

Copilot uses AI. Check for mistakes.
case "linux":
command = command.replace(/\\/g, '\\\\');
command = command.replace(/"/g, '\\\"');
Expand All @@ -317,4 +328,4 @@ <h4>Human behavior configuration:</h4>
return provided_value || default_value;
}

</script>
</script>