Skip to content

Small fixes - #5122

Merged
drebelsky merged 10 commits into
stellar:masterfrom
drebelsky:small-fixes
Apr 8, 2026
Merged

drebelsky merged 10 commits into
stellar:masterfrom
drebelsky:small-fixes

Conversation

@drebelsky

@drebelsky drebelsky commented Feb 3, 2026 •

Copy link
Copy Markdown
Contributor
  • Add tracy binaries to .gitignore
  • Add check for SecretKey::random in tests
  • Remove duplicated header guard
  • Don't run Soroban tests when Catch2 tests fail
  • Remove outdated documentation (Remove support for old V1 survey #4660 removed the "surveytopology" endpoint)
  • Remove impossible condition (Remove impossible condition #5119)
  • Initialize analyzeCriticalGroups cli option
  • Add clang-format rule for east const

Copilot AI review requested due to automatic review settings February 3, 2026 19:10

Copilot AI 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.

Pull request overview

This PR includes several small miscellaneous fixes to improve the development workflow and test infrastructure.

Changes:

  • Adds tracy profiling tool binaries to .gitignore
  • Adds static check to prevent use of SecretKey::random() in test files
  • Removes redundant #pragma once directive from basen.h header (which already has include guards)
  • Attempts to modify CI to skip Soroban tests when Catch2 tests fail

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.

File Description
.gitignore Adds tracy-capture and tracy-gui binaries to ignore list
src/test/check-nondet Adds check to prevent non-deterministic SecretKey::random() usage in tests
lib/util/basen.h Removes duplicate #pragma once (file uses traditional include guards)
ci-build.sh Adds TESTS_ENVIRONMENT to skip tests after failures (has implementation issues)

Comment thread ci-build.sh Resolved
@drebelsky

drebelsky commented Feb 3, 2026 •

Copy link
Copy Markdown
Contributor Author

Putting some notes on the CI modification. This approach seems to work, although it does feel somewhat hacky (especially since it's relying on the internal automake implementation of serialized tests using a failed variable). In particular, I don't think it will handle stopping the rest of the tests if one of the recursive lib tests fails (although, if the lib tests are run serially, it will stop that serial run). Additionally, since the order of the tests in src is selftest-{no}pg, check-nondet, check-sorobans, we get the odd behavior where failing check-nondet stops check-sorobans from running (but not selftest). I'm happy to remove or rewrite the commit based on what others think, but I'm leaning toward wrapping selftest-{no}pg and check-sorobans into a wrapper script so that check-sorobans only runs when selftest passes (leaving the rest of the behavior as it was pre this PR).

@bboston7

Copy link
Copy Markdown
Contributor

I'm leaning toward wrapping selftest-{no}pg and check-sorobans into a wrapper script so that check-sorobans only runs when selftest passes (leaving the rest of the behavior as it was pre this PR).

I like this option. I agree that depending on automake internals is not ideal.

Comment thread src/herder/Upgrades.cpp Resolved

@bboston7 bboston7 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.

Thanks for putting this together. I think this is looking great except for the exec issue.

Comment thread src/herder/Upgrades.cpp Resolved
Comment thread src/test/selftest-nopg Resolved
bboston7
bboston7 previously approved these changes Mar 2, 2026
@drebelsky
drebelsky requested a review from marta-lokhova March 11, 2026 17:43
marta-lokhova
marta-lokhova previously approved these changes Apr 7, 2026
@marta-lokhova
marta-lokhova enabled auto-merge April 7, 2026 20:47
@marta-lokhova
marta-lokhova added this pull request to the merge queue Apr 7, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Apr 7, 2026
@drebelsky

Copy link
Copy Markdown
Contributor Author

Looks like the merge failed because there is new code that had left-const, so rebased on master and re-formatted.

@drebelsky
drebelsky added this pull request to the merge queue Apr 8, 2026
Merged via the queue into stellar:master with commit 6284d3f Apr 8, 2026
67 checks passed
@drebelsky
drebelsky deleted the small-fixes branch April 8, 2026 01:17
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