Skip to content

Add new environment variables to force CI and debug C++#52776

Closed
rubennorte wants to merge 3 commits into
facebook:mainfrom
rubennorte:export-D78801918
Closed

Add new environment variables to force CI and debug C++#52776
rubennorte wants to merge 3 commits into
facebook:mainfrom
rubennorte:export-D78801918

Conversation

@rubennorte
Copy link
Copy Markdown
Contributor

Summary:
Changelog: [internal]

FANTOM_FORCE_CI_MODE is just an explicit way to indicate that we're on CI, so we'd run benchmarks in test mode, for example.

FANTOM_DEBUG_CPP is just an alias for FANTOM_ENABLE_CPP_DEBUGGING which is unnecessarily long.

Differential Revision: D78801918

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner labels Jul 23, 2025
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D78801918

@rubennorte rubennorte force-pushed the export-D78801918 branch 2 times, most recently from f776bc0 to 2934c7a Compare July 23, 2025 09:50
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D78801918

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D78801918

Summary:

Changelog: [internal]

Reported locations for errors in Fantom is wrong, because it seems it's not ignoring "infra" frames.

This was caused by the `stack` property in `ErrorWithCustomBlame` being set on the error objects and shadowing the getter that removes the necessary frames. This fixes that by forcing that property to be deleted.

Reviewed By: christophpurrer

Differential Revision: D78747119
…ode (facebook#52759)

Summary:

Changelog: [internal]

This introduces a new environment variable for Fantom to disable benchmarks (`FANTOM_FORCE_TEST_MODE`), without having to run in CI mode.

Reviewed By: rshest

Differential Revision: D78672864
Summary:

Changelog: [internal]

`FANTOM_FORCE_CI_MODE` is just an explicit way to indicate that we're on CI, so we'd run benchmarks in test mode, for example.

`FANTOM_DEBUG_CPP` is just an alias for `FANTOM_ENABLE_CPP_DEBUGGING` which is unnecessarily long.

Differential Revision: D78801918
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D78801918

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Jul 23, 2025
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in 130b46c.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants