Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hivemind
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
hivemind
Commits
46e91164
Commit
46e91164
authored
4 years ago
by
Bartek Wrona
Browse files
Options
Downloads
Patches
Plain Diff
Further merge fixes after rebase onto develop
parent
4f2425f8
No related branches found
No related tags found
2 merge requests
!456
Release candidate v1 24
,
!380
Mock improvements
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
hive/cli.py
+1
-1
1 addition, 1 deletion
hive/cli.py
hive/indexer/sync.py
+3
-5
3 additions, 5 deletions
hive/indexer/sync.py
scripts/ci/hive-sync.sh
+3
-2
3 additions, 2 deletions
scripts/ci/hive-sync.sh
scripts/ci_sync.sh
+2
-1
2 additions, 1 deletion
scripts/ci_sync.sh
with
9 additions
and
9 deletions
hive/cli.py
+
1
−
1
View file @
46e91164
...
...
@@ -5,8 +5,8 @@
import
os
import
logging
import
time
from
hive.db.adapter
import
Db
from
hive.conf
import
Conf
from
hive.db.adapter
import
Db
from
hive.utils.stats
import
PrometheusClient
...
...
This diff is collapsed.
Click to expand it.
hive/indexer/sync.py
+
3
−
5
View file @
46e91164
...
...
@@ -30,6 +30,7 @@ from hive.utils.stats import BroadcastObject
from
hive.utils.communities_rank
import
update_communities_posts_and_rank
from
hive.indexer.mock_block_provider
import
MockBlockProvider
from
hive.indexer.mock_vops_provider
import
MockVopsProvider
from
datetime
import
datetime
...
...
@@ -137,6 +138,8 @@ def _block_consumer(node, blocksQueue, vopsQueue, is_initial_sync, lbound, uboun
time_start
=
OPSM
.
start
()
rate
=
{}
rate
=
minmax
(
rate
,
0
,
1.0
,
0
)
def
print_summary
():
stop
=
OPSM
.
stop
(
time_start
)
log
.
info
(
"
=== TOTAL STATS ===
"
)
...
...
@@ -301,11 +304,6 @@ class Sync:
DbState
.
initialize
()
Blocks
.
setup_own_db_access
(
self
.
_db
)
# initialize mock data
paths
=
self
.
_conf
.
get
(
"
mock_block_data_path
"
)
for
path
in
paths
:
self
.
load_mock_data
(
path
)
# prefetch id->name and id->rank memory maps
Accounts
.
load_ids
()
...
...
This diff is collapsed.
Click to expand it.
scripts/ci/hive-sync.sh
+
3
−
2
View file @
46e91164
...
...
@@ -27,8 +27,9 @@ EOF
--steemd-url
"
${
RUNNER_HIVED_URL
}
"
\
--prometheus-port
11011
\
--database-url
"
${
DATABASE_URL
}
"
\
--mock-block-data-path
mock_data/block_data/
\
--mock-vops-data-path
mock_data/vops_data/
\
--mock-block-data-path
mock_data/block_data/follow_op/mock_block_data_follow.json
\
mock_data/block_data/community_op/mock_block_data_community.json
\
mock_data/block_data/reblog_op/mock_block_data_reblog.json
\
--community-start-block
4999998
\
2>&1 |
tee
-i
hivemind-sync.log
...
...
This diff is collapsed.
Click to expand it.
scripts/ci_sync.sh
+
2
−
1
View file @
46e91164
...
...
@@ -59,5 +59,6 @@ fi
echo
Attempting to starting hive
sync
using hived node:
$HIVEMIND_SOURCE_HIVED_URL
.
Max
sync
block is:
$HIVEMIND_MAX_BLOCK
echo
Attempting to access database
$DB_URL
./
$HIVE_NAME
sync
--pid-file
hive_sync.pid
--test-max-block
=
$HIVEMIND_MAX_BLOCK
--test-profile
=
False
--steemd-url
"
$HIVEMIND_SOURCE_HIVED_URL
"
--prometheus-port
11011
\
--database-url
$DB_URL
--mock-block-data-path
mock_data/block_data/
--mock-vops-data-path
mock_data/vops_data/
--community-start-block
4999998 2>&1 |
tee
-i
hivemind-sync.log
--database-url
$DB_URL
--mock-block-data-path
mock_data/block_data/follow_op/mock_block_data_follow.json mock_data/block_data/community_op/mock_block_data_community.json mock_data/block_data/reblog_op/mock_block_data_reblog.json
\
--community-start-block
4999998 2>&1 |
tee
-i
hivemind-sync.log
rm
hive_sync.pid
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment