Skip to content

Conversation

@SylvainSenechal
Copy link
Contributor

ISSUE: CLDSRVCLT-5

@SylvainSenechal SylvainSenechal force-pushed the improvement/CLDSRVCLT-5 branch 13 times, most recently from 5305e7d to 670da80 Compare December 10, 2025 17:56
@SylvainSenechal SylvainSenechal force-pushed the improvement/CLDSRVCLT-7 branch 16 times, most recently from 51e8e9c to 3d0f040 Compare December 15, 2025 13:55
@SylvainSenechal SylvainSenechal force-pushed the improvement/CLDSRVCLT-5 branch from bfec561 to f20d74a Compare January 14, 2026 17:47
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

All this new setup is just to be able to run backbeat api server. I don't particularly like it, most of it is copied from backbeat actions, and it's very long considering it's just for testing (and the tests aren't even thorough as you'll see). But it couldn't find anything else simplier

import { describeForBackbeatSetup } from './testHelpers';
import assert from 'assert';

// Note : these tests are relatively simple, as it's not straightforward to setup
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Might remove this comment actually 🤔 but you get the idea : With this setup, I can test that for example, making a "pauseLocation" call to backbeat is actually well received, but i don't have any location to pause, and no real lifecycle task to run. The best test is really just to start using this client in Zenko, we are already using these apis in Zenko, but implemented them manually.

@scality scality deleted a comment from bert-e Jan 14, 2026
@SylvainSenechal SylvainSenechal marked this pull request as ready for review January 14, 2026 17:53
@bert-e
Copy link

bert-e commented Jan 14, 2026

Waiting for approval

The following approvals are needed before I can proceed with the merge:

  • the author

  • 2 peers

- name: Wait for Backbeat API to be ready
run: |
set -o pipefail
bash .github/scripts/wait_for_local_port.bash 8900 60
Copy link
Contributor

Choose a reason for hiding this comment

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

should be added for docker-compose instead

condition: service_started
command: node bin/backbeat.js

backbeat-queue-processor:
Copy link
Contributor

Choose a reason for hiding this comment

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

is queue processor needed?
AFAIU backbeat api routes should just target backbeat-api, and there is no "direct" link between both services...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Technically, shouldn't be needed. But I can't make it work without it for one of the apis : I think what happens is the queue processor is doing some setup in kafka or zookeeper on startup (function setupZkSiteNode in backbeat), which is then useful for the apis. I tried to set this up in zookeeper from the docker compose file directly but can't make it work

@@ -0,0 +1,216 @@
version: '3.8'
Copy link
Contributor

Choose a reason for hiding this comment

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

there is quite a bit of overlap between the docker-compose; a better way would be to have a single one, and possibly use profiles to identify optional parts.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I tried it, it works, I wouldn't say its worse but it creates quite a large file and add some other complexity compared with fully independent docker compose files for each test

@SylvainSenechal SylvainSenechal force-pushed the improvement/CLDSRVCLT-5 branch 7 times, most recently from b89315a to 9ffcbce Compare January 16, 2026 10:35
@SylvainSenechal SylvainSenechal force-pushed the improvement/CLDSRVCLT-5 branch from 9ffcbce to 0ad1669 Compare January 16, 2026 15:17
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.

4 participants