Conversation
🦋 Changeset detectedLatest commit: 785067d The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Is the purpose of this to make it undefined if it is not one of the 3?
There was a problem hiding this comment.
yes and to make compiler pass with the stricter typing haha #735 (comment)
There was a problem hiding this comment.
Maybe this should actually be chainid?
There was a problem hiding this comment.
We use chain id in the other services to denote which network they run on so I do think that we could replace network name with chain id. This will be useful because all networks have network ids and not all networks we may deploy on are named yet so we won't have to make any code changes if we use chain id
There was a problem hiding this comment.
You'll want to parse it as config.ufloat('sentry-trace-rate', 0.05) instead of uint
https://github.com/bcoin-org/bcfg/blob/1216c775832c2e138ae6451912a27ba496dc4386/lib/config.js#L433
There was a problem hiding this comment.
Usually enums of string are unnecessary; you can just use string literals https://stackoverflow.com/questions/49761972/difference-between-string-enums-and-string-literal-types-in-ts
There was a problem hiding this comment.
@snario trying string literals and it doesn't solve the not assignable from string when reading from config.str :(
There was a problem hiding this comment.
I think we should apply any forceful typing at the lowest level as possible, if it means using as in this case so be it, but I still think using string as opposed to enums is preferable
|
fixing lint failure here: #765 |
| this.state.app.use(cors()) | ||
| this._registerAllRoutes() | ||
| // Error handling needs to be initialized last | ||
| if (this.options.ethNetworkName) |
There was a problem hiding this comment.
Minor nit on using curly braces here and above. I think it's useful to be able to delineate where an if statement applies and makes it easier to add new things to the interior of the statement if necessary. Otherwise LGTM.
Codecov Report
@@ Coverage Diff @@
## master #735 +/- ##
==========================================
+ Coverage 77.53% 77.78% +0.24%
==========================================
Files 48 48
Lines 1892 1886 -6
Branches 297 297
==========================================
Hits 1467 1467
+ Misses 425 419 -6
Continue to review full report at Codecov.
|
* move verbose log to debug * feat: add node env to dtl * changeset and new line * conditional sentry and metrics initialization
* feat: add cgt to opcmv2 * feat: add cgt to opcmv2 * fix: change semver * feat: add cgt to opcmv2 * feat: add cgt to opcmv2 * fix: change semver * refactor: change disputeGameConfigs order in _loadFullConfig * fix: comment slash rules * feat: add opcmv2-cgt matrix in CI * fix: enable cgt overrides on OPCMv2 (#724) * fix: check CGT is not enabled before enabling it * fix: enable CGT overrides * fix: add extra instruction overrides for useCustomGasToken on OPCMv2 (#725) * chore: link TODO to issue (#727) * fix: opcm2 revert upgrade cgt (#728) * fix: add check enabled CGT during upgrades * test: set CGT false by default during forked tests * chore: expand comment on OPCMv2 regarding CGT * chore: pre-pr ready * refactor: remove unnecessary check for CGT feature (#735) * fix: cgt upgrade in opcm v2 and semver (#738) * fix: Full checkout for FFI build (#18527) * chore(op-acceptance-tests): delete very old logs (#18529) * chore(op-acceptance-tests): op-acceptor v3.8.0 (#18530) * jovian: remove feature toggles (#17978) * jovian: remove feature toggles scope is now fixed * Updated op-geth to v1.101604.0-synctest.0.0.20251120150812-e50f80a16afc * lint * just update-op-geth f48f382 * Use Jovian in test error message * just update-op-geth ba6bdcfef42341fe2b5ce124c31ff2d6b264e9e4 * chore(ai-eng): add ReinitializableBase test to exclusion list (#18531) * feat: have OPCM upgrade allowances be upgrade specific (#18462) * feat: have OPCM upgrade allowances be upgrade specific Updates the OPCMv2 check for allowed extra instructions to be specific to releases. When release versions are bumped, the allowances become automatically invalid and would reveal anywhere in the codebase where the allowance is being used. * fix: semver lock * fix: emit instruction key in error * fix: better semantics * docs: proper OPCM versioning policy * fix: final version tweaks * fix(op-acceptance-test): flake-shake; empty slack notifications. (#18542) * feat: add cgt to opcmv2 * feat: add cgt to opcmv2 * fix: change semver * feat: add cgt to opcmv2 * feat: add cgt to opcmv2 * fix: change semver * refactor: change disputeGameConfigs order in _loadFullConfig * fix: enable cgt overrides on OPCMv2 (#724) * fix: check CGT is not enabled before enabling it * fix: enable CGT overrides * fix: opcm2 revert upgrade cgt (#728) * fix: add check enabled CGT during upgrades * test: set CGT false by default during forked tests * chore: expand comment on OPCMv2 regarding CGT * fix: cgt upgrade in opcm v2 and semver (#738) * fix: merge conflicts * fix: pre-pr * fix: add missing isMatchingInstruction for cgt in false * refactor: opcm2 extra instruction keymatch (#747) * refactor: add helper function to match instruction by key only * chore: pre-pr ready * test: refactor key matching test * test: add test suite for IsMatchingKey helper function * chore: pre-pr ready * fix: opcmv2 semver --------- Co-authored-by: Flux <175354924+0xiamflux@users.noreply.github.com> Co-authored-by: Ján Jakub Naništa <jan.jakub.nanista@gmail.com> Co-authored-by: Stefano Charissis <stefano@oplabs.co> Co-authored-by: George Knee <georgeknee@googlemail.com> Co-authored-by: Ariel Diaz <65925295+aliersh@users.noreply.github.com> Co-authored-by: smartcontracts <14298799+smartcontracts@users.noreply.github.com>
Description
Adds environment and network variables to the DTL so we only conditionally initialize Sentry and monitors.
Additional context
Also includes a minor refactor of base-service and changes a verbose log to
debug.Metadata