Skip to content

Instantly share code, notes, and snippets.

@hartzell
hartzell / gist:6363949312627aa1d417124e1ac7b3fc
Created February 6, 2017 18:24
Failure building go with MAXPROCS=8
ok regexp 1.201s
ok regexp/syntax 0.593s
panic: test timed out after 3m0s
goroutine 22606 [running]:
panic(0x5bf600, 0xc420224010)
/tmp/hartzelg/spack-stage/spack-stage-q4e0zt/go/src/runtime/panic.go:500 +0x1a1 fp=0xc420053f48 sp=0xc420053eb8
testing.startAlarm.func1()
/tmp/hartzelg/spack-stage/spack-stage-q4e0zt/go/src/testing/testing.go:918 +0x10b fp=0xc420053fb0 sp=0xc420053f48
runtime.goexit()
@hartzell
hartzell / crash.txt
Created February 20, 2017 02:18
spack install go@1.8 crash when run as a jenkins job
[...]
ok os 0.435s
ok os/exec 0.635s
ok os/signal 4.354s
ok os/user 0.064s
ok path 0.017s
ok path/filepath 0.030s
ok reflect 0.201s
ok regexp 0.319s
ok regexp/syntax 0.815s
@hartzell
hartzell / crash.txt
Created February 20, 2017 03:16
Another go@1.8 crash when run as a jenkins job
[hartzelg@rpbuchop002 ~]$ cat /tmp/foo
ok reflect 0.335s
ok regexp 0.379s
ok regexp/syntax 0.959s
panic: test timed out after 3m0s
goroutine 105468 [running]:
panic(0x699d40, 0xc420c22010)
/tmp/hartzelg/spack-stage/spack-stage-7GXmo7/go/src/runtime/panic.go:531 +0x1cf fp=0xc420e48f78 sp=0xc420e48ee0
testing.startAlarm.func1()
@hartzell
hartzell / gist:6d38d98e7d4ecec20fa499ac5f9cae58
Created February 20, 2017 16:57
Crash building go@1.8 w/ shell script via Jenkins.
[...]
ok regexp 0.372s
ok regexp/syntax 0.694s
panic: test timed out after 3m0s
goroutine 86170 [running]:
panic(0x699d40, 0xc421da8010)
/isilon/Analysis/scratch/hartzelg/tmp/poodle/go/src/runtime/panic.go:531 +0x1cf fp=0xc420f17f78 sp=0xc420f17ee0
testing.startAlarm.func1()
/isilon/Analysis/scratch/hartzelg/tmp/poodle/go/src/testing/testing.go:1023 +0xf9 fp=0xc420f17fe0 sp=0xc420f17f78
@hartzell
hartzell / config.log fragment
Created March 28, 2017 20:53
fragment of config.log from spack configure htop
configure:12733: checking for addnwstr in -lncursesw
configure:12758: /home/hartzelg/tmp/spack/lib/spack/env/gcc/gcc -o conftest -g -O2 -lncursesw -ltinfo conftest.c -lncursesw -lm >&5
configure:12758: $? = 0
configure:12767: result: yes
configure:12998: checking ncursesw/curses.h usability
configure:12998: /home/hartzelg/tmp/spack/lib/spack/env/gcc/gcc -c -g -O2 conftest.c >&5
In file included from conftest.c:82:0:
/home/hartzelg/tmp/spack/opt/spack/linux-centos7-x86_64/gcc-5.4.0/ncurses-6.0-43qxlcy2renpowsmlfbhqfek2bckj36m/include/unctrl.h:60:38: error: conflicting types for 'unctrl'
NCURSES_EXPORT(NCURSES_CONST char *) NCURSES_SP_NAME(unctrl) (SCREEN*, chtype);
^
@hartzell
hartzell / keybase.md
Created October 21, 2017 20:31
keybase.md

Keybase proof

I hereby claim:

  • I am hartzell on github.
  • I am hartzell (https://keybase.io/hartzell) on keybase.
  • I have a public key whose fingerprint is 5785 01D8 D770 F970 6A58 35F8 77D1 A29F 7090 62F8

To claim this, I am signing this object:

@hartzell
hartzell / script-console-job-definition.groovy
Created April 15, 2018 20:56
Demonstration of defining a job interactively from the Jenkins script console
// I end up recreating this every time I need it, so, notes...
// This will run in the Jenkins script console and define a job.
//
import javaposse.jobdsl.dsl.DslScriptLoader
import javaposse.jobdsl.plugin.JenkinsJobManagement
def workspace = new File('.')
def jobManagement = new JenkinsJobManagement(System.out, [:], workspace)
@hartzell
hartzell / configparser-is-broken.md
Last active June 20, 2018 17:38
The python module "configparser" is broken.

Importing configparser

The backported configparser is a P.I.T.A..

I tripped across this when trying to use py-jupyter-notebook with my Spack PR that adds dependencies via site.addsitedir(). It fails immediately. That package appears to work if you use "normal" Spack and PYTHONPATH, but it turns out that the only bit that uses configparser is jupyter-nbconvert and that does fail.

@hartzell
hartzell / spack-install.sh
Last active July 6, 2018 21:12
A script to configure a spack tree and build some things.
#!/bin/sh
set -e
# ask the spack executable the location of root of its tree
export SPACK_ROOT=$(spack location -r)
# having an app tree set up messes up the build. Clear the field.
if [[ $(type -t module) == "function" ]]; then
module purge
fi
@hartzell
hartzell / singularity-fix-suid.md
Last active July 6, 2018 23:36
Touch up a non-root singularity install

These steps will touch up a non-root install...

libexec_bin=$(spack location -i singularity)/libexec/singularity/bin
suid_files=(action-suid start-suid mount-suid)

for f in "${suid_files[@]}"
do
    sudo chown root:root "${libexec_bin}/${f}"
 sudo chmod 4755 "${libexec_bin}/${f}"