Skip to content

feat(tests): add Mega + Orion integration tests with Qlean#2012

Merged
benjamin-747 merged 2 commits intoweb3infra-foundation:mainfrom
miliu2cc:main
Mar 13, 2026
Merged

feat(tests): add Mega + Orion integration tests with Qlean#2012
benjamin-747 merged 2 commits intoweb3infra-foundation:mainfrom
miliu2cc:main

Conversation

@miliu2cc
Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: miliu2cc <miliu2cc@gmail.com>
Signed-off-by: miliu2cc <miliu2cc@gmail.com>
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e3e2e3ec3c

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +737 to +742
let build_success = logs.lines().any(|line| {
line.to_lowercase().contains("build")
&& (line.to_lowercase().contains("completed")
|| line.to_lowercase().contains("finished"))
&& line.contains("exit code: Some(0)")
});
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Verify build result against the current trigger, not any log

The success predicate accepts any line in the last 200 Orion logs containing build + completed/finished + exit code: Some(0), but it is not correlated with the trigger just submitted. Because earlier pushes in this test can already produce successful build records, this can mark the E2E test as passed even when the manual trigger under test fails.

Useful? React with 👍 / 👎.

Comment on lines +23 to +25
tracing_subscriber::fmt()
.with_env_filter(EnvFilter::from_default_env())
.init();
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Initialize tracing subscriber only once across ignored tests

init_tracing() calls tracing_subscriber::fmt().init(), which panics if a global subscriber is already set. Since both ignored tests call this function, running the ignored suite together can fail before test logic executes; using try_init or a one-time guard avoids this cross-test panic.

Useful? React with 👍 / 👎.

@benjamin-747 benjamin-747 added this pull request to the merge queue Mar 13, 2026
Merged via the queue into web3infra-foundation:main with commit eef772a Mar 13, 2026
8 checks passed
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.

2 participants