Skip to content

Commit

Permalink
[deserializer] Modify scripts for automation
Browse files Browse the repository at this point in the history
  • Loading branch information
konovalovsergey committed Sep 7, 2023
1 parent 1eecb04 commit a7bb46e
Show file tree
Hide file tree
Showing 6 changed files with 1,703 additions and 448 deletions.
51 changes: 29 additions & 22 deletions build/deserializer/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,40 +6,47 @@

## How to use

* Create any file and put the errors in the file.
* Put files with errors in json format in any `logs-dir`

* If the file contains several different versions, create the appropriate folders in the cache folder.
* Make `unique-file` with unique errors and new-lines

For example
```bash
node parse-json-log-dir.js logs-dir unique-file
```
* Install dependencies for `download-maps.js`

```bash
npm ci
```

* Download Closure Compiler maps into `maps-dir` for version specified in `unique-file`

```bash
node download-maps.js accessKeyId, secretAccessKey unique-file maps-dir
```
* Download Closure Compiler maps into `maps-dir` for version specified in `unique-file`

```bash
node download-maps.js accessKeyId, secretAccessKey unique-file maps-dir
```

maps-dir structure will be

```
cache/
7.2.0-204
sdk-all.props.js.map
77.99.0-175
maps-dir/
7.4.1-36
word.props.js.map
cell.props.js.map
slide.props.js.map
<version>-<build>
<maps>
```

**But if only one version is missing, it can be found automatically in build folder.**

* Run deserializer

```bash
node deserialize.js your-input-file
```

or
* Deserialize `unique-file` call stack into `deserialized-file`

```bash
node deserialize.js opt_input opt_output
node deserialize.js unique-file deserialized-file maps-dir
```

`input.txt` will be used.


* The result of the execution will be in the `output.txt`

* The result will be in the `deserialized-file`

Loading

0 comments on commit a7bb46e

Please sign in to comment.