Commit Graph
10 Commits
Author SHA1 Message Date
Franz Busch f17f7e5909 [CI] Add shellcheck and fix up warnings (#2809)
# Motivation

We have quite a lot of shell scripts in our repo and want to make sure that they all pass `shellcheck`.

# Modification

This PR adds a GH action workflow to the soundness script for `shellcheck` and fixes up all errors and warnings.

# Result

No more shell/bash discussions
2024-07-25 14:55:44 +00:00
Franz Busch 5cc05490c4 [GHA] Unacceptable language check (#2766)
* [GHA] Unacceptable language check

# Motivation

Next up replacing part of our soundness script that checked for unacceptable language.

# Modification

This PR adds a new GH action that checks for unacceptable language.

# Result

One more script replaced

* PR review

* Change homepage link to repo
2024-07-09 07:56:26 +01:00
Johannes Weiss 840ccfb7fa integration tests: debug mode which doesn't delete tmp (#852)
Motivation:

Sometimes the contents of the temporary directories are important, so
let's have a flag to keep them.

Modifications:

introduce a -d flag which keeps the tmpdir

Result:

easier debugging
2019-02-28 10:26:02 +00:00
Johannes Weiß 4e4890d990 add 'info' mode for integration tests (#318)
Motivation:

Sometimes it's useful if the integration tests can output something that
isn't always useful. `-v` for verbose is way too verbose so this adds a
`-i` flag to the integration tests that lets 'info' messages through.

Modifications:

- add `-i` flags to integration tests
- make use of it in the integration counter tests

Result:

if we enable `-i` in CI, then we can constantly monitor the number of
allocations we do even if we don't fail the tests.
2018-04-17 10:13:05 +02:00
Johannes Weiß c9c43b53c1 propagate exit code in integration tests in verbose mode (#311)
Motivation:

Previously the integration tests ran in verbose mode wouldn't actually
fail as we didn't correctly propagate the exit code.

Modifications:

correctly propagate the exit code

Result:

integration tests correctly fail in verbose mode too
2018-04-13 14:35:37 +02:00
Johannes Weiß d7fb0ef4e3 improve integration tests verbose mode (#261)
Motivation:

Previously, the integration test's verbose mode would only shows the
output after the test has run, but a live view is better.

Modifications:

Made the integration test's verbose output live.

Result:

Easier to debug the integration tests.
2018-04-03 16:16:42 +01:00
Johannes Weiß 68db2325df add a simple leak detector (#255)
Motivation:

Memory leaks are rare in Swift but they can happen. If we run a
realistic workload and the number of `malloc`s and `free`s is very close
to 0, we can be fairly sure we didn't have any (too bad) leaks.
Therefore this adds a simple leaks detector.

Modifications:

Add a leak detector.

Result:

We should now detect leaks even if the total number of allocations
doesn't increase.
2018-03-29 18:43:49 +01:00
Johannes Weiß c84b19a399 add an allocation counting integration test (#252)
Motivation:

In Swift, it's really easy to accidentally add allocations yet the
number of allocations is really important for performance.
Therefore it's useful to have an integration test that counts the number
of allocations and compares them to a reference (and fails if the number
of allocations increases).

Modifications:

- add an allocation counter
- add a HTTP1 client/server example that is run with the allocation
  counter intrumentation

Result:

We should now be able to track the number of allocations.
2018-03-29 18:31:08 +01:00
Johannes Weiß 1065c9d38e add license headers for shell scripts (#135)
Motivation:

Our shell scripts didn't have license headers but they should.

Modifications:

Add licensing headers to all shell scripts

Result:

Licensing clear for shell scripts too.
2018-03-12 17:12:47 +00:00
Tom Doron 7d5dc67af8 scripts cleanup
motivation: nicer source tree

chanages:
* move scripts to scripts directory
* move integration tests to IntegrationTests directory and remove driver script
* add .sh extension to bash scripts
* adjust rio.yaml
2018-02-12 10:06:46 -08:00