-
Notifications
You must be signed in to change notification settings - Fork 3
Commits on Apr 17, 2020
-
test_mx_util: Test mx_strvec functions used by daemon
The only two functions from the mx_strvec familiy which are used by mxqd and mxqsub have no tests currently. Add test.
Configuration menu - View commit details
-
Copy full SHA for 35e6314 - Browse repository at this point
Copy the full SHA 35e6314View commit details -
test_mx_util: Remove mx_strvec cache test
Remove test for a "cache bug", as we are going to remove the mx_strvec cache feature in the next commit.
Configuration menu - View commit details
-
Copy full SHA for d954e89 - Browse repository at this point
Copy the full SHA d954e89View commit details -
mx_util: Remove mx_strvec cache
The idea of the cache was to store the address and the number of the elements of a single vector in variables each time the length was determined. However, this aliases the pointer to the string vector owned by the user. If the users free()s his pointer to the vector, the cached pointer becomes invalid. An approach would be to require the user to always use a library routine to free the vector. This library routine would need to invalidate the static alias pointer, too. However, the assumed performance win doesn't seem worth the complexity. Remove the cache code.
Configuration menu - View commit details
-
Copy full SHA for 102f936 - Browse repository at this point
Copy the full SHA 102f936View commit details
Commits on Apr 19, 2020
-
mxqd: Don't try to unmount noexisting job tmpdir
Only unmount and remove job temporary directories for jobs, which actually requested one to avoid meaningless warnings in the logfile.
Configuration menu - View commit details
-
Copy full SHA for edc5bd6 - Browse repository at this point
Copy the full SHA edc5bd6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 47e6d34 - Browse repository at this point
Copy the full SHA 47e6d34View commit details -
We'd like to have a daemon flag, namely "exclusive". This flag should be published by the daemon into the database, so that is visible to the web interface. Although we currently need only a single boolean flag, make it a integer, so that we can add more flags at a later time without changing the database scheme.
Configuration menu - View commit details
-
Copy full SHA for de092e0 - Browse repository at this point
Copy the full SHA de092e0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 278ee8a - Browse repository at this point
Copy the full SHA 278ee8aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7f9c214 - Browse repository at this point
Copy the full SHA 7f9c214View commit details -
Configuration menu - View commit details
-
Copy full SHA for 990514b - Browse repository at this point
Copy the full SHA 990514bView commit details -
mxqd.c: Add --exclusive option
When a daemon is started, with --exclusive it will set daemon_flags to 1 to indicate, that it is running in exclusive mode. In exclusive mode, the daemon should only start jobs which have an implicit whitelist (`mxqsub --whitelist`) which includes the daemons name. This is implemented in the next commit.
Configuration menu - View commit details
-
Copy full SHA for 9a47128 - Browse repository at this point
Copy the full SHA 9a47128View commit details -
mxqd.c: Require whitelist on exclusive daemon
If the daemon was stared with `--exclusive`, only start jobs which have the daemon in their whitelist.
Configuration menu - View commit details
-
Copy full SHA for 5f0f6d9 - Browse repository at this point
Copy the full SHA 5f0f6d9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5072c87 - Browse repository at this point
Copy the full SHA 5072c87View commit details -
keywordset: Fix wrong substring match
Do not match "abcdef" with "abc" in find_name().
Configuration menu - View commit details
-
Copy full SHA for 6362a8d - Browse repository at this point
Copy the full SHA 6362a8dView commit details -
test_keywordset: Add test for substring bug
Update of "abcdef" with "+ab" wrongly resulted in "ab", because the substring was matched for the keywords. Add a test for the bug fixed in the last commit.
Configuration menu - View commit details
-
Copy full SHA for dbaa76b - Browse repository at this point
Copy the full SHA dbaa76bView commit details -
keywordset: Add keywordset_add
Add function keywordset_add to update a keywordset with names from a string, not requiring embedded "+" markers.
Configuration menu - View commit details
-
Copy full SHA for c083e4f - Browse repository at this point
Copy the full SHA c083e4fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 19d0aac - Browse repository at this point
Copy the full SHA 19d0aacView commit details -
keywordset.h: Add keywordset_free_byref
Add function keywordset_free_byref to be used with `__attribute__ ((cleanup))`.
Configuration menu - View commit details
-
Copy full SHA for 62c4f57 - Browse repository at this point
Copy the full SHA 62c4f57View commit details -
Makefile: Let test_mxqd_control use keywordset
The inlined keywordset_free_byref from keywordset.h uses keywordset_free, so link keywordset.o in, too.
Configuration menu - View commit details
-
Copy full SHA for 1b24dab - Browse repository at this point
Copy the full SHA 1b24dabView commit details -
Add a simple bison based expression parser and evaluator for boolean expressions with identifiers from keywordsets. Identifiers existing in the supplied keywordset evaluate to true, others to false. This can be combined with boolean arithmetic w using '!', '&', '|', '(' and ')'. White space is ignored. Example valid expressions: cuda cuda & ssse3 amd & !desktop theinternet | deadpool
Configuration menu - View commit details
-
Copy full SHA for 74aaa54 - Browse repository at this point
Copy the full SHA 74aaa54View commit details -
Configuration menu - View commit details
-
Copy full SHA for 90e790b - Browse repository at this point
Copy the full SHA 90e790bView commit details -
Configuration menu - View commit details
-
Copy full SHA for fca297c - Browse repository at this point
Copy the full SHA fca297cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 12945aa - Browse repository at this point
Copy the full SHA 12945aaView commit details -
sql: Add column prerequisites for the daemon
Add field "prerequisites" to mxq_daemon which hold the prerequisites the server offers (e.g. cpu feature flags and hostconfig keywords). This field is used to publish the discovered prerequisites.
Configuration menu - View commit details
-
Copy full SHA for ab90990 - Browse repository at this point
Copy the full SHA ab90990View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2a8be9f - Browse repository at this point
Copy the full SHA 2a8be9fView commit details -
Configuration menu - View commit details
-
Copy full SHA for a10e639 - Browse repository at this point
Copy the full SHA a10e639View commit details -
sql: Add column prerequisites for group
Add add column to store a prerequisites expression which the group requires from the server.
Configuration menu - View commit details
-
Copy full SHA for 5dfc5a8 - Browse repository at this point
Copy the full SHA 5dfc5a8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2463cb9 - Browse repository at this point
Copy the full SHA 2463cb9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9fe7aed - Browse repository at this point
Copy the full SHA 9fe7aedView commit details -
Configuration menu - View commit details
-
Copy full SHA for 10af18a - Browse repository at this point
Copy the full SHA 10af18aView commit details -
Configuration menu - View commit details
-
Copy full SHA for e982239 - Browse repository at this point
Copy the full SHA e982239View commit details -
mxqd: Init server prerequisties
Initialize set of prerequisites available on the server from hostname, short hostname, hostconfig and cpu features. Also include a keyword "true". Store the preqrequisites as keywordset in the server structure to use for cehcking group requiresments and as as string in the daemon structure to be published to the database for documentation.
Configuration menu - View commit details
-
Copy full SHA for 4850634 - Browse repository at this point
Copy the full SHA 4850634View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4761df0 - Browse repository at this point
Copy the full SHA 4761df0View commit details -
mxqd: Reformulate server_is_qualified
Reformulate server_is_qualified to make it (IMO) easier to understand and easier to expand.
Configuration menu - View commit details
-
Copy full SHA for 1b3faf5 - Browse repository at this point
Copy the full SHA 1b3faf5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 338b12d - Browse repository at this point
Copy the full SHA 338b12dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 190d7d2 - Browse repository at this point
Copy the full SHA 190d7d2View commit details -
If the users specifies a prerequisites expression with --prerequisites, parse it to verify its syntax and store it as a group attribute.
Configuration menu - View commit details
-
Copy full SHA for 405bfcb - Browse repository at this point
Copy the full SHA 405bfcbView commit details -
Configuration menu - View commit details
-
Copy full SHA for c487c6c - Browse repository at this point
Copy the full SHA c487c6cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 63d6f12 - Browse repository at this point
Copy the full SHA 63d6f12View commit details