add github workflows and fix breaking changes (#1)

This commit is contained in:
Ivan Panteleev 2024-03-14 16:02:41 +03:00 committed by GitHub
parent ff352cf14f
commit 9f0095ab2b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 28 additions and 12 deletions

20
.github/workflows/docker-build.yml vendored Normal file
View File

@ -0,0 +1,20 @@
name: Build and publish Docker image
on:
push:
branches:
- 'master'
workflow_dispatch:
env:
REGISTRY: ghcr.io
jobs:
build-push:
runs-on: ubuntu-latest
steps:
- uses: valitydev/action-deploy-docker@v2
with:
registry-username: ${{ github.actor }}
registry-access-token: ${{ secrets.GITHUB_TOKEN }}
platforms: linux/amd64,linux/arm64

View File

@ -333,7 +333,7 @@ class Close(object):
)
if not self.skip_flush:
try:
self.client.indices.flush_synced(index=lst_as_csv, ignore_unavailable=True)
self.client.indices.flush(index=lst_as_csv, ignore_unavailable=True, force=True)
except ConflictError as err:
if not self.ignore_sync_failures:
raise ConflictError(err.status_code, err.error, err.info)

View File

@ -55,17 +55,17 @@ try:
curator_exe = Executable(
"run_curator.py",
base=base,
targetName = "curator",
target_name = "curator",
)
curator_cli_exe = Executable(
"run_singleton.py",
base=base,
targetName = "curator_cli",
target_name = "curator_cli",
)
repomgr_exe = Executable(
"run_es_repo_mgr.py",
base=base,
targetName = "es_repo_mgr",
target_name = "es_repo_mgr",
)
build_dict = {
"build_exe": dict(
@ -78,19 +78,19 @@ try:
curator_exe = Executable(
"run_curator.py",
base=base,
targetName = "curator.exe",
target_name = "curator.exe",
icon = icon
)
curator_cli_exe = Executable(
"run_singleton.py",
base=base,
targetName = "curator_cli.exe",
target_name = "curator_cli.exe",
icon = icon
)
repomgr_exe = Executable(
"run_es_repo_mgr.py",
base=base,
targetName = "es_repo_mgr.exe",
target_name = "es_repo_mgr.exe",
icon = icon
)

View File

@ -176,11 +176,7 @@ snap_body = {
}
verified_nodes = {'nodes': {'nodeid1': {'name': 'node1'}, 'nodeid2': {'name': 'node2'}}}
synced_pass = {
"_shards":{"total":1,"successful":1,"failed":0},
"index_name":{
"total":1,"successful":1,"failed":0,
"failures":[],
}
"_shards":{"total":1,"successful":1,"failed":0}
}
synced_fail = {
"_shards":{"total":1,"successful":0,"failed":1},