Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
bd364b9
use http basic authentication when fetching url data
mg12ctx Mar 22, 2019
27307ed
fix brief report link
edwintorok Apr 29, 2019
7a8e811
CP-30677: expand variables from XenRT suite files
edwintorok Aug 21, 2019
c6f4168
Clean up Curl connections
edwintorok Aug 21, 2019
ec01f32
Update to OCaml 4.08.1, Core v0.13, and Dune build system
edwintorok Nov 29, 2019
f16d7b6
decode &45; to - for --
edwintorok Nov 29, 2019
5745fe3
Add bootmode precedence
edwintorok Nov 22, 2019
85c44f5
Escaping for +
edwintorok Nov 29, 2019
f73dec2
Show patches_applied, and build_is_release axes
edwintorok Nov 25, 2019
3639eab
Fix some Dune warnings
edwintorok Nov 29, 2019
e45cbe6
Memoize the result of some Sql queries: we've been repeating the same…
edwintorok Aug 21, 2019
e337897
Async postgres queries
edwintorok Nov 29, 2019
51ee3c8
async wip
edwintorok Dec 1, 2019
4dcb9a9
Convert queries to asynchronous queries
edwintorok Dec 1, 2019
98478d9
Convert more queries to asynchronous ones
edwintorok Dec 1, 2019
a8a9052
Shut down the async loop when done
edwintorok Dec 1, 2019
85d690b
Cleanup some async handling
edwintorok Dec 1, 2019
e81d0b7
Handle nested includes from suite definitions
edwintorok Dec 1, 2019
2130144
Parallelize more queries
edwintorok Dec 1, 2019
2210dd4
Parallelize more queries
edwintorok Dec 1, 2019
cfaab55
parallelize more queries and https queries too
edwintorok Dec 1, 2019
51b1d9c
Show more accurate median statistics
edwintorok Dec 2, 2019
8f90a17
ssl0.5.7 for older openssl version
edwintorok Dec 10, 2019
c038cac
fix url decoding of -
edwintorok Dec 10, 2019
ceb86d3
Disable forcing of Y from/to zero and split by build_is_release
edwintorok Dec 10, 2019
5e5e7f2
Add Travis CI build script
edwintorok Dec 19, 2019
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@
.omakedb.lock
distro
rage
_build
.merlin
*.install
12 changes: 12 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
language: c
sudo: required
service: docker
install: wget https://raw.githubusercontent.com/ocaml/ocaml-ci-scripts/master/.travis-docker.sh
script:
- bash -ex .travis-docker.sh
env:
global:
- OCAML_VERSION="4.08"
- DISTRO="debian-unstable"
- PACKAGE="rage"
- PINS="rage:."
30 changes: 10 additions & 20 deletions OMakefile → Makefile
Original file line number Diff line number Diff line change
@@ -1,42 +1,32 @@
SHELL=/bin/bash
SRC=src
PROGRAM=rage
CONFIG=/usr/groups/perfeng/rage/config
RAGE_DB=$(shell grep "^rage_db=" $(CONFIG) | awk -F '=' '{print $$2}')
RAGE_HOST=$(shell grep "^rage_host=" $(CONFIG) | awk -F '=' '{print $$2}')
RAGE_USER=$(shell grep "^rage_user=" $(CONFIG) | awk -F '=' '{print $$2}')
RAGE_PASS=$(shell grep "^rage_pass=" $(CONFIG) | awk -F '=' '{print $$2}')
SETTINGS="host=$(RAGE_HOST) user=$(RAGE_USER) password=$(RAGE_PASS) dbname=$(RAGE_DB)"
RUN_CMD=OCAMLRUNPARAM='b1' ./$(PROGRAM) "$(SETTINGS)"
SETTINGS=host=$(RAGE_HOST) user=$(RAGE_USER) password=$(RAGE_PASS) dbname=$(RAGE_DB)
PROGRAM=rage
RUN_CMD=OCAMLRUNPARAM='b1' ./$(PROGRAM) "$(SETTINGS)" /etc/rage_passwd
Copy link
Member

Choose a reason for hiding this comment

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

What is this file /etc/rage_passwd? It doesn't look like this belongs in this commit...?

Copy link
Member Author

Choose a reason for hiding this comment

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

See above, should probably be called like svcacct_passwd

WWW_DIR=/var/www
CGI_SCRIPT=index.cgi
STATIC_DIR=static
README=README.markdown
DISTRO_DIR=distro
MODE=775
INSTALL=install -m $(MODE)

.PHONY: readme build distro run install log clean
.DEFAULT: build
.PHONY: build clean distro install log
build:
dune build --profile=release @install

.SUBDIRS: $(SRC)
clean:
dune clean

distro: build
rsync -avpL $(STATIC_DIR)/ $(SRC)/$(PROGRAM) $(DISTRO_DIR)
printf '#!/bin/bash\n\n$(RUN_CMD)' > $(DISTRO_DIR)/$(CGI_SCRIPT)
rsync -avpL $(STATIC_DIR)/ _build/install/default/bin/$(PROGRAM) $(DISTRO_DIR)
printf '#!/bin/bash\n\n$(RUN_CMD)\n' > $(DISTRO_DIR)/$(CGI_SCRIPT)
chmod $(MODE) $(DISTRO_DIR)/$(CGI_SCRIPT)

run: distro
$(DISTRO_DIR)/$(RUN_CMD)

install: distro
cp $(DISTRO_DIR)/* $(WWW_DIR)

clean:
rm -rf $(DISTRO_DIR) *.omc

readme:
markdown $(README)

log:
sudo tail -F /var/log/apache2/error.log
14 changes: 0 additions & 14 deletions OMakeroot

This file was deleted.

17 changes: 17 additions & 0 deletions dune-project
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
(lang dune 2.0)
(generate_opam_files)
(name rage)
(source (github perf101/rage))
(license BSD3)
(package
(name rage)
(synopsis "RAGE, Results And Graphing Engine")
(depends
(core (>= v0.13))
(async (>= v0.13))
(postgresql (>= 4.5.2))
(ocurl (>= 0.9.0))
(ssl (= 0.5.7))
ppx_sexp_conv
re
uri))
32 changes: 32 additions & 0 deletions rage.opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
synopsis: "RAGE, Results And Graphing Engine"
license: "BSD3"
homepage: "https://github.com/perf101/rage"
bug-reports: "https://github.com/perf101/rage/issues"
depends: [
"dune" {>= "2.0"}
"core" {>= "v0.13"}
"async" {>= "v0.13"}
"postgresql" {>= "4.5.2"}
"ocurl" {>= "0.9.0"}
"ssl" {= "0.5.7"}
"ppx_sexp_conv"
"re"
"uri"
]
build: [
["dune" "subst"] {pinned}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
]
dev-repo: "git+https://github.com/perf101/rage.git"
7 changes: 5 additions & 2 deletions sql/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,13 @@ create table builds (
product varchar(128) not null,
branch varchar(128) not null,
build_number integer not null,
build_tag varchar(128) null,
build_tag varchar(2048) null,
build_date varchar(32) null,
build_is_release boolean null,
patches_applied varchar(1024) not null,

primary key (build_id),
constraint builds_unique_keys unique (product, branch, build_number, build_tag)
constraint builds_unique_keys unique (product, branch, build_number, build_tag, build_is_release, patches_applied)
);
grant select on builds to "www-data";

Expand Down Expand Up @@ -108,6 +110,7 @@ create table tc_config (
dom0_vcpus integer not null,
host_pcpus integer not null,
host_type varchar(16) not null,
bootmode_precedence varchar(32) not null,

foreign key (job_id) references jobs(job_id),
foreign key (tc_fqn) references test_cases(tc_fqn),
Expand Down
41 changes: 0 additions & 41 deletions src/OMakefile

This file was deleted.

Loading