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

[Monorepo] Add query service #2516

Merged
merged 12 commits into from
Feb 3, 2025
Merged

[Monorepo] Add query service #2516

merged 12 commits into from
Feb 3, 2025

Conversation

jparr721
Copy link
Contributor

@jparr721 jparr721 commented Jan 31, 2025

Monorepo project. First phase: Add the query service. This also includes CI fixes, etc.

@jparr721 jparr721 changed the title [Monopoadd query service [Monorepo] Add query service Jan 31, 2025
@jparr721 jparr721 enabled auto-merge February 3, 2025 16:35
@jparr721 jparr721 disabled auto-merge February 3, 2025 20:00
Copy link
Contributor Author

@jparr721 jparr721 left a comment

Choose a reason for hiding this comment

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

mark files

@@ -13,7 +13,7 @@ on:
pull_request:
workflow_dispatch:

concurrency:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Review

@@ -6,6 +6,7 @@ extend-exclude = [
"**/*.pdf",
"doc/*.svg",
"doc/*.puml",
"**/*.drawio",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ignoring drawio files in query service

@@ -70,7 +70,7 @@ marketplace-builder-core = { git = "https://github.com/EspressoSystems/marketpla
marketplace-builder-shared = { git = "https://github.com/EspressoSystems/marketplace-builder-core", tag = "0.5.84" }
hotshot-events-service = { git = "https://github.com/EspressoSystems/hotshot-events-service.git", tag = "0.1.58" }
hotshot-orchestrator = { git = "https://github.com/EspressoSystems/hotshot", tag = "0.5.84" }
hotshot-query-service = { git = "https://github.com/EspressoSystems/hotshot-query-service", tag = "v0.1.77" }
hotshot-query-service = { path = "hotshot-query-service" }
Copy link
Contributor Author

Choose a reason for hiding this comment

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

review

@@ -35,8 +35,8 @@ jobs:
# as each individual feature enabled.
- name: Check compilation for feature combinations
run: |
cargo hack check --feature-powerset
cargo hack check --feature-powerset --exclude hotshot-query-service
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is temporarily excluded because of the issue with dependencies in query service. We'll likely end up just merging these features into the parent sequencer module, but that'd require a high touch change. For now, we just remove it from the powerset because query service doesn't run correctly with certain subsets of features removed.

@jparr721 jparr721 merged commit b7c10ea into main Feb 3, 2025
23 checks passed
@jparr721 jparr721 deleted the jp/add-query-service branch February 3, 2025 22:46
sveitser added a commit that referenced this pull request Feb 4, 2025
Note that the diff is zero so this does not change any code.

Obtained as follows:

1. in query service repo
```
git checkout main
git checkout -b ma/move-to-monorepo-2
git rm -r .github Cargo.lock
git commit -a -m "monorepo: remove obsolete files"

mv * hotshot-query-service
mv .gitignore .github .envrc .cargo .config hotshot-query-service
git commit -n -a -m "monorepo: move to subdirectory"
```
commit 01a9bb2
(query-service/ma/move-to-monorepo-2)
    monorepo: move to subdirectory

commit b97bd0e
    monorepo: remove obsolete files


2. in this repo

```
git remote add query-service ../hotshot-query-service
git fetch query-service
git rm -r hotshot-query-service
git commit -n -a -m "monorepo: remove query service without history"
git merge query-service/ma/move-to-monorepo-2 --allow-unrelated-histories
```
commit a623fcd
    monorepo: remove query service without history

Cherry pick commits (cherry picked all commits we made on #2516 but some
are already applied, so ended up empty and don't show here).

fd2c7eb * typos
bd5bc89 * move dependency to path
302d7f1 * try to fix contract build
1b57bd9 * fix lint
41cfdf2 * fix one more
688d700 * fix test feature

A fixup commit to ensure no diff to main

be936f8 * ma/add-query-service-history
origin/ma/add-query-service-history fixup to add query service history
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.

2 participants