Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Tests Great Again! #1462

Merged
merged 5 commits into from
Apr 24, 2019
Merged

Make Tests Great Again! #1462

merged 5 commits into from
Apr 24, 2019

Conversation

kflynn
Copy link
Member

@kflynn kflynn commented Apr 24, 2019

Well, OK, maybe that's a bit strong. 😉 But:

  • Instead of parsing the outer JSON container that comes from watt using the Python YAML parser, use the JSON parser.

    • A YAML parser can always parse JSON, since YAML is a superset, so using the YAML parser made it faster to get things running, but
    • even using the C YAML parser, the YAML parser is on the order of 20x slower than the JSON parser. That is not a typo.
    • I don't know why this is so. I haven't really gotten past boggling at it.
  • Make the number of configuration snapshots we keep tunable with the AMBASSADOR_SNAPSHOT_COUNT environment variable, and have the tests cut it to 1 instead of 4.

    • Turns out the Kubernaut cluster is severely disk-constrained, and the accumulation of snapshots was eating all the disk and causing pods to be evicted. Sigh.
    • This doesn't happen if we clamp to one snapshot.

So this brings us back to one test pass that's quick enough to succeed.

@kflynn kflynn merged commit 8f6cbf5 into master Apr 24, 2019
@kflynn kflynn deleted the flynn/dev/json-all-tests branch April 24, 2019 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant