Skip to content
This repository has been archived by the owner on Jan 7, 2022. It is now read-only.

Commit

Permalink
Merge #13
Browse files Browse the repository at this point in the history
13: Yk copy good builds r=ltratt a=vext01

Successful builds are tarred up and placed in /opt/ykrustc-bin-snapshots on the build master.

For now, store at most one archive, but we might change that in the future.

I've tested something very close to this (just without the chmod line in the buildbot script). It *should* work fine 😸 

```
$ ls -al /opt/ykrustc-bin-snapshots/
total 188948
drwxrwxr-x 2 root             buildbot_workers      4096 Apr 18 18:23 .
drwxr-xr-x 8 root             root                  4096 Apr 18 11:32 ..
-rwxrwxr-x 1 buildbot-worker4 buildbot-worker4 193469353 Apr 18 18:23 ykrustc-stage2-057d397c.tar.bz2
$ cd /tmp
$ tar jxf /opt/ykrustc-bin-snapshots/ykrustc-stage2-057d397c.tar.bz2 
$ cd ykrustc-stage2/
$ ls
bin  lib  VERSION
$ cat VERSION 
commit 057d397c982463d374f60e16f9b3863dc660e4f2
Author: Edd Barrett <[email protected]>
Date:   Thu Apr 18 12:04:20 2019 +0100

    Kill [install].
$ 
```

If you agree with this, then I suppose the next step is to try using the tarball in:
ykjit/yk#1

Co-authored-by: Edd Barrett <[email protected]>
  • Loading branch information
bors[bot] and vext01 committed Apr 23, 2019
2 parents 14d78dd + 51e7587 commit e1819c4
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .buildbot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,23 @@
#
# Build script for continuous integration.

./x.py clean # We don't clone afresh to save time and bandwidth.
git clean -dffx # If upstream removes a submodule, remove the files from disk.
set -e

# Ensure the build fails if it uses excessive amounts of memory.
ulimit -d $((1024 * 1024 * 8)) # 8 GiB

# Note that the gdb must be Python enabled.
/usr/bin/time -v env PATH=/opt/gdb-8.2/bin:${PATH} \
RUST_BACKTRACE=1 ./x.py test --config .buildbot.toml

# Archive the build and put it in /opt
TARBALL_TOPDIR=ykrustc-stage2
TARBALL_NAME=ykrustc-stage2-latest.tar.bz2
SNAP_DIR=/opt/ykrustc-bin-snapshots

cd build/x86_64-unknown-linux-gnu
ln -sf stage2 ${TARBALL_TOPDIR}
git show -s HEAD > ${TARBALL_TOPDIR}/VERSION
tar hjcvf ${TARBALL_NAME} ${TARBALL_TOPDIR}
chmod 775 ${TARBALL_NAME}
mv ${TARBALL_NAME} ${SNAP_DIR} # Overwrites any old archive.

0 comments on commit e1819c4

Please sign in to comment.