Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Add docker-compose integration test #1201

Merged
merged 16 commits into from
Jul 19, 2019
Merged

Add docker-compose integration test #1201

merged 16 commits into from
Jul 19, 2019

Conversation

gdbelvin
Copy link
Contributor

@gdbelvin gdbelvin commented Feb 8, 2019

Make sure we don't run across issues in the cmd directory due to not actually running things!

Fixes #1209

@gdbelvin
Copy link
Contributor Author

gdbelvin commented Feb 8, 2019

Note to self: we need to either pick docker as the db or the local mysql db engine.
TODO: @Zyqsempai Move the docker db port export flag to docker-compose.override.yml to partially undo the effect of #1183

ERROR: for db  Cannot start service db: driver failed programming external connectivity on endpoint keytransparency_db_1 (983ae78cbde9491d7391a6e330646d5c6dfa6e81960fee0087144ad2534334c3): Error starting userland proxy: listen tcp 0.0.0.0:3306: bind: address already in use

@Zyqsempai
Copy link
Contributor

@gdbelvin Ok

@codecov
Copy link

codecov bot commented Feb 11, 2019

Codecov Report

Merging #1201 into master will increase coverage by 0.02%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1201      +/-   ##
==========================================
+ Coverage   30.23%   30.26%   +0.02%     
==========================================
  Files          48       48              
  Lines        3873     3873              
==========================================
+ Hits         1171     1172       +1     
+ Misses       2520     2519       -1     
  Partials      182      182
Impacted Files Coverage Δ
core/client/client.go 28.94% <0%> (+0.65%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 207a47b...fd2ea17. Read the comment docs.

@RJPercival
Copy link
Contributor

Test appears to be failing on Travis.

* master: (95 commits)
  Remove unused logVerifier (google#1324)
  Verify Revisions in StreamRevisions (google#1323)
  Pair verifier functions (google#1322)
  Split VerifyRevision into Verify{LogRoot,MapRevision (google#1318)
  Make Previous hash check optional (google#1307)
  Remove VerifySignedMapRoot from VerifierInterface (google#1320)
  Remove trailing whitespace (google#1321)
  Encapsulate Client Verifier State in test vectors (google#1316)
  Pass along err message (google#1314)
  Remove unnessesary func() (google#1319)
  New test vector transcript format (google#1315)
  Track map revision inside mutation (google#1310)
  Move verifier to its own package (google#1312)
  go generate ./... (google#1306)
  Fix proto copying in revisions and paginator tests. (google#1309)
  Fix proto copying in server_test. (google#1308)
  go mod tidy (google#1305)
  Use new TrillianMapWrite API (google#1304)
  Configurable maximum queue depth for metric reporting. (google#1303)
  Proposal to refine docker deployment (google#1302)
  ...
@gdbelvin gdbelvin requested a review from a team as a code owner July 18, 2019 11:04
docker-compose.yml Outdated Show resolved Hide resolved
scripts/integration.sh Outdated Show resolved Hide resolved
scripts/integration.sh Outdated Show resolved Hide resolved
scripts/integration.sh Outdated Show resolved Hide resolved
scripts/integration.sh Outdated Show resolved Hide resolved
scripts/integration.sh Outdated Show resolved Hide resolved
scripts/integration.sh Outdated Show resolved Hide resolved
gdbelvin added 2 commits July 18, 2019 17:39
* master:
  Cache go mod download (google#1325)
  Extract log tracking into separate package  (google#1317)
@gdbelvin gdbelvin removed their assignment Jul 18, 2019
@gdbelvin gdbelvin requested a review from RJPercival July 18, 2019 17:06
* master:
  Limit the number of map revisions to return at once (google#1326)
scripts/integration.sh Outdated Show resolved Hide resolved
wget -t 60 --spider --retry-connrefused --waitretry=1 0.0.0.0:443 || sleep 2
wget -t 60 --spider --retry-on-http-error=404 1 0.0.0.0:443/v1/directories/default
wget -T 60 --spider --retry-connrefused localhost:443
wget -T 60 --spider --retry-on-http-error=404 --no-check-certificate https://localhost/v1/directories/default
Copy link
Contributor

Choose a reason for hiding this comment

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

Are you sure you don't want to fail the script here if you can't get a 200 response? It seems it'd make it easier to tell what went wrong. Is it just because you've found it to be a bit unreliable?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

@gdbelvin gdbelvin force-pushed the test branch 2 times, most recently from abd0d0c to 1dcd9bd Compare July 19, 2019 09:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Integration test for docker-compose configs
4 participants