remove unnecessary %

This commit is contained in:
jpaul 2023-11-14 16:52:10 +01:00
parent 0598cd6a2c
commit d0de3476cf
3 changed files with 31 additions and 24 deletions

18
dist/cleanup/index.js generated vendored
View File

@ -74505,6 +74505,8 @@ function createPRComparison(dataRecent, dataBase) {
detailsBase.code_area.bytes - detailsBase.code_area.bytes -
detailsBase.image_heap.bytes - detailsBase.image_heap.bytes -
debugInfoBytesBase; debugInfoBytesBase;
const baseBranch = process.env.GITHUB_BASE_REF;
const recentBranch = process.env.GITHUB_HEAD_REF;
return `## GraalVM Native Image PR comparison return `## GraalVM Native Image PR comparison
#### Image Details #### Image Details
@ -74513,24 +74515,24 @@ function createPRComparison(dataRecent, dataBase) {
<thead> <thead>
<tr> <tr>
<th align="left">Category</th> <th align="left">Category</th>
<th align="right">Recent Branch</th> <th align="right">Recent ${recentBranch}</th>
<th align="right">Base Branch</th> <th align="right">Branch ${baseBranch}</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr> <tr>
<td align="left"><a href="${DOCS_BASE}#glossary-code-area" target="_blank">Code area</a></td> <td align="left"><a href="${DOCS_BASE}#glossary-code-area" target="_blank">Code area</a></td>
<td align="right">${bytesToHuman(detailsRecent.code_area.bytes)} (${toPercent(detailsRecent.code_area.bytes, detailsRecent.total_bytes)}%)</td> <td align="right">${bytesToHuman(detailsRecent.code_area.bytes)} (${toPercent(detailsRecent.code_area.bytes, detailsRecent.total_bytes)})</td>
<td align="right">${bytesToHuman(detailsBase.code_area.bytes)} (${toPercent(detailsBase.code_area.bytes, detailsBase.total_bytes)}%)</td> <td align="right">${bytesToHuman(detailsBase.code_area.bytes)} (${toPercent(detailsBase.code_area.bytes, detailsBase.total_bytes)})</td>
</tr> </tr>
<tr> <tr>
<td align="left"><a href="${DOCS_BASE}#glossary-image-heap" target="_blank">Image heap</a></td> <td align="left"><a href="${DOCS_BASE}#glossary-image-heap" target="_blank">Image heap</a></td>
<td align="right">${bytesToHuman(detailsRecent.image_heap.bytes)} (${toPercent(detailsRecent.image_heap.bytes, detailsRecent.total_bytes)}%)</td> <td align="right">${bytesToHuman(detailsRecent.image_heap.bytes)} (${toPercent(detailsRecent.image_heap.bytes, detailsRecent.total_bytes)})</td>
<td align="right">${bytesToHuman(detailsBase.image_heap.bytes)} (${toPercent(detailsBase.image_heap.bytes, detailsBase.total_bytes)}%)</td> <td align="right">${bytesToHuman(detailsBase.image_heap.bytes)} (${toPercent(detailsBase.image_heap.bytes, detailsBase.total_bytes)})</td>
<tr> <tr>
<td align="left"><a href="${DOCS_BASE}#glossary-other-data" target="_blank">Other data</a></td> <td align="left"><a href="${DOCS_BASE}#glossary-other-data" target="_blank">Other data</a></td>
<td align="right">${bytesToHuman(otherBytesRecent)} (${toPercent(otherBytesRecent, detailsRecent.total_bytes)}%)</td> <td align="right">${bytesToHuman(otherBytesRecent)} (${toPercent(otherBytesRecent, detailsRecent.total_bytes)})</td>
<td align="right">${bytesToHuman(otherBytesBase)} (${toPercent(otherBytesBase, detailsBase.total_bytes)}%)</td> <td align="right">${bytesToHuman(otherBytesBase)} (${toPercent(otherBytesBase, detailsBase.total_bytes)})</td>
</tr> </tr>
<tr> <tr>
<td align="left">Total</td> <td align="left">Total</td>

18
dist/main/index.js generated vendored
View File

@ -74604,6 +74604,8 @@ function createPRComparison(dataRecent, dataBase) {
detailsBase.code_area.bytes - detailsBase.code_area.bytes -
detailsBase.image_heap.bytes - detailsBase.image_heap.bytes -
debugInfoBytesBase; debugInfoBytesBase;
const baseBranch = process.env.GITHUB_BASE_REF;
const recentBranch = process.env.GITHUB_HEAD_REF;
return `## GraalVM Native Image PR comparison return `## GraalVM Native Image PR comparison
#### Image Details #### Image Details
@ -74612,24 +74614,24 @@ function createPRComparison(dataRecent, dataBase) {
<thead> <thead>
<tr> <tr>
<th align="left">Category</th> <th align="left">Category</th>
<th align="right">Recent Branch</th> <th align="right">Recent ${recentBranch}</th>
<th align="right">Base Branch</th> <th align="right">Branch ${baseBranch}</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr> <tr>
<td align="left"><a href="${DOCS_BASE}#glossary-code-area" target="_blank">Code area</a></td> <td align="left"><a href="${DOCS_BASE}#glossary-code-area" target="_blank">Code area</a></td>
<td align="right">${bytesToHuman(detailsRecent.code_area.bytes)} (${toPercent(detailsRecent.code_area.bytes, detailsRecent.total_bytes)}%)</td> <td align="right">${bytesToHuman(detailsRecent.code_area.bytes)} (${toPercent(detailsRecent.code_area.bytes, detailsRecent.total_bytes)})</td>
<td align="right">${bytesToHuman(detailsBase.code_area.bytes)} (${toPercent(detailsBase.code_area.bytes, detailsBase.total_bytes)}%)</td> <td align="right">${bytesToHuman(detailsBase.code_area.bytes)} (${toPercent(detailsBase.code_area.bytes, detailsBase.total_bytes)})</td>
</tr> </tr>
<tr> <tr>
<td align="left"><a href="${DOCS_BASE}#glossary-image-heap" target="_blank">Image heap</a></td> <td align="left"><a href="${DOCS_BASE}#glossary-image-heap" target="_blank">Image heap</a></td>
<td align="right">${bytesToHuman(detailsRecent.image_heap.bytes)} (${toPercent(detailsRecent.image_heap.bytes, detailsRecent.total_bytes)}%)</td> <td align="right">${bytesToHuman(detailsRecent.image_heap.bytes)} (${toPercent(detailsRecent.image_heap.bytes, detailsRecent.total_bytes)})</td>
<td align="right">${bytesToHuman(detailsBase.image_heap.bytes)} (${toPercent(detailsBase.image_heap.bytes, detailsBase.total_bytes)}%)</td> <td align="right">${bytesToHuman(detailsBase.image_heap.bytes)} (${toPercent(detailsBase.image_heap.bytes, detailsBase.total_bytes)})</td>
<tr> <tr>
<td align="left"><a href="${DOCS_BASE}#glossary-other-data" target="_blank">Other data</a></td> <td align="left"><a href="${DOCS_BASE}#glossary-other-data" target="_blank">Other data</a></td>
<td align="right">${bytesToHuman(otherBytesRecent)} (${toPercent(otherBytesRecent, detailsRecent.total_bytes)}%)</td> <td align="right">${bytesToHuman(otherBytesRecent)} (${toPercent(otherBytesRecent, detailsRecent.total_bytes)})</td>
<td align="right">${bytesToHuman(otherBytesBase)} (${toPercent(otherBytesBase, detailsBase.total_bytes)}%)</td> <td align="right">${bytesToHuman(otherBytesBase)} (${toPercent(otherBytesBase, detailsBase.total_bytes)})</td>
</tr> </tr>
<tr> <tr>
<td align="left">Total</td> <td align="left">Total</td>

View File

@ -197,6 +197,9 @@ function createPRComparison(dataRecent: BuildOutput, dataBase: BuildOutput): str
detailsBase.image_heap.bytes - detailsBase.image_heap.bytes -
debugInfoBytesBase debugInfoBytesBase
const baseBranch = process.env.GITHUB_BASE_REF
const recentBranch = process.env.GITHUB_HEAD_REF
return `## GraalVM Native Image PR comparison return `## GraalVM Native Image PR comparison
#### Image Details #### Image Details
@ -205,24 +208,24 @@ function createPRComparison(dataRecent: BuildOutput, dataBase: BuildOutput): str
<thead> <thead>
<tr> <tr>
<th align="left">Category</th> <th align="left">Category</th>
<th align="right">Recent Branch</th> <th align="right">Recent ${recentBranch}</th>
<th align="right">Base Branch</th> <th align="right">Branch ${baseBranch}</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr> <tr>
<td align="left"><a href="${DOCS_BASE}#glossary-code-area" target="_blank">Code area</a></td> <td align="left"><a href="${DOCS_BASE}#glossary-code-area" target="_blank">Code area</a></td>
<td align="right">${bytesToHuman(detailsRecent.code_area.bytes)} (${toPercent(detailsRecent.code_area.bytes, detailsRecent.total_bytes)}%)</td> <td align="right">${bytesToHuman(detailsRecent.code_area.bytes)} (${toPercent(detailsRecent.code_area.bytes, detailsRecent.total_bytes)})</td>
<td align="right">${bytesToHuman(detailsBase.code_area.bytes)} (${toPercent(detailsBase.code_area.bytes, detailsBase.total_bytes)}%)</td> <td align="right">${bytesToHuman(detailsBase.code_area.bytes)} (${toPercent(detailsBase.code_area.bytes, detailsBase.total_bytes)})</td>
</tr> </tr>
<tr> <tr>
<td align="left"><a href="${DOCS_BASE}#glossary-image-heap" target="_blank">Image heap</a></td> <td align="left"><a href="${DOCS_BASE}#glossary-image-heap" target="_blank">Image heap</a></td>
<td align="right">${bytesToHuman(detailsRecent.image_heap.bytes)} (${toPercent(detailsRecent.image_heap.bytes, detailsRecent.total_bytes)}%)</td> <td align="right">${bytesToHuman(detailsRecent.image_heap.bytes)} (${toPercent(detailsRecent.image_heap.bytes, detailsRecent.total_bytes)})</td>
<td align="right">${bytesToHuman(detailsBase.image_heap.bytes)} (${toPercent(detailsBase.image_heap.bytes, detailsBase.total_bytes)}%)</td> <td align="right">${bytesToHuman(detailsBase.image_heap.bytes)} (${toPercent(detailsBase.image_heap.bytes, detailsBase.total_bytes)})</td>
<tr> <tr>
<td align="left"><a href="${DOCS_BASE}#glossary-other-data" target="_blank">Other data</a></td> <td align="left"><a href="${DOCS_BASE}#glossary-other-data" target="_blank">Other data</a></td>
<td align="right">${bytesToHuman(otherBytesRecent)} (${toPercent(otherBytesRecent, detailsRecent.total_bytes)}%)</td> <td align="right">${bytesToHuman(otherBytesRecent)} (${toPercent(otherBytesRecent, detailsRecent.total_bytes)})</td>
<td align="right">${bytesToHuman(otherBytesBase)} (${toPercent(otherBytesBase, detailsBase.total_bytes)}%)</td> <td align="right">${bytesToHuman(otherBytesBase)} (${toPercent(otherBytesBase, detailsBase.total_bytes)})</td>
</tr> </tr>
<tr> <tr>
<td align="left">Total</td> <td align="left">Total</td>