[WIP] travis: Add Travis configuration for build testing#1
Open
paulmenzel wants to merge 51 commits into
Open
Conversation
* donald/master: web: server table web: allow to limit group display by username
When a job transitions from ASSIGNED to LOADED, the sql trigger procedure needs host_slots to maintain the statistics in mxq_daemon
* fixes: mxqdctl-hostconfig: add 'quit' and usage fix inline declarations for C99 (gcc 5) mxqd: update group_jobs_running on transition from RUNING or LOADED to UNKNOWN mxqd_control: insert new groups at the end of the users group list mysql/trigger: remove trigger for data we now maintain by mxqd web: limit group table display to seven days web: make meaning of values more clear in daemon table header web: remove useless columns from server table mxqd: update statistics in daemon table when jobs are started and stopped mxqd: update daemon statistics after reload mxq_job: store host_slots when we set status to ASSIGNED
fixed typo
avoid compiler warning "warning: ‘_mx_strbeginswithany’ is static but used in inline function ‘mx_stribeginswithany’ which is not static"
This allows mxqd to be started with "-t <minutes>" to have a job time contraint for the server. jobs which are submitten with a longer maximum runtime are not started on this server. This is an emergency implementation and might need some cleanup/rethinking in the future. But we need the feature now.
* work: mx_util: remove inline attribute from mx_stribeginswithany mxqd: unlink bad (left over) fspool files, so we don't try them over and over web: don't show the same set of data columns in any group table mxqd: rename output files as user mxqd: maintain supplementary group IDs of server
* servertimelimit: mxqd: implement time contraint
This allows mxqd to be started with "-t <minutes>" to have a job time contraint for the server. jobs which are submitten with a longer maximum runtime are not started on this server. This is an emergency implementation and might need some cleanup/rethinking in the future. But we need the feature now.
seems to be unused.
A new and cleaner implementation of the '--max-time' constraint for mxqd.
The count of running jobs and threads of a group were not deducted from the counters the server keeps for the user and the cluster. This lead to wrong scheduling, as users were thought to have more running jobs than they really had. Add code to maintain the global counters.
mxqd_control: account for orphaned groups
Building MXQ under Debian Sid/unstable with the package
`libmysqlclient-dev` installed, the build fails with the error below.
```
$ make V=1
[…]
cc -g -Wall -DMXQ_VERSION=\"0.22.3\" -DMXQ_VERSIONFULL=\""MXQ v0.22.3 ("beta") [0.22.3-0-gf868e20]"\" -DMXQ_VERSIONDATE=\"2015\" -DMXQ_VERSIONEXTRA=\"\" -DPREFIX=\"/usr\" -DEPREFIX=\"/usr\" -DSBINDIR=\"/usr/sbin\" -DBINDIR=\"/usr/bin\" -DLIBDIR=\"/usr/lib\" -DLIBEXECDIR=\"/usr/libexec\" -DDATADIR=\"/usr/share\" -DMANDIR=\"/usr/share/man\" -DSYSCONFDIR=\"/etc\" -DLOCALSTATEDIR=\"/var\" -o mxqd_control.o -c mxqd_control.c
In file included from mxqd_control.c:7:0:
mxq_job.h:5:19: fatal error: mysql.h: No such file or directory
#include <mysql.h>
^
compilation terminated.
```
Add the needed C compiler flags to `mxqd_control.o` to fix this.
438f396 to
7a77177
Compare
Add missing MySQL compiler flags
Travis’ default script is `./configure && make && make test`. As Autotools are not used, [override](https://docs.travis-ci.com/user/customizing-the-build/#Customizing-the-Build-Step) it. Also install the MySQL header files with the [APT Addon] (https://docs.travis-ci.com/user/installing-dependencies/#Installing-Packages-with-the-APT-Addon).
```
$ make
PRODUCTION BUILD
CC mxqd.o
mxqd.c: In function ‘server_init’:
mxqd.c:558:17: error: ‘PR_SET_CHILD_SUBREAPER’ undeclared (first use in this function)
mxqd.c:558:17: note: each undeclared identifier is reported only once for each function it appears in
mxqd.c: In function ‘reaper_process’:
mxqd.c:1030:17: error: ‘PR_SET_CHILD_SUBREAPER’ undeclared (first use in this function)
make[1]: *** [mxqd.o] Error 1
make: *** [all] Error 2
```
e86dcbf to
d843399
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.