Skip to content

Commit

Permalink
H2 gives us anchor links
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdanfox committed Feb 17, 2020
1 parent 18f29fc commit 28fdcd2
Show file tree
Hide file tree
Showing 2 changed files with 99 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -470,21 +470,23 @@ public static void afterClass() throws IOException {
})
.collect(Collectors.joining("", "```\n", "```\n"));

String rows = files.stream()
String images = files.stream()
.filter(p -> p.toString().endsWith("png"))
.map(p -> {
String githubLfsUrl = "https://media.githubusercontent.com/media/palantir/dialogue/develop/"
+ "simulation/src/test/resources/"
+ p.getFileName();
return String.format(
"<tr>"
"%n## %s%n"
+ "<table><tr><th>develop</th><th>current</th></tr>%n"
+ "<tr>"
+ "<td><image width=400 src=\"%s\" /></td>"
+ "<td>%s<br /><image width=400 src=\"%s\" /></td>"
+ "</tr>%n",
githubLfsUrl, p.getFileName(), p.getFileName());
+ "<td><image width=400 src=\"%s\" /></td>"
+ "</tr>"
+ "</table>%n%n",
p.getFileName(), githubLfsUrl, p.getFileName());
})
.collect(Collectors.joining());
String images = "<table><tr><th>develop</th><th>current</th></tr>" + rows + "</table>";

String report = String.format(
"# Report%n<!-- Run SimulationTest to regenerate this report. -->%n%s%n%n%s%n", txtSection, images);
Expand Down
110 changes: 91 additions & 19 deletions simulation/src/test/resources/report.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,94 @@
```


<table><tr><th>develop</th><th>current</th></tr><tr><td><image width=400 src="https://media.githubusercontent.com/media/palantir/dialogue/develop/simulation/src/test/resources/all_nodes_500[CONCURRENCY_LIMITER].png" /></td><td>all_nodes_500[CONCURRENCY_LIMITER].png<br /><image width=400 src="all_nodes_500[CONCURRENCY_LIMITER].png" /></td></tr>
<tr><td><image width=400 src="https://media.githubusercontent.com/media/palantir/dialogue/develop/simulation/src/test/resources/all_nodes_500[ROUND_ROBIN].png" /></td><td>all_nodes_500[ROUND_ROBIN].png<br /><image width=400 src="all_nodes_500[ROUND_ROBIN].png" /></td></tr>
<tr><td><image width=400 src="https://media.githubusercontent.com/media/palantir/dialogue/develop/simulation/src/test/resources/black_hole[CONCURRENCY_LIMITER].png" /></td><td>black_hole[CONCURRENCY_LIMITER].png<br /><image width=400 src="black_hole[CONCURRENCY_LIMITER].png" /></td></tr>
<tr><td><image width=400 src="https://media.githubusercontent.com/media/palantir/dialogue/develop/simulation/src/test/resources/black_hole[ROUND_ROBIN].png" /></td><td>black_hole[ROUND_ROBIN].png<br /><image width=400 src="black_hole[ROUND_ROBIN].png" /></td></tr>
<tr><td><image width=400 src="https://media.githubusercontent.com/media/palantir/dialogue/develop/simulation/src/test/resources/drastic_slowdown[CONCURRENCY_LIMITER].png" /></td><td>drastic_slowdown[CONCURRENCY_LIMITER].png<br /><image width=400 src="drastic_slowdown[CONCURRENCY_LIMITER].png" /></td></tr>
<tr><td><image width=400 src="https://media.githubusercontent.com/media/palantir/dialogue/develop/simulation/src/test/resources/drastic_slowdown[ROUND_ROBIN].png" /></td><td>drastic_slowdown[ROUND_ROBIN].png<br /><image width=400 src="drastic_slowdown[ROUND_ROBIN].png" /></td></tr>
<tr><td><image width=400 src="https://media.githubusercontent.com/media/palantir/dialogue/develop/simulation/src/test/resources/fast_500s_then_revert[CONCURRENCY_LIMITER].png" /></td><td>fast_500s_then_revert[CONCURRENCY_LIMITER].png<br /><image width=400 src="fast_500s_then_revert[CONCURRENCY_LIMITER].png" /></td></tr>
<tr><td><image width=400 src="https://media.githubusercontent.com/media/palantir/dialogue/develop/simulation/src/test/resources/fast_500s_then_revert[ROUND_ROBIN].png" /></td><td>fast_500s_then_revert[ROUND_ROBIN].png<br /><image width=400 src="fast_500s_then_revert[ROUND_ROBIN].png" /></td></tr>
<tr><td><image width=400 src="https://media.githubusercontent.com/media/palantir/dialogue/develop/simulation/src/test/resources/live_reloading[CONCURRENCY_LIMITER].png" /></td><td>live_reloading[CONCURRENCY_LIMITER].png<br /><image width=400 src="live_reloading[CONCURRENCY_LIMITER].png" /></td></tr>
<tr><td><image width=400 src="https://media.githubusercontent.com/media/palantir/dialogue/develop/simulation/src/test/resources/live_reloading[ROUND_ROBIN].png" /></td><td>live_reloading[ROUND_ROBIN].png<br /><image width=400 src="live_reloading[ROUND_ROBIN].png" /></td></tr>
<tr><td><image width=400 src="https://media.githubusercontent.com/media/palantir/dialogue/develop/simulation/src/test/resources/one_endpoint_dies_on_each_server[CONCURRENCY_LIMITER].png" /></td><td>one_endpoint_dies_on_each_server[CONCURRENCY_LIMITER].png<br /><image width=400 src="one_endpoint_dies_on_each_server[CONCURRENCY_LIMITER].png" /></td></tr>
<tr><td><image width=400 src="https://media.githubusercontent.com/media/palantir/dialogue/develop/simulation/src/test/resources/one_endpoint_dies_on_each_server[ROUND_ROBIN].png" /></td><td>one_endpoint_dies_on_each_server[ROUND_ROBIN].png<br /><image width=400 src="one_endpoint_dies_on_each_server[ROUND_ROBIN].png" /></td></tr>
<tr><td><image width=400 src="https://media.githubusercontent.com/media/palantir/dialogue/develop/simulation/src/test/resources/simplest_possible_case[CONCURRENCY_LIMITER].png" /></td><td>simplest_possible_case[CONCURRENCY_LIMITER].png<br /><image width=400 src="simplest_possible_case[CONCURRENCY_LIMITER].png" /></td></tr>
<tr><td><image width=400 src="https://media.githubusercontent.com/media/palantir/dialogue/develop/simulation/src/test/resources/simplest_possible_case[ROUND_ROBIN].png" /></td><td>simplest_possible_case[ROUND_ROBIN].png<br /><image width=400 src="simplest_possible_case[ROUND_ROBIN].png" /></td></tr>
<tr><td><image width=400 src="https://media.githubusercontent.com/media/palantir/dialogue/develop/simulation/src/test/resources/slow_503s_then_revert[CONCURRENCY_LIMITER].png" /></td><td>slow_503s_then_revert[CONCURRENCY_LIMITER].png<br /><image width=400 src="slow_503s_then_revert[CONCURRENCY_LIMITER].png" /></td></tr>
<tr><td><image width=400 src="https://media.githubusercontent.com/media/palantir/dialogue/develop/simulation/src/test/resources/slow_503s_then_revert[ROUND_ROBIN].png" /></td><td>slow_503s_then_revert[ROUND_ROBIN].png<br /><image width=400 src="slow_503s_then_revert[ROUND_ROBIN].png" /></td></tr>
<tr><td><image width=400 src="https://media.githubusercontent.com/media/palantir/dialogue/develop/simulation/src/test/resources/slowdown_and_error_thresholds[CONCURRENCY_LIMITER].png" /></td><td>slowdown_and_error_thresholds[CONCURRENCY_LIMITER].png<br /><image width=400 src="slowdown_and_error_thresholds[CONCURRENCY_LIMITER].png" /></td></tr>
<tr><td><image width=400 src="https://media.githubusercontent.com/media/palantir/dialogue/develop/simulation/src/test/resources/slowdown_and_error_thresholds[ROUND_ROBIN].png" /></td><td>slowdown_and_error_thresholds[ROUND_ROBIN].png<br /><image width=400 src="slowdown_and_error_thresholds[ROUND_ROBIN].png" /></td></tr>
</table>

## all_nodes_500[CONCURRENCY_LIMITER].png
<table><tr><th>develop</th><th>current</th></tr>
<tr><td><image width=400 src="https://media.githubusercontent.com/media/palantir/dialogue/develop/simulation/src/test/resources/all_nodes_500[CONCURRENCY_LIMITER].png" /></td><td><image width=400 src="all_nodes_500[CONCURRENCY_LIMITER].png" /></td></tr></table>


## all_nodes_500[ROUND_ROBIN].png
<table><tr><th>develop</th><th>current</th></tr>
<tr><td><image width=400 src="https://media.githubusercontent.com/media/palantir/dialogue/develop/simulation/src/test/resources/all_nodes_500[ROUND_ROBIN].png" /></td><td><image width=400 src="all_nodes_500[ROUND_ROBIN].png" /></td></tr></table>


## black_hole[CONCURRENCY_LIMITER].png
<table><tr><th>develop</th><th>current</th></tr>
<tr><td><image width=400 src="https://media.githubusercontent.com/media/palantir/dialogue/develop/simulation/src/test/resources/black_hole[CONCURRENCY_LIMITER].png" /></td><td><image width=400 src="black_hole[CONCURRENCY_LIMITER].png" /></td></tr></table>


## black_hole[ROUND_ROBIN].png
<table><tr><th>develop</th><th>current</th></tr>
<tr><td><image width=400 src="https://media.githubusercontent.com/media/palantir/dialogue/develop/simulation/src/test/resources/black_hole[ROUND_ROBIN].png" /></td><td><image width=400 src="black_hole[ROUND_ROBIN].png" /></td></tr></table>


## drastic_slowdown[CONCURRENCY_LIMITER].png
<table><tr><th>develop</th><th>current</th></tr>
<tr><td><image width=400 src="https://media.githubusercontent.com/media/palantir/dialogue/develop/simulation/src/test/resources/drastic_slowdown[CONCURRENCY_LIMITER].png" /></td><td><image width=400 src="drastic_slowdown[CONCURRENCY_LIMITER].png" /></td></tr></table>


## drastic_slowdown[ROUND_ROBIN].png
<table><tr><th>develop</th><th>current</th></tr>
<tr><td><image width=400 src="https://media.githubusercontent.com/media/palantir/dialogue/develop/simulation/src/test/resources/drastic_slowdown[ROUND_ROBIN].png" /></td><td><image width=400 src="drastic_slowdown[ROUND_ROBIN].png" /></td></tr></table>


## fast_500s_then_revert[CONCURRENCY_LIMITER].png
<table><tr><th>develop</th><th>current</th></tr>
<tr><td><image width=400 src="https://media.githubusercontent.com/media/palantir/dialogue/develop/simulation/src/test/resources/fast_500s_then_revert[CONCURRENCY_LIMITER].png" /></td><td><image width=400 src="fast_500s_then_revert[CONCURRENCY_LIMITER].png" /></td></tr></table>


## fast_500s_then_revert[ROUND_ROBIN].png
<table><tr><th>develop</th><th>current</th></tr>
<tr><td><image width=400 src="https://media.githubusercontent.com/media/palantir/dialogue/develop/simulation/src/test/resources/fast_500s_then_revert[ROUND_ROBIN].png" /></td><td><image width=400 src="fast_500s_then_revert[ROUND_ROBIN].png" /></td></tr></table>


## live_reloading[CONCURRENCY_LIMITER].png
<table><tr><th>develop</th><th>current</th></tr>
<tr><td><image width=400 src="https://media.githubusercontent.com/media/palantir/dialogue/develop/simulation/src/test/resources/live_reloading[CONCURRENCY_LIMITER].png" /></td><td><image width=400 src="live_reloading[CONCURRENCY_LIMITER].png" /></td></tr></table>


## live_reloading[ROUND_ROBIN].png
<table><tr><th>develop</th><th>current</th></tr>
<tr><td><image width=400 src="https://media.githubusercontent.com/media/palantir/dialogue/develop/simulation/src/test/resources/live_reloading[ROUND_ROBIN].png" /></td><td><image width=400 src="live_reloading[ROUND_ROBIN].png" /></td></tr></table>


## one_endpoint_dies_on_each_server[CONCURRENCY_LIMITER].png
<table><tr><th>develop</th><th>current</th></tr>
<tr><td><image width=400 src="https://media.githubusercontent.com/media/palantir/dialogue/develop/simulation/src/test/resources/one_endpoint_dies_on_each_server[CONCURRENCY_LIMITER].png" /></td><td><image width=400 src="one_endpoint_dies_on_each_server[CONCURRENCY_LIMITER].png" /></td></tr></table>


## one_endpoint_dies_on_each_server[ROUND_ROBIN].png
<table><tr><th>develop</th><th>current</th></tr>
<tr><td><image width=400 src="https://media.githubusercontent.com/media/palantir/dialogue/develop/simulation/src/test/resources/one_endpoint_dies_on_each_server[ROUND_ROBIN].png" /></td><td><image width=400 src="one_endpoint_dies_on_each_server[ROUND_ROBIN].png" /></td></tr></table>


## simplest_possible_case[CONCURRENCY_LIMITER].png
<table><tr><th>develop</th><th>current</th></tr>
<tr><td><image width=400 src="https://media.githubusercontent.com/media/palantir/dialogue/develop/simulation/src/test/resources/simplest_possible_case[CONCURRENCY_LIMITER].png" /></td><td><image width=400 src="simplest_possible_case[CONCURRENCY_LIMITER].png" /></td></tr></table>


## simplest_possible_case[ROUND_ROBIN].png
<table><tr><th>develop</th><th>current</th></tr>
<tr><td><image width=400 src="https://media.githubusercontent.com/media/palantir/dialogue/develop/simulation/src/test/resources/simplest_possible_case[ROUND_ROBIN].png" /></td><td><image width=400 src="simplest_possible_case[ROUND_ROBIN].png" /></td></tr></table>


## slow_503s_then_revert[CONCURRENCY_LIMITER].png
<table><tr><th>develop</th><th>current</th></tr>
<tr><td><image width=400 src="https://media.githubusercontent.com/media/palantir/dialogue/develop/simulation/src/test/resources/slow_503s_then_revert[CONCURRENCY_LIMITER].png" /></td><td><image width=400 src="slow_503s_then_revert[CONCURRENCY_LIMITER].png" /></td></tr></table>


## slow_503s_then_revert[ROUND_ROBIN].png
<table><tr><th>develop</th><th>current</th></tr>
<tr><td><image width=400 src="https://media.githubusercontent.com/media/palantir/dialogue/develop/simulation/src/test/resources/slow_503s_then_revert[ROUND_ROBIN].png" /></td><td><image width=400 src="slow_503s_then_revert[ROUND_ROBIN].png" /></td></tr></table>


## slowdown_and_error_thresholds[CONCURRENCY_LIMITER].png
<table><tr><th>develop</th><th>current</th></tr>
<tr><td><image width=400 src="https://media.githubusercontent.com/media/palantir/dialogue/develop/simulation/src/test/resources/slowdown_and_error_thresholds[CONCURRENCY_LIMITER].png" /></td><td><image width=400 src="slowdown_and_error_thresholds[CONCURRENCY_LIMITER].png" /></td></tr></table>


## slowdown_and_error_thresholds[ROUND_ROBIN].png
<table><tr><th>develop</th><th>current</th></tr>
<tr><td><image width=400 src="https://media.githubusercontent.com/media/palantir/dialogue/develop/simulation/src/test/resources/slowdown_and_error_thresholds[ROUND_ROBIN].png" /></td><td><image width=400 src="slowdown_and_error_thresholds[ROUND_ROBIN].png" /></td></tr></table>


0 comments on commit 28fdcd2

Please sign in to comment.