You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(fill): insist fill's output directory is empty or doesn't exist (#1608)
* tests(gentest): don't use default output fixture directory in unit test
* feat(fill): refuse to fill to a non-empty output directory; add clean
* test(fill): add tests for fixture output dir args/`FixtureOutput`
* chore(tox): use a dedicated dir in /tmp and --clean when filling tests
* docs: update changelog
* Apply suggestions from code review
---------
Co-authored-by: Mario Vega <marioevz@gmail.com>
Copy file name to clipboardExpand all lines: docs/CHANGELOG.md
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -8,12 +8,20 @@ Test fixtures for use by clients are available for each release on the [Github r
8
8
9
9
### 💥 Breaking Change
10
10
11
+
### 💥 Important Change for `fill` Users
12
+
13
+
The output behavior of `fill` has changed ([#1608](https://github.com/ethereum/execution-spec-tests/pull/1608)):
14
+
15
+
- Before: `fill` wrote fixtures into the directory specified by the `--output` flag (default: `fixtures`). This could have many unintended consequences, including unexpected errors if old or invalid fixtures existed in the directory (for details see [#1030](https://github.com/ethereum/execution-spec-tests/issues/1030)).
16
+
- Now: `fill` will exit without filling any tests if the specified directory exists and is not-empty. This may be overridden by adding the `--clean` flag, which will first remove the specified directory.
17
+
11
18
### 🛠️ Framework
12
19
13
20
#### `fill`
14
21
15
22
- 🔀 Refactor: Encapsulate `fill`'s fixture output options (`--output`, `--flat-output`, `--single-fixture-per-file`) into a `FixtureOutput` class ([#1471](https://github.com/ethereum/execution-spec-tests/pull/1471)).
16
23
- ✨ Don't warn about a "high Transaction gas_limit" for `zkevm` tests ([#1598](https://github.com/ethereum/execution-spec-tests/pull/1598)).
24
+
- 🐞 `fill` no longer writes generated fixtures into an existing, non-empty output directory; it must now be empty or `--clean` must be used to delete it first ([#1608](https://github.com/ethereum/execution-spec-tests/pull/1608)).
0 commit comments