Skip to content

[WIP] travis: Add Travis configuration for build testing#1

Open
paulmenzel wants to merge 51 commits into
masterfrom
set-up-travis-ci
Open

[WIP] travis: Add Travis configuration for build testing#1
paulmenzel wants to merge 51 commits into
masterfrom
set-up-travis-ci

Conversation

@paulmenzel
Copy link
Copy Markdown
Owner

No description provided.

buczek and others added 30 commits December 26, 2015 19:59
* 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
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 reverts commit cebe806, reversing
changes made to 28d69ae.
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.
buczek and others added 10 commits July 19, 2016 08:16
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.
buczek and others added 10 commits November 8, 2016 21:21
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
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants