# 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
* [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
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
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.
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
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.
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.
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.
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.