Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade master to Node 8.9.2 #1251

Merged
merged 238 commits into from
Jun 14, 2024
Merged

Upgrade master to Node 8.9.2 #1251

merged 238 commits into from
Jun 14, 2024

Conversation

mirceahasegan
Copy link
Collaborator

@mirceahasegan mirceahasegan commented May 7, 2024

Context

Upgrading to Cardano Node 8.9.2 also requires updating Ogmios to 6+.
Ogmios 6+ is breaking wrt previous versions, but the work to address the breaking changes was already done on the conway-era branch.

Proposed Solution

  1. Branch from conway-era: chore/LW-7691-conway-era-variant-for-master-merge Branched from master into chore/LW-7691-master-merge. Merged comway-era into it.
  2. Update to use stable DbSync (13.2.0.2) instead of the sanchonet-* ones.
  3. Adapt to schema changes and stabilise.
  4. Merge to master ONLY AFTER db-sync migration for the existing deployments is planned and ready to execute. not needed

rhyslbw and others added 30 commits September 27, 2023 21:23
{"local":
  {"subdir":  "packages/cardano-services/config"
  ,"action":  "pull"}
,"remote":
  {"url":     "https://github.com/input-output-hk/cardano-configurations.git"
  ,"branch":  "master"
  ,"commit":  "8a403bb2f"}
,"git-subrepo":
  {"version": "0.1.0"
  ,"commit":  "???"
  ,"origin":  "???"}}
…chonet-support

# Conflicts:
#	packages/cardano-services/config/.gitrepo
#	packages/cardano-services/config/network/preview/cardano-node/config.json
#	packages/cardano-services/config/network/sanchonet/cardano-node/config.json
- So far only `x86_64-linux` works, I’ll fix an `aarch64-linux` version shortly
- clone cardano-configurations directly
- use the new custom Ogmios Dockerfile
- adds new yarn scripts to start the sanchonet services
- generated new fixtures reflecting new cardano tools version
- bump cardano-db-sync to use new image registry
- reduce block types to bft, ebb and praos
- update tx mapper
- update OgmiosCardanoNode
- update observableChainSync and TxSubmitProvider
- ogmios Tip is transformed to SDK Tip

Extra scripts have been moved to the scripts field and merged with
witness scripts as part of the ogmios 6.0 refactoring:
https://github.com/CardanoSolutions/ogmios/blob/master/architectural-decisions/
accepted/017-api-version-6-major-rewrite.md#transaction.
Rationale for the removal:
#927 (comment)

BREAKING CHANGE: update core CardanoNode error types
  - Removed `OnChainTx` `witness.scripts` and `auxiliaryData.scripts`
Ogmios createInteractionContextWithLogger no longer expects an
interaction type.
Avoid "no space left on device" error
…ng-changes

Refactor/ogmios 6 breaking changes
…gistration-needs-sig

Feat/conway stake key registration needs sig
interactionType no longer exists

also, remove an unnecessary eslint-disable
implement it for OgmiosObservableCardanoNode
OgmiosTxSubmitProvider was unreliable as it didn't
have any re-connection logic. ObservableCardanoNode
already had re-connection logic in-place.

Furthermore, this refactor reduces the scope of Ogmios
dependency, because ogmios package is no longer Provider-aware.
This is a step towards refining this package as a thin wrapper
over ogmios client libraries.

OgmiosTxSubmitProvider is replaced by a combination of:
- ObservableCardanoNode.submitTx
- a new NodeTxSubmitProvider implementation that depends
  on ObservableCardanNode and HandleProvider

Note: re-enabling rabbitMqTxSubmitProvider and TxSubmitWorker tests
is out of scope of this commit. Those tests were already disabled.
This commit modified the test files in order for tests to compile.
…tx-submission

fix: resilient ogmios v6 tx submission
@mirceahasegan mirceahasegan marked this pull request as ready for review June 5, 2024 16:17
Copy link
Member

@mkazlauskas mkazlauskas left a comment

Choose a reason for hiding this comment

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

Looks good 🚀! Just some questions below

mkazlauskas
mkazlauskas previously approved these changes Jun 6, 2024
Copy link
Member

@mkazlauskas mkazlauskas left a comment

Choose a reason for hiding this comment

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

Great work everyone involved, huge effort! 💪 ❤️

AngelCastilloB
AngelCastilloB previously approved these changes Jun 6, 2024
Copy link
Member

@AngelCastilloB AngelCastilloB left a comment

Choose a reason for hiding this comment

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

Amazing work guys! great work! 🥇

mkazlauskas
mkazlauskas previously approved these changes Jun 13, 2024
@mkazlauskas mkazlauskas merged commit 9c7e831 into master Jun 14, 2024
7 of 8 checks passed
@mkazlauskas mkazlauskas deleted the chore/LW-7691-master-merge branch June 14, 2024 11:54
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.

10 participants