Commit Graph

35 Commits

Author SHA1 Message Date
Jacob Hoffman-Andrews 6f082f397b Improve error logging in test.js (#1829)
Also fix a typo in startservers.py and quote variables in Makefile (provides more meaningful errors when they are unset).
2016-05-19 15:54:53 -07:00
Jacob Hoffman-Andrews e6c17e1717 Switch to new vendor style (#1747)
* Switch to new vendor style.

* Fix metrics generate command.

* Fix miekg/dns types_generate.

* Use generated copies of files.

* Update miekg to latest.

Fixes a problem with `go generate`.

* Set GO15VENDOREXPERIMENT.

* Build in letsencrypt/boulder.

* fix travis more.

* Exclude vendor instead of godeps.

* Replace some ...

* Fix unformatted cmd

* Fix errcheck for vendorexp

* Add GO15VENDOREXPERIMENT to Makefile.

* Temp disable errcheck.

* Restore master fetch.

* Restore errcheck.

* Build with 1.6 also.

* Match statsd.*"

* Skip errcheck unles Go1.6.

* Add other ignorepkg.

* Fix errcheck.

* move errcheck

* Remove go1.6 requirement.

* Put godep-restore with errcheck.

* Remove go1.6 dep.

* Revert master fetch revert.

* Remove -r flag from godep save.

* Set GO15VENDOREXPERIMENT in Dockerfile and remove _worskpace.

* Fix Godep version.
2016-04-18 12:51:36 -07:00
Kane York 9e4066e0c7 Remove std_json build tag
After a review of the logs, it seems that no clients are using
capitalized or duplicate keys in the JWS bodies. Remove the std_json
build tag.
2016-03-22 14:00:33 -07:00
Roland Shoemaker 4d8c7a323f Set std_json build flag in order to preserve case insensitive JSON key parsing 2016-03-15 14:25:03 -07:00
Roland Shoemaker 8e67bd5275 Makefile fixes 2016-02-24 10:36:43 -08:00
Jacob Hoffman-Andrews 5791c00f9e Set GOBIN to a relative path.
This is a revert of https://github.com/letsencrypt/boulder/pull/1474. Building
with that change meant that the Boulder RPM unpacked to
/opt/boulder/tmp/tmp.<generated>/src/github.com/letsencrypt/boulder/ instead of
/opt/boulder.
2016-02-17 10:46:51 -08:00
Jeff Hodges f7ea0290fa use absolute GOBIN path for Go 1.6 2016-02-09 11:53:47 -08:00
Jeff Hodges b3ac3ccf94 ignore the cmd/testdata dir in the Makefile
testdata won't ever be producing a binary, and "testdata" is a fairly
common name to find in Go projects for the tests to use, so just ignore it.
2016-02-02 13:42:07 -08:00
Jacob Hoffman-Andrews ad5ac41d67 Add email templates to RPM.
Also add a test that templates compile and run with current code.
2016-01-25 16:40:58 -08:00
Jacob Hoffman-Andrews 6ef48e2f81 remove pkcs11bench. 2015-10-03 14:21:53 -07:00
Jacob Hoffman-Andrews 17918010dc Allow override of all build flags in Makefile.
I think even the ldflags that did not change between subsequent invocations of
./start.py, e.g. BUILD_HOST_VAR, were different between ./start.py and
`go test ./...`, which would cause test runs to be unnecessarily slow.

Open question: To keep local developer builds fast, maybe we should enable race
detection only in Travis? Otherwise, `go test ./...` runs with one set of
ldflags, and then `ampq-integration-test.py` runs with a different set, which I
think makes both of them slower.
2015-10-03 12:45:06 -07:00
Jacob Hoffman-Andrews b3aca1ff2b Speed up tests.
Make `make` aware of output files so it doesn't always have to rebuild. Also
make it use `go install`, which is faster than building files individually.

Now that make is faster, use it in startservers.py to consolidate building
logic. This also has the handy side-effect that ./start.py exposes useful build
information through /build, whereas before only the .rpm packaged version did.

Additionally, this allows us to remove `make` from the Travis matrix, since we
are running `make` as part of the integration test. This means each PR only
triggers two Travis builds instead of one, which means we will get results from
Travis faster.

Also, change the Travis matrix logic to be a list of actions to run, rather than
a list of actions to skip. That fixes
https://github.com/letsencrypt/boulder/issues/817.

Enumerate specific sections of test.sh to run, rather than sections to skip.

Note: ./start.py now installs into ./bin/ instead of $GOPATH/bin.

Only set up GitHub secret file (for PR status reporting) when available, and
decrypt it into /tmp rather than $HOME, to avoid accidentally caching it once
Travis' caching features are available.

Clone letsencrypt repo into $HOME instead of $TMP, to make it possible to cache
eventually.

Remove unused `mysql` dependency in Travis.

Override default Travis install command to prevent it from adding
Godeps/_workspace to GOPATH. When that happens, it hides failures that should
arise from importing non-vendorized paths.
2015-10-01 16:28:17 -07:00
J.C. Jones 5831a56bca Fix rpm build error on bench test.
RPM Builds were failing because they attempted to package "bin/bin/pkcs11bench"
due to semantics on line 75. This patch renames the target from "bin/pkcs11bench"
to simply "pkcs11bench" to bypass the issue.
2015-09-23 12:17:24 -07:00
Jacob Hoffman-Andrews d05b9b833f Update cfssl to latest master.
This pulls in the pkcs11key change from
https://github.com/cloudflare/cfssl/pull/330, and updates the Boulder code to
match.

Note: This change overwrites the local changes to our vendored CFSSL made in
https://github.com/letsencrypt/boulder/pull/784. That's intentional: The
upstream changes in https://github.com/cloudflare/cfssl/pull/330 accomplish the
same thing, more cleanly.
2015-09-20 20:44:44 -07:00
Jeff Hodges c9e7d3e1f6 add pkcs11bench to Makefile 2015-09-15 16:36:33 -07:00
J.C. Jones f6c934030a Add database migrations to the RPM
- Add database migrations to the RPM, so that they're available
  without needing to obtain the source code.
- Use Go 1.5+ syntax for the build strings
2015-09-01 13:19:53 -07:00
Jeff Hodges 3833276a62 correct Makefile on linux 2015-08-21 14:29:11 -07:00
Jacob Hoffman-Andrews 3afc1bb71a Merge pull request #624 from letsencrypt/mysql_unit
use MariaDB in the unit tests
2015-08-15 01:01:39 -07:00
Jeff Hodges 5e97aa23c6 use MariaDB in the unit tests
And delete the uses of sqlite3
2015-08-14 17:13:15 -07:00
Jeff Hodges 71c2e55f77 add all of cmd/ to test.sh and Makefile
Plus, add to test.sh all future possible packages by using `go list` and
all future possible cmd's to the Makefile with `find`.

Also, fix a bug in external-cert-importer from a bad merge somewhere.
2015-08-14 12:21:44 -07:00
Jacob Hoffman-Andrews 30624a332d Merge pull request #554 from letsencrypt/remove-monolith
Remove monolith
2015-08-05 11:45:44 -07:00
Roland Shoemaker 6dc00d4e7f Typo 2015-07-29 15:51:00 -07:00
Roland Shoemaker abd06564ec Merge branch 'master' into mailer 2015-07-27 12:46:19 -07:00
Jeff Hodges cfcd6dfc88 remove pkcs11 tag for build and test scripts
With #525 in place, we no longer need to worry about setting the pkcs11
tag everywhere.
2015-07-24 16:33:05 -07:00
Roland Shoemaker 960af78955 cleanup 2015-07-23 17:59:03 -07:00
J.C. Jones 79415f3fd1 Support RPM builds for those who want them. 2015-07-23 11:41:52 -07:00
Jacob Hoffman-Andrews 079f019533 Support forked-repo Travis build. 2015-06-18 16:57:39 -07:00
J.C. Jones 76f7b1c1e4 Improve build identification
New example:

2015/06/09 09:20:13 Versions: boulder=(generate_ocsp +0c101f2 Tue Jun  9 16:20:06 UTC 2015) Golang=(devel +46b4f67 Thu Apr 16 20:01:13 2015 +0000) BuildHost=(user@vm.local)
2015-06-09 09:22:29 -07:00
Jacob Hoffman-Andrews 8606973ac4 Add pkcs11 tag to makefile. 2015-06-05 09:21:02 -07:00
Roland Shoemaker a5e54727a4 Fix revoker->ca RPC client, and add admin-revoker to Makefile 2015-05-30 22:12:14 -07:00
J.C. Jones d999f416e1 Add responder to Makefile 2015-05-28 23:11:03 -07:00
J.C. Jones 8766edaa93 Issue #239 - Add a build ID method to WFE, and print Info on startup for all 2015-05-28 11:13:09 -07:00
J.C. Jones af0f8446eb Issue #202, Periodic OCSP Signer Tool
- Move dbMap construction and type converter into individual files in the sa package.
- Add DB configuration for the OCSP tool to the boulder config:
  - left to the user if they want to use different boulder-config.json files
    for different purposes.
- Added updater to Makefile
- Fix trailing ',' in the Boulder config, add more panic logging
- Ignore .pem files produced by the integration test
- Change RPC to use per-instance named reply-to queues.
- Finish OCSP Updater logic
- Rework RPC for OCSP to use a transfer object (due to serialization problems of x509.Certificate)
2015-05-27 22:01:29 -07:00
J.C. Jones ed32332204 First pass at build speedups. Feel free to use `make -j9` on your desktops! 2015-05-14 11:37:23 -07:00
Jacob Hoffman-Andrews 7eff4e68a2 Add empty Makefile so Travis doesn't try `go get` 2015-03-26 14:57:10 -07:00