Skip to content

Commit 412f8ea

Browse files
committed
Squashed commit of the following:
commit 93cd14b Author: Jeromy Cannon <[email protected]> Date: Thu Sep 12 19:37:48 2024 +0100 k8 copyFrom cleanup Signed-off-by: Jeromy Cannon <[email protected]> commit e661e29 Author: Jeromy Cannon <[email protected]> Date: Thu Sep 12 19:01:52 2024 +0100 enhanced k8 copyFrom and its testCase Signed-off-by: Jeromy Cannon <[email protected]> commit 93b6a6f Author: Jeromy Cannon <[email protected]> Date: Thu Sep 12 18:12:55 2024 +0100 enhance k8 copyto copyfrom test Signed-off-by: Jeromy Cannon <[email protected]> commit 74bcc12 Author: Jeromy Cannon <[email protected]> Date: Thu Sep 12 18:11:52 2024 +0100 moved location of k8 con.on error Signed-off-by: Jeromy Cannon <[email protected]> commit 9f95021 Author: Jeromy Cannon <[email protected]> Date: Thu Sep 12 19:02:26 2024 +0100 added sleep to give time for fullstack-setup to deploy Signed-off-by: Jeromy Cannon <[email protected]> commit 2b4b72b Author: Jeromy Cannon <[email protected]> Date: Thu Sep 12 17:35:17 2024 +0100 updated test case Signed-off-by: Jeromy Cannon <[email protected]> commit 9ea29bc Author: Jeromy Cannon <[email protected]> Date: Thu Sep 12 14:20:05 2024 +0100 no using async in a callback Signed-off-by: Jeromy Cannon <[email protected]> commit 98ddc38 Author: Jeromy Cannon <[email protected]> Date: Thu Sep 12 11:52:14 2024 +0100 another attempt to fix copyFrom Signed-off-by: Jeromy Cannon <[email protected]> commit c3934c0 Author: Jeromy Cannon <[email protected]> Date: Thu Sep 12 11:21:44 2024 +0100 lint Signed-off-by: Jeromy Cannon <[email protected]> commit 860e4b5 Author: Jeromy Cannon <[email protected]> Date: Thu Sep 12 09:36:06 2024 +0100 added drain pause/resume Signed-off-by: Jeromy Cannon <[email protected]> commit 6b7459c Author: Jeromy Cannon <[email protected]> Date: Thu Sep 12 08:41:51 2024 +0100 fixed bug due to class type change Signed-off-by: Jeromy Cannon <[email protected]> commit ecdb808 Author: Jeromy Cannon <[email protected]> Date: Thu Sep 12 07:35:08 2024 +0100 added more error handling and logging, part 2 Signed-off-by: Jeromy Cannon <[email protected]> commit f30d803 Author: Jeromy Cannon <[email protected]> Date: Thu Sep 12 07:31:02 2024 +0100 added more error handling and logging Signed-off-by: Jeromy Cannon <[email protected]> commit 48711f1 Author: Jeromy Cannon <[email protected]> Date: Thu Sep 12 07:11:37 2024 +0100 add pipe to copyFrom Signed-off-by: Jeromy Cannon <[email protected]> commit 5c7fb6b Author: Jeromy Cannon <[email protected]> Date: Wed Sep 11 23:20:53 2024 +0100 more logging for copyFrom Signed-off-by: Jeromy Cannon <[email protected]> commit 2547171 Author: Jeromy Cannon <[email protected]> Date: Wed Sep 11 22:31:52 2024 +0100 add additional logging in error message to help determine why it fails Signed-off-by: Jeromy Cannon <[email protected]> commit 11571f3 Author: Jeromy Cannon <[email protected]> Date: Wed Sep 11 22:00:03 2024 +0100 fix bug in copyFrom Signed-off-by: Jeromy Cannon <[email protected]> commit dde3add Author: Jeromy Cannon <[email protected]> Date: Wed Sep 11 21:59:06 2024 +0100 fix bug in copyFrom Signed-off-by: Jeromy Cannon <[email protected]> commit dd690d6 Author: Jeromy Cannon <[email protected]> Date: Wed Sep 11 21:26:32 2024 +0100 remove tar from copyFrom Signed-off-by: Jeromy Cannon <[email protected]> commit 8b33c4e Author: Jeromy Cannon <[email protected]> Date: Wed Sep 11 20:49:15 2024 +0100 run autogen tool Signed-off-by: Jeromy Cannon <[email protected]> commit 273900d Author: Jeromy Cannon <[email protected]> Date: Wed Sep 11 20:43:31 2024 +0100 add autogen tool Signed-off-by: Jeromy Cannon <[email protected]> Signed-off-by: Jeromy Cannon <[email protected]>
1 parent 874549a commit 412f8ea

22 files changed

+2161
-144
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
env:
2+
browser: true
3+
es2021: true
4+
extends: standard
5+
parserOptions:
6+
ecmaVersion: latest
7+
sourceType: module
8+
overrides:
9+
- files: ["*.mjs"]
10+
parserOptions:
11+
ecmaVersion: latest
12+
sourceType: module
13+
rules:
14+
"no-template-curly-in-string": "off"

.github/workflows/autogen/README.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Solo autogen tool
2+
3+
## Description
4+
5+
The Solo autogen tool is used to add e2e test cases that need to be ran independently as their own job into the GitHub workflows and into the solo package.json
6+
7+
## Usage
8+
9+
from solo root directory:
10+
```bash
11+
cd .github/workflows/autogen
12+
npm install
13+
npm run autogen
14+
```
15+
16+
Use git to detect file changes and validate that they are correct.
17+
18+
The templates need to be maintained, you can either make changes directly to the templates and then run the tool, or make changes in both the workflow yaml files and the templates. Should the templates fall out of sync, then you can update the templates so that when autogen runs again, the git diff will better match.
19+
```bash
20+
template.flow-build-application.yaml
21+
template.flow-pull-request-checks.yaml
22+
template.zxc-code-analysis.yaml
23+
template.zxc-env-vars.yaml
24+
```
25+
For new e2e test jobs update the `<solo-root>/.github/workflows/templates/config.yaml`, adding a new item to the tests object with a name and jestPostfix attribute.
26+
27+
NOTE: IntelliJ copy/paste will alter the escape sequences, you might have to manually type it in, clone a line, or use an external text editor.
28+
29+
e.g.:
30+
```yaml
31+
- name: Mirror Node
32+
jestPostfix: --testRegex=\".*\\/e2e\\/commands\\/mirror_node\\.test\\.mjs\"
33+
34+
```
35+
36+
## Development
37+
38+
To run lint fix:
39+
```bash
40+
cd .github/workflows/autogen
41+
eslint --fix .
42+
```

.github/workflows/autogen/autogen.mjs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/usr/bin/env node
2+
/**
3+
* Copyright (C) 2024 Hedera Hashgraph, LLC
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the ""License"");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an ""AS IS"" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*
17+
*/
18+
import * as fnm from './src/index.mjs'
19+
20+
fnm.main(process.argv)

0 commit comments

Comments
 (0)