feat: add started time information to summary #428
Annotations
10 errors, 1 warning, and 10 notices
Node.js
Bad credentials - https://docs.github.com/rest
|
tests/action.test.ts > Integration tests - action.ts > Minimal:
tests/action.test.ts#L144
AssertionError: expected '<h1>Testing Farm as a GitHub Action s…' to deeply equal '<h1>Testing Farm as a GitHub Action s…'
- Expected
+ Received
<h1>Testing Farm as a GitHub Action summary</h1>
- <table><tr><th>name</th><th>compose</th><th>arch</th><th>status</th><th>started</th><th>time</th><th>logs</th></tr><tr><td>Fedora</td><td>Fedora-latest</td><td>x86_64</td><td>✅ passed</td><td>2.7.2021 16:15:22</td><td>1h 1min 31s</td><td><a href="https://artifacts.dev.testing-farm.io/1">test</a> <a href="https://artifacts.dev.testing-farm.io/1/pipeline.log">pipeline</a></td></tr></table>
+ <table><tr><th>name</th><th>compose</th><th>arch</th><th>status</th><th>started</th><th>time</th><th>logs</th></tr><tr><td>Fedora</td><td>Fedora-latest</td><td>x86_64</td><td>✅ passed</td><td>2.7.2021 14:15:22</td><td>1h 1min 31s</td><td><a href="https://artifacts.dev.testing-farm.io/1">test</a> <a href="https://artifacts.dev.testing-farm.io/1/pipeline.log">pipeline</a></td></tr></table>
❯ assertSummary tests/action.test.ts:144:16
❯ tests/action.test.ts:300:5
|
tests/action.test.ts > Integration tests - action.ts > Hardware test:
tests/action.test.ts#L144
AssertionError: expected '<h1>Testing Farm as a GitHub Action s…' to deeply equal '<h1>Testing Farm as a GitHub Action s…'
- Expected
+ Received
<h1>Testing Farm as a GitHub Action summary</h1>
- <table><tr><th>name</th><th>compose</th><th>arch</th><th>status</th><th>started</th><th>time</th><th>logs</th></tr><tr><td>Fedora</td><td>Fedora-latest</td><td>x86_64</td><td>✅ passed</td><td>2.7.2021 16:15:22</td><td>1h 1min 31s</td><td><a href="https://artifacts.dev.testing-farm.io/1">test</a> <a href="https://artifacts.dev.testing-farm.io/1/pipeline.log">pipeline</a></td></tr></table>
+ <table><tr><th>name</th><th>compose</th><th>arch</th><th>status</th><th>started</th><th>time</th><th>logs</th></tr><tr><td>Fedora</td><td>Fedora-latest</td><td>x86_64</td><td>✅ passed</td><td>2.7.2021 14:15:22</td><td>1h 1min 31s</td><td><a href="https://artifacts.dev.testing-farm.io/1">test</a> <a href="https://artifacts.dev.testing-farm.io/1/pipeline.log">pipeline</a></td></tr></table>
❯ assertSummary tests/action.test.ts:144:16
❯ tests/action.test.ts:404:5
|
tests/action.test.ts > Integration tests - action.ts > Pipeline settings test:
tests/action.test.ts#L144
AssertionError: expected '<h1>Testing Farm as a GitHub Action s…' to deeply equal '<h1>Testing Farm as a GitHub Action s…'
- Expected
+ Received
<h1>Testing Farm as a GitHub Action summary</h1>
- <table><tr><th>name</th><th>compose</th><th>arch</th><th>status</th><th>started</th><th>time</th><th>logs</th></tr><tr><td>Fedora</td><td>Fedora-latest</td><td>x86_64</td><td>✅ passed</td><td>2.7.2021 16:15:22</td><td>1h 1min 31s</td><td><a href="https://artifacts.dev.testing-farm.io/1">test</a> <a href="https://artifacts.dev.testing-farm.io/1/pipeline.log">pipeline</a></td></tr></table>
+ <table><tr><th>name</th><th>compose</th><th>arch</th><th>status</th><th>started</th><th>time</th><th>logs</th></tr><tr><td>Fedora</td><td>Fedora-latest</td><td>x86_64</td><td>✅ passed</td><td>2.7.2021 14:15:22</td><td>1h 1min 31s</td><td><a href="https://artifacts.dev.testing-farm.io/1">test</a> <a href="https://artifacts.dev.testing-farm.io/1/pipeline.log">pipeline</a></td></tr></table>
❯ assertSummary tests/action.test.ts:144:16
❯ tests/action.test.ts:506:5
|
tests/action.test.ts > Integration tests - action.ts > Failed test:
tests/action.test.ts#L144
AssertionError: expected '<h1>Testing Farm as a GitHub Action s…' to deeply equal '<h1>Testing Farm as a GitHub Action s…'
- Expected
+ Received
<h1>Testing Farm as a GitHub Action summary</h1>
- <table><tr><th>name</th><th>compose</th><th>arch</th><th>status</th><th>started</th><th>time</th><th>logs</th></tr><tr><td>Fedora</td><td>Fedora-latest</td><td>x86_64</td><td>❌ error</td><td>2.7.2021 16:15:22</td><td>1h 1min 31s</td><td><a href="https://artifacts.dev.testing-farm.io/1">test</a> <a href="https://artifacts.dev.testing-farm.io/1/pipeline.log">pipeline</a></td></tr></table>
+ <table><tr><th>name</th><th>compose</th><th>arch</th><th>status</th><th>started</th><th>time</th><th>logs</th></tr><tr><td>Fedora</td><td>Fedora-latest</td><td>x86_64</td><td>❌ error</td><td>2.7.2021 14:15:22</td><td>1h 1min 31s</td><td><a href="https://artifacts.dev.testing-farm.io/1">test</a> <a href="https://artifacts.dev.testing-farm.io/1/pipeline.log">pipeline</a></td></tr></table>
❯ assertSummary tests/action.test.ts:144:16
❯ tests/action.test.ts:794:5
|
tests/action.test.ts > Integration tests - action.ts > Testing Farm infrastructure error:
tests/action.test.ts#L144
AssertionError: expected '<h1>Testing Farm as a GitHub Action s…' to deeply equal '<h1>Testing Farm as a GitHub Action s…'
- Expected
+ Received
<h1>Testing Farm as a GitHub Action summary</h1>
- <table><tr><th>name</th><th>compose</th><th>arch</th><th>status</th><th>started</th><th>time</th><th>logs</th></tr><tr><td>Fedora</td><td>Fedora-latest</td><td>x86_64</td><td>⛔ infra error</td><td>2.7.2021 16:15:22</td><td>1h 1min 31s</td><td><a href="https://artifacts.dev.testing-farm.io/1">test</a> <a href="https://artifacts.dev.testing-farm.io/1/pipeline.log">pipeline</a></td></tr></table>
+ <table><tr><th>name</th><th>compose</th><th>arch</th><th>status</th><th>started</th><th>time</th><th>logs</th></tr><tr><td>Fedora</td><td>Fedora-latest</td><td>x86_64</td><td>⛔ infra error</td><td>2.7.2021 14:15:22</td><td>1h 1min 31s</td><td><a href="https://artifacts.dev.testing-farm.io/1">test</a> <a href="https://artifacts.dev.testing-farm.io/1/pipeline.log">pipeline</a></td></tr></table>
❯ assertSummary tests/action.test.ts:144:16
❯ tests/action.test.ts:916:5
|
tests/action.test.ts > Integration tests - action.ts > Testing Farm private scope:
tests/action.test.ts#L144
AssertionError: expected '<h1>Testing Farm as a GitHub Action s…' to deeply equal '<h1>Testing Farm as a GitHub Action s…'
- Expected
+ Received
<h1>Testing Farm as a GitHub Action summary</h1>
- <table><tr><th>name</th><th>compose</th><th>arch</th><th>status</th><th>started</th><th>time</th><th>logs</th></tr><tr><td>Fedora</td><td>Fedora-latest</td><td>x86_64</td><td>✅ passed</td><td>2.7.2021 16:15:22</td><td>1h 1min 31s</td><td><a href="https://artifacts.osci.redhat.com/testing-farm/1">test</a> <a href="https://artifacts.osci.redhat.com/testing-farm/1/pipeline.log">pipeline</a></td></tr></table>
+ <table><tr><th>name</th><th>compose</th><th>arch</th><th>status</th><th>started</th><th>time</th><th>logs</th></tr><tr><td>Fedora</td><td>Fedora-latest</td><td>x86_64</td><td>✅ passed</td><td>2.7.2021 14:15:22</td><td>1h 1min 31s</td><td><a href="https://artifacts.osci.redhat.com/testing-farm/1">test</a> <a href="https://artifacts.osci.redhat.com/testing-farm/1/pipeline.log">pipeline</a></td></tr></table>
❯ assertSummary tests/action.test.ts:144:16
❯ tests/action.test.ts:1136:5
|
tests/action.test.ts > Integration tests - action.ts > Pull Request comment with results:
tests/action.test.ts#L1240
AssertionError: expected "spy" to be called with arguments: [ …(2) ]
Received:
1st spy call:
Array [
- "POST /repos/{owner}/{repo}/issues/{issue_number}/comments",
+ "POST /repos/{owner}/{repo}/statuses/{sha}",
Object {
- "body": "### Testing Farm results
- <table><tr><th>name</th><th>compose</th><th>arch</th><th>status</th><th>started</th><th>time</th><th>logs</th></tr><tr><td>Fedora</td><td>Fedora-latest</td><td>x86_64</td><td>✅ passed</td><td>2.7.2021 16:15:22</td><td>1h 1min 31s</td><td><a href=\"https://artifacts.dev.testing-farm.io/1\">test</a> <a href=\"https://artifacts.dev.testing-farm.io/1/pipeline.log\">pipeline</a></td></tr></table>
- ",
- "issue_number": 1,
+ "context": "Testing Farm - Fedora",
+ "description": "Build started",
"owner": "sclorg",
"repo": "testing-farm-as-github-action",
+ "sha": "d20d0c37d634a5303fa1e02edc9ea281897ba01a",
+ "state": "pending",
+ "target_url": "https://artifacts.dev.testing-farm.io/1",
},
]
2nd spy call:
Array [
- "POST /repos/{owner}/{repo}/issues/{issue_number}/comments",
+ "POST /repos/{owner}/{repo}/statuses/{sha}",
Object {
- "body": "### Testing Farm results
- <table><tr><th>name</th><th>compose</th><th>arch</th><th>status</th><th>started</th><th>time</th><th>logs</th></tr><tr><td>Fedora</td><td>Fedora-latest</td><td>x86_64</td><td>✅ passed</td><td>2.7.2021 16:15:22</td><td>1h 1min 31s</td><td><a href=\"https://artifacts.dev.testing-farm.io/1\">test</a> <a href=\"https://artifacts.dev.testing-farm.io/1/pipeline.log\">pipeline</a></td></tr></table>
- ",
- "issue_number": 1,
+ "context": "Testing Farm - Fedora",
+ "description": "Build finished - \\o/",
"owner": "sclorg",
"repo": "testing-farm-as-github-action",
+ "sha": "d20d0c37d634a5303fa1e02edc9ea281897ba01a",
+ "state": "success",
+ "target_url": "https://artifacts.dev.testing-farm.io/1",
},
]
3rd spy call:
Array [
"POST /repos/{owner}/{repo}/issues/{issue_number}/comments",
Object {
"body": "### Testing Farm results
- <table><tr><th>name</th><th>compose</th><th>arch</th><th>status</th><th>started</th><th>time</th><th>logs</th></tr><tr><td>Fedora</td><td>Fedora-latest</td><td>x86_64</td><td>✅ passed</td><td>2.7.2021 16:15:22</td><td>1h 1min 31s</td><td><a href=\"https://artifacts.dev.testing-farm.io/1\">test</a> <a href=\"https://artifacts.dev.testing-farm.io/1/pipeline.log\">pipeline</a></td></tr></table>
+ <table><tr><th>name</th><th>compose</th><th>arch</th><th>status</th><th>started</th><th>time</th><th>logs</th></tr><tr><td>Fedora</td><td>Fedora-latest</td><td>x86_64</td><td>✅ passed</td><td>2.7.2021 14:15:22</td><td>1h 1min 31s</td><td><a href=\"https://artifacts.dev.testing-farm.io/1\">test</a> <a href=\"https://artifacts.dev.testing-farm.io/1/pipeline.log\">pipeline</a></td></tr></table>
",
"issue_number": 1,
"owner": "sclorg",
"repo": "testing-farm-as-github-action",
},
]
Number of calls: 3
❯ tests/action.test.ts:1240:27
|
tests/action.test.ts > Integration tests - action.ts > Running in non pull_request like context:
tests/action.test.ts#L144
AssertionError: expected '<h1>Testing Farm as a GitHub Action s…' to deeply equal '<h1>Testing Farm as a GitHub Action s…'
- Expected
+ Received
<h1>Testing Farm as a GitHub Action summary</h1>
- <table><tr><th>name</th><th>compose</th><th>arch</th><th>status</th><th>started</th><th>time</th><th>logs</th></tr><tr><td>Fedora</td><td>Fedora-latest</td><td>x86_64</td><td>✅ passed</td><td>2.7.2021 16:15:22</td><td>1h 1min 31s</td><td><a href="https://artifacts.dev.testing-farm.io/1">test</a> <a href="https://artifacts.dev.testing-farm.io/1/pipeline.log">pipeline</a></td></tr></table>
+ <table><tr><th>name</th><th>compose</th><th>arch</th><th>status</th><th>started</th><th>time</th><th>logs</th></tr><tr><td>Fedora</td><td>Fedora-latest</td><td>x86_64</td><td>✅ passed</td><td>2.7.2021 14:15:22</td><td>1h 1min 31s</td><td><a href="https://artifacts.dev.testing-farm.io/1">test</a> <a href="https://artifacts.dev.testing-farm.io/1/pipeline.log">pipeline</a></td></tr></table>
❯ assertSummary tests/action.test.ts:144:16
❯ tests/action.test.ts:1368:5
|
tests/unit/summary.test.ts > Summary class > get table row:
tests/unit/summary.test.ts#L321
Error: Snapshot `Summary class > get table row 1` mismatched
- Expected
+ Received
[
"test1",
"Fedora-latest",
"x86_64",
"⏳ pending",
- "6.7.2019 16:15:22",
+ "6.7.2019 14:15:22",
"35s",
"test pipeline",
]
❯ tests/unit/summary.test.ts:321:49
|
Node.js
Pull request statuses are not available in this context
|
Node.js
Job is running for 0.001 seconds
|
Node.js
Cancelling Testing Farm request: 1
|
Node.js
Job is running for 0 seconds
|
Node.js
Cancelling Testing Farm request: 1
|
Node.js
Job is running for 0 seconds
|
Node.js
Testing Farm logs: https://artifacts.dev.testing-farm.io/1
|
Node.js
State is complete and result is: passed
|
Node.js
Final state is: success
|
Node.js
Infra state is: OK
|
Node.js
Testing Farm logs: https://artifacts.dev.testing-farm.io/1
|