Skip to content

Commit

Permalink
chore(docs): remove redirect to landing page & set latest alias to ma…
Browse files Browse the repository at this point in the history
…in (#998)
  • Loading branch information
danceratopz authored Dec 5, 2024
1 parent 2c5c008 commit 7f01630
Show file tree
Hide file tree
Showing 6 changed files with 92 additions and 103 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs_tags.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ jobs:
git config --global user.email github-actions[bot]@users.noreply.github.com
- name: Build and deploy docs to gh-pages
run: |
uv run mike deploy --update-aliases --push --remote origin ${{ github.ref_name }} latest
uv run mike deploy --push --remote origin ${{ github.ref_name }}
16 changes: 8 additions & 8 deletions docs/dev/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,16 @@ The deployed versions of the docs managed via `mike` are kept in the [gh-pages](

### Aliases

We currently use two aliases:
We currently have two aliases (which both point to `main` as of [#998](https://github.com/ethereum/execution-spec-tests/pull/998)):

- [`latest`](https://ethereum.github.io/execution-spec-tests/latest): the latest stable release.
- [`latest`](https://ethereum.github.io/execution-spec-tests/latest): the current state of the main branch.
- [`development`](https://ethereum.github.io/execution-spec-tests/development): the current state of the main branch.

These aliases point to specific versions, as configured below. It's possible to share links containing either of these aliases or to specific versions, i.e, the following are all valid links:

- https://ethereum.github.io/execution-spec-tests/ (redirects to latest/main)
- https://ethereum.github.io/execution-spec-tests/latest (redirects to main)
- https://ethereum.github.io/execution-spec-tests/development (redirects to tagged version)
- https://ethereum.github.io/execution-spec-tests/development (redirects main)
- https://ethereum.github.io/execution-spec-tests/main
- https://ethereum.github.io/execution-spec-tests/v1.0.0

Expand All @@ -65,7 +65,7 @@ These aliases point to specific versions, as configured below. It's possible to
There are two workflows that automatically deploy updated/new versions of the docs:

| Workflow `yaml` File | What | When |
|-----------------_____|------|------|
|----------------------|------|------|
| `docs_main.yaml` | Update "main" version of docs | Push to 'main' branch, (e.g., on PR merge) |
| `docs_tags.yaml` | Deploy new version of docs; tag is used as version name | Upon creating a tag matching `v*` |

Expand All @@ -74,7 +74,7 @@ There are two workflows that automatically deploy updated/new versions of the do
Build a new version and deploy it to remote (this version will then show up in the version selector list):

```console
uv run mike deploy --push v1.2.3
uv run mike deploy -rebase --push v1.2.3
```

!!! note "Local deployment"
Expand All @@ -85,7 +85,7 @@ uv run mike deploy --push v1.2.3
Build, deploy and update the version an alias points to with:

```console
uv run mike deploy --push --update-aliases v1.2.3 latest
uv run mike deploy --rebase --push --update-aliases v1.2.3 latest
```

where `v1.2.3` indicates the version's name and `development` is the alias. This will overwrite the version if it already exists.
Expand All @@ -94,13 +94,13 @@ where `v1.2.3` indicates the version's name and `development` is the alias. This
"main" is just a version name (intended to reflect that it is build from the main branch). However, `mike` will build the docs site from the current local repository state (including local modifications). Therefore, make sure you're on the HEAD of the main branch before executing (unless you know what you're doing :wink:)!

```console
uv run mike deploy --push main
uv run mike deploy --rebase --push main
```

If the alias accidentally go change:

```console
uv run mike deploy --push --update-aliases main development
uv run mike deploy --rebase --push --update-aliases main development
```

### Viewing and Deleting Versions
Expand Down
82 changes: 0 additions & 82 deletions docs/getting_started/overview.md

This file was deleted.

File renamed without changes
93 changes: 82 additions & 11 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,82 @@
<!-- markdownlint-disable MD041 (MD041=first-line-heading) -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0; url=./getting_started/overview/" />
<title>Redirecting...</title>
</head>
<body>
<p>If you are not redirected, <a href="./getting_started/overview/">click here</a>.</p>
</body>
</html>
# Execution Spec Tests

<figure markdown> <!-- markdownlint-disable MD033 (MD033=no-inline-html) -->
![Execution Spec Tests Logo](img/execution_spec_tests.png){width="400"}
</figure>

@ethereum/execution-spec-tests is both a collection of test cases and a framework in Python to generate tests for Ethereum execution clients implemented.

The framework collects and executes the test cases in order to generate _test fixtures_ (JSON) which can be consumed by any execution client to verify their implementation of [ethereum/execution-specs](https://github.com/ethereum/execution-specs). The fixtures, which define state transition and block tests, are generated by the framework using one of the `t8n` command-line tools that are provided by most execution clients, see below for an overview of the supported `t8n` tools.

```mermaid
---
title: Test Fixture Generation with execution-spec-tests
---
flowchart LR
style C stroke:#333,stroke-width:2px
style D stroke:#333,stroke-width:2px
style G stroke:#F9A825,stroke-width:2px
style H stroke:#F9A825,stroke-width:2px
subgraph ethereum/go-ethereum
C[<code>evm t8n</code>\nexternal executable]
end
subgraph ethereum/solidity
D[<code>solc</code>\nexternal executable]
end
subgraph ethereum/EIPs
E(<code>EIPS/EIP-*.md</code>\nSHA digest via Github API)
end
subgraph "ethereum/execution-spec-tests"
A(<code>./tests/**/*.py</code>\nPython Test Cases)
B([<code>$ fill ./tests/</code>\nPython Framework])
end
subgraph Test Fixture Consumers
subgraph ethereum/hive
G([<code>$ hive ...</code>\nGo Test Framework])
end
H([Client executables])
end
C <-.-> B
D <-.-> B
A --> B
E <-.-> |retrieve latest spec version\ncheck tested spec version| B
B -->|output| F(<code>./fixtures/**/*.json</code>\nJSON Test Fixtures)
F -->|input| G
F -->|input| H
```

The generated test fixtures can be used:

1. Directly by client teams' test frameworks, and,
2. In the integration tests executed in the @ethereum/hive framework.

More information on how to use and download the [released test fixtures](https://github.com/ethereum/execution-spec-tests/releases) can be found [here](consuming_tests/index.md).

## Relationship to ethereum/tests

This collection of tests is relatively new (test case development started Q4, 2022) and mainly targets recent and upcoming Ethereum specification changes. It does not replace, but rather complements the existing tests in [ethereum/tests](https://github.com/ethereum/tests).

## Motivation

The motivation to implement test cases in [ethereum/execution-spec-tests](https://github.com/ethereum/execution-spec-tests) is:

1. To implement test cases as code and ensure that changes, due to spec changes, for example, can be easily made. Moreover, changes are easily understandable and available in version control.
2. To avoid the 2-step approach often used in [ethereum/tests](https://github.com/ethereum/tests):
1. Code (often unavailable) -> Test case (YAML).
2. Test case (YAML) -> Fixtures (JSON).

!!! success "Contributing"
Contributions via [PR](https://github.com/ethereum/execution-spec-tests/pulls) are welcome!

!!! bug "Reporting a Vulnerability"

Care is required when adding PRs or issues for functionality that is live on Ethereum mainnet. Please report vulnerabilities and verify bounty eligibility via the [bug bounty program](https://bounty.ethereum.org).

- **Please do not create a PR with a vulnerability visible.**
- **Please do not file a public ticket mentioning the vulnerability.**
2 changes: 1 addition & 1 deletion docs/navigation.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!-- markdownlint-disable MD007 MD041 (MD007=ul-indent MD041=first-line-heading) -->
* [Home](index.md)
* Getting Started
* [Overview](getting_started/overview.md)
* [Installation](getting_started/installation.md)
* [Installation Troubleshooting](getting_started/installation_troubleshooting.md)
* [VS Code Setup](getting_started/setup_vs_code.md)
Expand Down

0 comments on commit 7f01630

Please sign in to comment.