Commit Graph

36 Commits

Author SHA1 Message Date
Brian Cunnie
4ed10c4408 Dockerfile needs ip, ifconfig, tcpdump...
...to troubleshoot k8s even more.
2021-02-22 21:56:25 -08:00
Brian Cunnie
56248bc87a Dockerfile needs ping...
...so that I can troubleshoot my cluster
2021-02-22 20:47:01 -08:00
Brian Cunnie
dfde2f2124 Move sslip.io-dns-server source code to a subdir
I'm going to create a simple HTTP/DNS server that has the same API as
[acme-dns](https://github.com/joohoi/acme-dns) but isn't so complicated,
and I want that code to be next to the regular DNS server code.

caveat: Although I've made changes to the packaging script, I have not
tested them, and I don't intend to, for I don't plan to ever create
another BOSH release, and that breaks my 💔.
2021-01-03 18:53:46 -08:00
Brian Cunnie
b4e3005d84 CI: test the Golang DNS server's unit tests
...and not the deprecated PowerDNS pipe backend shell script, which we
no longer use.

README now has the badge for the unit tests, and the placeholder is
gone.

fixes:
```
resources.6h: '6h' is not a valid identifier: must start with a lowercase letter^
```
2020-12-12 06:50:05 -08:00
Brian Cunnie
552353b2a0 Unit tests are run for sslip.io executable 2018-09-24 21:16:02 -07:00
Brian Cunnie
a0f1136286 Deprecate serial_groups
Now that we run cellblocks in parallel, we no longer need serial groups,
but we might decide to use resource pools to allow us to chain deploys.
2018-07-11 12:50:35 -07:00
Brian Cunnie
51983abdaa Remove tasks; they're unnecessary for dummy pipeline
- Pull the pipeline configuration from Concourse, but re-add the
comments at the top & the entire `resources` section which has YAML
anchors and is much more brief as a result
2018-07-11 12:32:23 -07:00
Brian Cunnie
af4d259b02 Diego cellblocks are rolled in clumps of 5 2018-07-11 12:22:07 -07:00
Brian Cunnie
a72a840f66 CI job _deploy-pws-diego-cellblock-02_ has fewer restrictions
Previously _deploy-pws-diego-cellblock-02_ waited for
_deploy-pws-pivotal-internal-apps_ to complete before starting, but that
particular job has taken as long as 1:47 (HH:MM) (cf-deployment v2.5.0).

_deploy-pws-diego-cellblock-02_'s other dependency,
_deploy-pws-diego-cellblock-01_, completed in a much more reasonable
timeframe (1:08), and is also a more similar deployment (in other words,
if the deployment to cellblock 01 has succeeded, then we should proceed
with cellblock 02 & not bother to wait for Internal Apps).
2018-07-11 09:38:31 -07:00
Brian Cunnie
d7ce0cc7b6 Concourse pipeline bosh:pws_cf
This is a dummy pipeline to demonstrate visually the changes to
accelerate the deployment to PWS (Pivotal Web Services). We hope to
reduced deployment time from 17 hours to 11 hours while restricting
Diego cell vacating to one az (availability zone) at a time.
2018-07-11 09:34:20 -07:00
Brian Cunnie
03485ad955 Pipelines: unpause from the CLI 2018-03-17 04:35:47 -07:00
Brian Cunnie
ebc13e99f6 Pipelines use new syntax for Docker images
Also modified simple so that _unit_ would pass and _integration_ would
fail. If swapped, then _unit_ would fail and _integration_ would never
run.

fixes:
```
error: invalid configuration:
unknown/extra keys:
  - jobs[0].plan[0].config.image
  - jobs[0].plan[0].config.tags
```
2018-03-08 20:44:08 -08:00
Brian Cunnie
e5a113d4d4 Reduce flakiness by attempting 10 times
- DNS is flaky, and sometimes tests fail for spurious reasons
  (e.g.  <https://ci.nono.io/teams/main/pipelines/sslip.io/jobs/check-dns/builds/1621>)

fixes
```
dig: couldn't get address for 'ns-he.nono.io.': not found
  nameserver ns-he.nono.io.'s NS records match whois's ["ns-azure.nono.io.", "ns-aws.nono.io.", "ns-he.nono.io.", "ns-gce.nono.io."], `dig +short ns sslip.io @ns-he.nono.io.` (FAILED - 1)
```
2017-10-08 08:04:29 -07:00
Brian Cunnie
7a7b8464e2 RSpec check-dns_spec.rb has replaced check-dns.rb 2016-09-10 17:13:30 -07:00
Brian Cunnie
9e1bcb2c6a Check DNS changes 4x/day; expose job output to public
- I like public output because it reassures users
  that we're really, truly testing
2016-09-09 07:31:04 -07:00
Brian Cunnie
daf5c91ee0 RSpec is invoked with correct path to spec/
fixes:
```
No examples found.
```
2016-09-05 05:46:46 -07:00
Brian Cunnie
8bcce4784b hash-bang has one option, concatenated
Works fine on macOS; blows up on Linux.

fixes:
```
/bin/bash: - : invalid option
Usage:	/bin/bash [GNU long option] [option] ...
	/bin/bash [GNU long option] [option] script-file ...
```
2016-09-05 05:27:08 -07:00
Brian Cunnie
5c5d7ae5ec use RSpec, not a custom bash script
Admittedly it's overkill to use RSpec to run a set of assertions against
a DNS server -- a simple shell script would have been shorter and more
understandable. We are using RSpec merely to practice using RSpec.

Also, RSpec is not quite appropriate because we're not testing a Ruby
class. In fact, we're not test Ruby code at all. So we should not be
using RSpec. Just sayin'.
2016-09-05 05:16:51 -07:00
Brian Cunnie
99efc514a8 Docker container has rspec
- switching to rspec to run tests -- good practice
2016-09-04 10:58:53 -07:00
Brian Cunnie
ae765ae476 fix trailing '.' whois <-> dig dichotomy
- whois records don't have trailing '.'; NS records do. Add trailing '.'
2016-09-04 06:25:45 -07:00
Brian Cunnie
819c2604dc Query proper NS; Exit Code == # failures 2016-09-03 05:57:14 -07:00
Brian Cunnie
45d0e58679 Don't blindly succeed even when you fail
- must use a non-zero exit code to signify failure to Concourse
2016-09-02 13:07:42 -07:00
Brian Cunnie
6cb6eaa17f Check that whois matches dig 2016-09-02 08:03:44 -07:00
Brian Cunnie
24aee3e7b2 Oops -- I forgot I needed whois 2016-09-01 12:47:48 -07:00
Brian Cunnie
0794d967d6 DNS checks are run in Fedora container with ruby
- includes bind-utils (dig, nslookup, whois)
2016-09-01 12:39:30 -07:00
Brian Cunnie
22e048d5bc Dockerfile for image that contains needed programs
- ruby & nslookup & dig
2016-09-01 07:55:06 -07:00
Brian Cunnie
50ade4d699 Docker image Ruby -> Fedora/Ruby 2016-08-31 20:43:33 -07:00
Brian Cunnie
5cd74fe56e check-dns.rb has 2 checks, better than none. 2016-08-31 20:39:54 -07:00
Brian Cunnie
1c87736d42 Comment/reminder to expose Concourse pipeline-simple 2016-08-31 19:16:30 -07:00
Brian Cunnie
e212d71056 Farewell, Fedora, and HELLO RUBY
Use ruby image to run check-dns script
2016-08-29 13:21:45 -07:00
Brian Cunnie
1df0dd7b90 Pipelines have better instructions
...in comments, at the top of the YAML files.
2016-08-29 13:15:53 -07:00
Brian Cunnie
ba4d87c8d4 check-dns will be a ruby script...
...and it will be perfect in every way. --Immortan Joe
2016-08-29 13:08:11 -07:00
Brian Cunnie
276311f219 Simple pipeline highlights conundrum:
- "which job reflects the health of the code?"
2016-08-28 06:20:49 -07:00
Brian Cunnie
e89d79cb7c Comments describe the status of the various jobs. 2016-08-27 20:11:22 -07:00
Brian Cunnie
998be13369 Pipeline that displays the five possible badges 2016-08-26 21:21:01 -07:00
Brian Cunnie
05dac6df49 sslip.io has Concourse's Continuous Integration
- CI-related files are under `ci/`
2016-08-24 20:43:10 -07:00