Skip to content

Conversation

@ma2bd
Copy link
Contributor

@ma2bd ma2bd commented Sep 23, 2025

Motivation

Solve the issue of the forgetful faucet

Proposal

backport #4408 and #4631

Test Plan

CI

ndr-ds and others added 2 commits September 24, 2025 06:21
…4408)

## Motivation

Right now we have a lot of stuff in CI that gets started as a bg
process. However, the issue is that if these things start taking
slightly longer to start up for some reason, it'll make the test fail,
because the test will try to submig requests to something that isn't
ready yet.

## Proposal

Explicitly wait for things to be actually up before proceeding.

## Test Plan

CI

## Release Plan

- Nothing to do / These changes follow the usual release cycle.
## Motivation

Requesting a new chain from the faucet now takes 3 seconds because the
JSON file with the "account owner → chain description" map is getting
very large.

## Proposal

Store the map in an SQLite database, with only chain IDs rather than
whole descriptions. `--storage-path` is mandatory now.

On startup, traverse the chain back to the last block whose created
chains are already in the database. Then traverse back up and update the
database.

(Mostly written with Claude.)

## Test Plan

Tests were updated.

## Release Plan

- These changes should be backported to the latest `testnet` branch,
then
- used to restart the faucet with `--storage-path` changed accordingly.
Before that, we should manually backup the faucet storage file and make
sure that it is complete, i.e. ends with the expected closing `}`.

## Links

- Closes linera-io#4624.
- [reviewer
checklist](https://github.com/linera-io/linera-protocol/blob/main/CONTRIBUTING.md#reviewer-checklist)

---------

Co-authored-by: Mathieu Baudet <[email protected]>
@ma2bd ma2bd changed the title backport faucet PR #4408 and #4631 backport faucet PRs #4408 and #4631 Sep 23, 2025
@ma2bd ma2bd added the backport This PR backports functionality already available on `main`. label Sep 23, 2025
@ma2bd ma2bd merged commit 4b13a37 into linera-io:testnet_conway Sep 23, 2025
28 of 29 checks passed
@ma2bd ma2bd deleted the faucet_backport branch September 23, 2025 21:47
ma2bd added a commit that referenced this pull request Sep 23, 2025
## Motivation

Solve the issue of the forgetful faucet

## Proposal

backport #4408 and #4631

## Test Plan

CI

---------

Co-authored-by: Andre da Silva <[email protected]>
Co-authored-by: Andreas Fackler <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR backports functionality already available on `main`.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants