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

The birth of a new river #1135

Merged
merged 29 commits into from
Jan 31, 2024
Merged

The birth of a new river #1135

merged 29 commits into from
Jan 31, 2024

Conversation

mina1460
Copy link
Contributor

Description

Engineering checklist

Check only items that apply

  • Documentation updated
  • Covered by unit tests
  • Covered by integration tests

Test instructions

Notes for code reviewers

@mina1460 mina1460 marked this pull request as ready for review January 17, 2024 18:08
Copy link
Collaborator

@alesstimec alesstimec left a comment

Choose a reason for hiding this comment

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

I don't think this approach quite works.. job arguments need to be serializable.. and the worker must hold the openfga client and db connection..

internal/jimm/river.go Outdated Show resolved Hide resolved
internal/jimm/river.go Outdated Show resolved Hide resolved
internal/jimm/river.go Outdated Show resolved Hide resolved
internal/jimm/river.go Outdated Show resolved Hide resolved
internal/jimm/river.go Outdated Show resolved Hide resolved
internal/jimm/river.go Outdated Show resolved Hide resolved
internal/jimm/river.go Outdated Show resolved Hide resolved
internal/jimm/river.go Outdated Show resolved Hide resolved
internal/jimm/river.go Outdated Show resolved Hide resolved
internal/jimm/river.go Outdated Show resolved Hide resolved
internal/jimm/river.go Outdated Show resolved Hide resolved
internal/jimm/river.go Outdated Show resolved Hide resolved
internal/jimm/river.go Outdated Show resolved Hide resolved
internal/jimm/river.go Outdated Show resolved Hide resolved
internal/jimmtest/suite.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@alesstimec alesstimec left a comment

Choose a reason for hiding this comment

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

sorry.. misclicked.. wanted to request changes.. see comments in my previous review

mina1460 and others added 4 commits January 18, 2024 16:17
- Ensure River uses the correct test DB.
- Ensure River receives a database that has already been migrated.
@mina1460 mina1460 requested a review from alesstimec January 29, 2024 10:39
internal/jimm/model.go Show resolved Hide resolved
internal/jimm/model.go Outdated Show resolved Hide resolved
internal/jimm/model.go Outdated Show resolved Hide resolved
internal/jimm/river.go Outdated Show resolved Hide resolved
internal/jimm/river.go Outdated Show resolved Hide resolved
internal/jimm/river.go Show resolved Hide resolved
Copy link
Contributor

@ale8k ale8k left a comment

Choose a reason for hiding this comment

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

lgtm bar some petty comments, nice catch @kian99 on closing pool

internal/jimm/cloudcredential_test.go Outdated Show resolved Hide resolved
internal/jimm/model.go Outdated Show resolved Hide resolved
internal/jimm/model.go Outdated Show resolved Hide resolved
internal/jimm/river.go Outdated Show resolved Hide resolved
internal/jimm/river.go Show resolved Hide resolved
internal/jimm/river.go Outdated Show resolved Hide resolved
internal/jimm/river.go Outdated Show resolved Hide resolved
internal/jimm/river.go Show resolved Hide resolved
internal/jimm/river.go Outdated Show resolved Hide resolved
internal/jimm/river.go Outdated Show resolved Hide resolved
internal/jimm/model.go Outdated Show resolved Hide resolved
service.go Outdated Show resolved Hide resolved
internal/jimmtest/gorm.go Outdated Show resolved Hide resolved
internal/jimmtest/river.go Outdated Show resolved Hide resolved
internal/jimmtest/river.go Outdated Show resolved Hide resolved
internal/jimmtest/suite.go Outdated Show resolved Hide resolved
internal/jimm/river.go Show resolved Hide resolved
internal/jimm/river.go Show resolved Hide resolved
internal/jimm/cloudcredential_test.go Outdated Show resolved Hide resolved
docker-compose.yaml Outdated Show resolved Hide resolved
cmd/jimmctl/cmd/jimmsuite_test.go Show resolved Hide resolved
internal/jimm/model.go Outdated Show resolved Hide resolved
internal/jimm/river.go Outdated Show resolved Hide resolved
}

// NewRiverArgs is a struct that represents
type NewRiverArgs struct {
Copy link
Contributor

Choose a reason for hiding this comment

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

Agreed with either. The function that creates a RiverConfig or RiverParams should have New in the name.

internal/jimm/model.go Outdated Show resolved Hide resolved
internal/jimm/model.go Outdated Show resolved Hide resolved
internal/jimm/model.go Outdated Show resolved Hide resolved
Copy link
Contributor

@kian99 kian99 left a comment

Choose a reason for hiding this comment

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

Just trying to note down the discussion we had yesterday,

  • Regarding a timeout on the context (or a full timer), I'm not sure whether we decided to add this.
  • We need to check that on EventKindJobFailed we check the job failed all retries. We should probably also check whether we don't want to listen for the other job kinds?
  • We need to merge this into a feature branch.

@mina1460 mina1460 changed the base branch from v3 to feature-distributed-transactions January 30, 2024 12:07
@mina1460 mina1460 requested review from kian99, babakks and ale8k January 31, 2024 06:46
internal/jimm/model.go Outdated Show resolved Hide resolved
internal/jimm/model.go Outdated Show resolved Hide resolved
service.go Outdated Show resolved Hide resolved
Copy link
Contributor

@kian99 kian99 left a comment

Choose a reason for hiding this comment

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

Happy for this to go into the feature branch at this point.

service.go Outdated Show resolved Hide resolved
internal/jimm/river.go Outdated Show resolved Hide resolved
internal/jimm/river.go Show resolved Hide resolved
internal/jimm/river.go Outdated Show resolved Hide resolved
internal/jimm/river.go Outdated Show resolved Hide resolved
internal/jimm/river.go Outdated Show resolved Hide resolved
@mina1460 mina1460 merged commit add706a into canonical:feature-distributed-transactions Jan 31, 2024
4 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.

5 participants