Skip to content

fix(xtask): simplify DKG outcome arguments - #7381

Merged
hamdiallam merged 2 commits into
mainfrom
hamdi/get-dkg-outcome.args
Sep 16, 2026
Merged

hamdiallam merged 2 commits into
mainfrom
hamdi/get-dkg-outcome.args

Conversation

@hamdiallam

@hamdiallam hamdiallam commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

Derive the RPC URL and epoch length from the selected chainspec, with an optional RPC URL override. Make --epoch optional: when omitted, print the latest DKG outcome available at the current block, falling back to genesis before the first epoch boundary.

Validation: cargo +nightly fmt --all -- --check and cargo test -p tempo-xtask get_dkg_outcome --locked pass (2 tests).

@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

This PR has been marked stale due to 7 days of inactivity.

@github-actions github-actions Bot added the stale label Sep 9, 2026
Comment thread xtask/src/get_dkg_outcome.rs Outdated
epoch_length: Option<u64>,
/// Epoch number to query
#[arg(long)]
epoch: u64,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if me make this optional and it just gives us latest?

SuperFluffy
SuperFluffy previously approved these changes Sep 9, 2026
@tempo-voight-kampff

Copy link
Copy Markdown

Hi @SuperFluffy — your review approval was detected by Voight-Kampff but no live Voight-Kampff agent connection received it, and no push fallback was sent before the approval window closed. Your review did not count toward this PR.

You can also try approving the PR directly via CLI with

vk approve pr https://github.com/tempoxyz/tempo/pull/7381

@tempo-voight-kampff
tempo-voight-kampff Bot dismissed SuperFluffy’s stale review September 9, 2026 08:26

Voight-Kampff: dismissing this approval review — it was never confirmed through a Voight-Kampff prompt, so it must not count toward merging this pull request. Re-submit the review and complete the Voight-Kampff prompt if you want this verdict to count.

@SuperFluffy

Copy link
Copy Markdown
Contributor

+1

tempo-voight-kampff[bot]
tempo-voight-kampff Bot previously approved these changes Sep 9, 2026

@tempo-voight-kampff tempo-voight-kampff Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving on behalf of @SuperFluffy, who approved this pull request with a +1 comment via Voight-Kampff (head b598a6f5ed85).

GitHub branch protection considers pull request reviews, not +1 comments. Voight-Kampff is recording this approval on the reviewer's behalf so branch protection requirements are met.

@github-actions github-actions Bot removed the stale label Sep 10, 2026
@decofe decofe changed the title fix(xtask) simplified get-dkg-outcome arguments fix(xtask): simplify DKG outcome arguments Sep 14, 2026
hamdiallam and others added 2 commits September 16, 2026 14:28
Co-authored-by: Derek Cofausper <256792747+decofe@users.noreply.github.com>
@decofe
decofe force-pushed the hamdi/get-dkg-outcome.args branch from 3d62e0e to bb7e64f Compare September 16, 2026 14:29
@SuperFluffy

Copy link
Copy Markdown
Contributor

+1

@tempo-voight-kampff tempo-voight-kampff Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving on behalf of @SuperFluffy, who approved this pull request with a +1 comment via Voight-Kampff (head bb7e64f05359).

GitHub branch protection considers pull request reviews, not +1 comments. Voight-Kampff is recording this approval on the reviewer's behalf so branch protection requirements are met.

@hamdiallam

Copy link
Copy Markdown
Contributor Author

cyclops audit fast

@hamdiallam
hamdiallam disabled auto-merge September 16, 2026 14:43

@tempoxyz-bot tempoxyz-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👁️ Cyclops Review — No actionable findings.

pepyakin
pepyakin previously approved these changes Sep 16, 2026
@hamdiallam

Copy link
Copy Markdown
Contributor Author

+1

@tempo-voight-kampff

Copy link
Copy Markdown

Hi @pepyakin — your review approval was detected by Voight-Kampff but no live Voight-Kampff agent connection received it, so Voight-Kampff sent a push fallback. The push was not approved before the approval window closed. Your review did not count toward this PR.

You can also try approving the PR directly via CLI with

vk approve pr https://github.com/tempoxyz/tempo/pull/7381

@tempo-voight-kampff
tempo-voight-kampff Bot dismissed pepyakin’s stale review September 16, 2026 15:17

Voight-Kampff: dismissing this approval review — it was never confirmed through a Voight-Kampff prompt, so it must not count toward merging this pull request. Re-submit the review and complete the Voight-Kampff prompt if you want this verdict to count.

@tempo-voight-kampff tempo-voight-kampff Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving on behalf of @hamdiallam, who approved this pull request with a +1 comment via Voight-Kampff (head bb7e64f05359).

GitHub branch protection considers pull request reviews, not +1 comments. Voight-Kampff is recording this approval on the reviewer's behalf so branch protection requirements are met.

@hamdiallam
hamdiallam added this pull request to the merge queue Sep 16, 2026
Merged via the queue into main with commit f3faaaa Sep 16, 2026
67 checks passed
@hamdiallam
hamdiallam deleted the hamdi/get-dkg-outcome.args branch September 16, 2026 15:26
sds added a commit that referenced this pull request Sep 17, 2026
…ows-rollout

* origin/main:
  feat(consensus): ensure certificate tip epoch matches height index (#7671)
  fix(ci): restore Docker PR build notifications (#7667)
  fix(consensus): enforce network identity baked into binary/chainspec (#7630)
  fix(xtask): simplify DKG outcome arguments (#7381)
  feat(ci): trigger Docker image builds from PR comments (#7655)
  feat(bench): emit compact workload category metadata (#7663)
  feat: allow expiring nonce discriminators (#7474)
  perf(consensus): avoid rehashing locally built proposals (#7650)

# Conflicts:
#	.github/workflows/docker-profiling.yml
#	.github/workflows/docker.yml
decofe added a commit that referenced this pull request Sep 21, 2026
Derive the RPC URL and epoch length from the selected chainspec, with an
optional RPC URL override. Make `--epoch` optional: when omitted, print
the latest DKG outcome available at the current block, falling back to
genesis before the first epoch boundary.

Validation: `cargo +nightly fmt --all -- --check` and `cargo test -p
tempo-xtask get_dkg_outcome --locked` pass (2 tests).

---------

Co-authored-by: Richard Janis Goldschmidt <701177+SuperFluffy@users.noreply.github.com>
Co-authored-by: Derek Cofausper <256792747+decofe@users.noreply.github.com>
(cherry picked from commit f3faaaa)
decofe added a commit that referenced this pull request Sep 21, 2026
Derive the RPC URL and epoch length from the selected chainspec, with an
optional RPC URL override. Make `--epoch` optional: when omitted, print
the latest DKG outcome available at the current block, falling back to
genesis before the first epoch boundary.

Validation: `cargo +nightly fmt --all -- --check` and `cargo test -p
tempo-xtask get_dkg_outcome --locked` pass (2 tests).

---------

Co-authored-by: Richard Janis Goldschmidt <701177+SuperFluffy@users.noreply.github.com>
Co-authored-by: Derek Cofausper <256792747+decofe@users.noreply.github.com>
(cherry picked from commit f3faaaa)
decofe added a commit that referenced this pull request Sep 21, 2026
Derive the RPC URL and epoch length from the selected chainspec, with an
optional RPC URL override. Make `--epoch` optional: when omitted, print
the latest DKG outcome available at the current block, falling back to
genesis before the first epoch boundary.

Validation: `cargo +nightly fmt --all -- --check` and `cargo test -p
tempo-xtask get_dkg_outcome --locked` pass (2 tests).

---------

Co-authored-by: Richard Janis Goldschmidt <701177+SuperFluffy@users.noreply.github.com>
Co-authored-by: Derek Cofausper <256792747+decofe@users.noreply.github.com>
(cherry picked from commit f3faaaa)
decofe added a commit that referenced this pull request Sep 21, 2026
Derive the RPC URL and epoch length from the selected chainspec, with an
optional RPC URL override. Make `--epoch` optional: when omitted, print
the latest DKG outcome available at the current block, falling back to
genesis before the first epoch boundary.

Validation: `cargo +nightly fmt --all -- --check` and `cargo test -p
tempo-xtask get_dkg_outcome --locked` pass (2 tests).

---------

Co-authored-by: Richard Janis Goldschmidt <701177+SuperFluffy@users.noreply.github.com>
Co-authored-by: Derek Cofausper <256792747+decofe@users.noreply.github.com>
(cherry picked from commit f3faaaa)
hamdiallam added a commit that referenced this pull request Sep 21, 2026
Simplify DKG outcome arguments for v1.15.0 by deriving defaults from the
selected chainspec and allowing the latest available epoch.

Stack position 2 of 4; source commit from
[#7742](#7742):
[68feaa5](68feaa5),
originally [#7381](#7381). Merge
after [#7794](#7794); retarget to
`release/v1.15.0` once its predecessor is merged.

Validation: one commit per PR and a clean `git diff --check`. The full
`cargo deny --all-features --locked check` passed locally using
cargo-deny 0.20.2. The only additional change beyond the original stack
is the targeted lockfile update for RUSTSEC-2026-0292. Fresh CI is
running.

Prompted by: @hamdiallam

Co-authored-by: Hamdi Allam <10552045+hamdiallam@users.noreply.github.com>
Co-authored-by: Richard Janis Goldschmidt <701177+SuperFluffy@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants