Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into hm/forest-tool-api-ge…
Browse files Browse the repository at this point in the history
…nerate-test-snapshot
  • Loading branch information
hanabi1224 committed Jan 7, 2025
2 parents 1f2f7ff + 0c6707b commit b4282ce
Show file tree
Hide file tree
Showing 47 changed files with 694 additions and 1,443 deletions.
13 changes: 10 additions & 3 deletions docs/.config/lychee.toml → .config/lychee.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,15 @@

verbose = "debug"
no_progress = true
# Requires CAPTCHA verification
exclude = ["https://faucet.calibnet.chainsafe-fil.io/funds.html"]
timeout = 60
exclude_path = ["./node_modules", "./docs/node_modules", "./documentation", "./target"]
exclude = [
# Avoid Github rate limits
"github.com/ChainSafe/forest",
# Requires CAPTCHA verification
"faucet.calibnet.chainsafe-fil.io/funds.html",
]
timeout = 30
max_retries = 6
retry_wait_time = 10

output = "lychee-report.md"
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,14 @@ updates:
open-pull-requests-limit: 1
schedule:
interval: "weekly"

- package-ecosystem: "npm"
directory: "/docs" # Location of package manifests
open-pull-requests-limit: 1
schedule:
interval: "weekly"
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#groups
groups:
patch-versions:
update-types:
- "patch"
4 changes: 2 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
- name: Checkout Sources
uses: actions/checkout@v4
- name: Setup sccache
uses: mozilla-actions/[email protected].6
uses: mozilla-actions/[email protected].7
timeout-minutes: '${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }}'
continue-on-error: true
- uses: actions/setup-go@v5
Expand Down Expand Up @@ -98,7 +98,7 @@ jobs:
uses: actions/checkout@v4
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')
- name: Setup sccache
uses: mozilla-actions/[email protected].6
uses: mozilla-actions/[email protected].7
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')
timeout-minutes: '${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }}'
continue-on-error: true
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/docs-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@ on:
- main
paths:
- '**.md'
- '/docs'
- '.github/workflows/docs-check.yml'
merge_group:
pull_request:
branches:
- main
paths:
- '**.md'
- '/docs'
- '.github/workflows/docs-check.yml'

jobs:
Expand Down
47 changes: 47 additions & 0 deletions .github/workflows/docs-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Docs Deploy

on:
push:
branches:
- main
paths:
- '/docs'
- '.github/workflows/docs-deploy.yml'
merge_group:
pull_request:
branches:
- main
paths:
- '/docs'
- '.github/workflows/docs-deploy.yml'

permissions:
contents: read
deployments: write
pull-requests: write

jobs:
docs-deploy:
name: Deploy to Cloudflare Pages
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./docs
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "18"
# See https://github.com/actions/setup-node/issues/1027
# cache: yarn
- run: corepack enable
- run: yarn install --frozen-lockfile
- run: yarn run build

- name: Deploy
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_PAGES_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_PAGES_ACCOUNT_ID }}
command: pages deploy ./docs/build --project-name=forest-docs
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
36 changes: 0 additions & 36 deletions .github/workflows/docs.yml

This file was deleted.

8 changes: 4 additions & 4 deletions .github/workflows/forest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
- name: Checkout Sources
uses: actions/checkout@v4
- name: Setup sccache
uses: mozilla-actions/[email protected].6
uses: mozilla-actions/[email protected].7
timeout-minutes: '${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }}'
continue-on-error: true
- uses: actions/setup-go@v5
Expand All @@ -73,7 +73,7 @@ jobs:
- name: Checkout Sources
uses: actions/checkout@v4
- name: Setup sccache
uses: mozilla-actions/[email protected].6
uses: mozilla-actions/[email protected].7
timeout-minutes: '${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }}'
continue-on-error: true
- uses: actions/setup-go@v5
Expand All @@ -96,7 +96,7 @@ jobs:
- name: Checkout Sources
uses: actions/checkout@v4
- name: Setup sccache
uses: mozilla-actions/[email protected].6
uses: mozilla-actions/[email protected].7
timeout-minutes: '${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }}'
continue-on-error: true
- name: Install Apt Dependencies
Expand Down Expand Up @@ -491,7 +491,7 @@ jobs:
name: 'forest-${{ runner.os }}'
- name: Run api compare tests
run: ./scripts/tests/api_compare/setup.sh
timeout-minutes: '${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}'
timeout-minutes: 120 # '${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}'
- name: Dump docker logs
if: always()
uses: jwalton/gh-docker-logs@v2
Expand Down
51 changes: 51 additions & 0 deletions .github/workflows/link-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Link Checker

on:
workflow_dispatch:
schedule:
# Run daily at 9am
- cron: "00 9 * * *"
push:
branches:
- main
paths:
- "**.md"
- "**.mdx"
- "**.html"
- ".github/workflows/link-check.yml"
merge_group:
pull_request:
branches:
- main
paths:
- "**.md"
- "**.mdx"
- "**.html"
- ".github/workflows/link-check.yml"

jobs:
link-check:
name: Link Check
runs-on: ubuntu-latest
permissions:
contents: read
issues: write
steps:
- uses: actions/checkout@v4

- name: Link Checker
id: lychee
uses: lycheeverse/lychee-action@v2
with:
args: --config ./.config/lychee.toml './**/*.md' './**/*.mdx' './**/*.html'

- name: Create Issue From File
if: env.lychee_exit_code != 0 && github.event_name == 'schedule'
uses: peter-evans/create-issue-from-file@v5
with:
title: Link Checker Report
content-filepath: ./lychee-report.md

- name: Fail job on error
if: env.lychee_exit_code != 0 && github.event_name != 'schedule'
run: exit 1
2 changes: 1 addition & 1 deletion .github/workflows/rust-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
- name: Checkout Sources
uses: actions/checkout@v4
- name: Setup sccache
uses: mozilla-actions/[email protected].6
uses: mozilla-actions/[email protected].7
timeout-minutes: ${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }}
continue-on-error: true
- name: Apt Dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
- name: Checkout Sources
uses: actions/checkout@v4
- name: Setup sccache
uses: mozilla-actions/[email protected].6
uses: mozilla-actions/[email protected].7
timeout-minutes: ${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }}
continue-on-error: true
- uses: actions/setup-go@v5
Expand All @@ -70,7 +70,7 @@ jobs:
- name: Checkout Sources
uses: actions/checkout@v4
- name: Setup sccache
uses: mozilla-actions/[email protected].6
uses: mozilla-actions/[email protected].7
timeout-minutes: ${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }}
continue-on-error: true
- uses: actions/setup-go@v5
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -388,3 +388,5 @@ rust-project.json
# .pnp.*

# End of https://www.toptal.com/developers/gitignore/api/go,rust,rust-analyzer,osx,visualstudiocode,intellij+all,yarn,node,ruby

lychee-report.md
2 changes: 0 additions & 2 deletions .lycheeignore

This file was deleted.

16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,20 @@

### Added

### Changed

### Removed

### Fixed

## Forest v.0.23.3 "Plumber"

Mandatory release for calibnet node operators. It fixes a sync error at epoch 2281645.

### Breaking

### Added

- [#5020](https://github.com/ChainSafe/forest/issues/5020) Add support for the
`Filecoin.EthGetTransactionByBlockNumberAndIndex` RPC method.

Expand All @@ -41,6 +55,8 @@

### Fixed

- [#5109](https://github.com/ChainSafe/forest/pull/5109) Fix a calibnet sync error at epoch 2281645.

## Forest v.0.23.2 "Feint"

Mandatory release for calibnet node operators. It removes the NV25 _Teep_ network upgrade from the schedule. Read more [here](https://github.com/filecoin-project/community/discussions/74#discussioncomment-11549619).
Expand Down
Loading

0 comments on commit b4282ce

Please sign in to comment.