Skip to content

ci: Configure numtracker as part of compose - #1641

Open
ZohebShaikh wants to merge 1 commit into
update-keycloakfrom
configure_numtracker
Open

ci: Configure numtracker as part of compose#1641
ZohebShaikh wants to merge 1 commit into
update-keycloakfrom
configure_numtracker

Conversation

@ZohebShaikh

@ZohebShaikh ZohebShaikh commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Configure numtracker as part of compose services

@ZohebShaikh
ZohebShaikh requested a review from a team as a code owner August 24, 2026 10:43
@ZohebShaikh
ZohebShaikh force-pushed the configure_numtracker branch from 525f2d4 to 912db5b Compare August 24, 2026 10:43
@codecov

codecov Bot commented Aug 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.34%. Comparing base (7214d58) to head (912db5b).

Additional details and impacted files
@@               Coverage Diff                @@
##           update-keycloak    #1641   +/-   ##
================================================
  Coverage            96.34%   96.34%           
================================================
  Files                   46       46           
  Lines                 3666     3666           
================================================
  Hits                  3532     3532           
  Misses                 134      134           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Alexj9837 Alexj9837 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good, as some fall backs and takes whats in the just file and adds it into configure_numtracker

@tpoliaw tpoliaw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Comments are mostly minor but can this PR be merged after the other convert-to-python one so that they stay separate in the history

Comment thread justfile
"--detector" '{instrument}-{scan_number}-{detector}'
"--number" "43")

services: compose configure-adsim

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is going to play havoc with muscle memory :/. Are there any docs that mention just services that will need updating?

Comment on lines +283 to +286
config: {directory: "/tmp/",
scan: "{instrument}-{scan_number}",
detector: "{instrument}-{scan_number}-{detector}",
scanNumber: 43}) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
config: {directory: "/tmp/",
scan: "{instrument}-{scan_number}",
detector: "{instrument}-{scan_number}-{detector}",
scanNumber: 43}) {
config: {directory: "/tmp/",
scan: "{instrument}-{scan_number}",
detector: "{instrument}-{scan_number}-{detector}",
scanNumber: 43}) {



def configure_numtracker():
def _():

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why wrap this in a function? Isn't it only being used once?

response.raise_for_status()
return response.json().get("access_token")

nt_url = os.environ.get("NT_URL", "http://localhost:8406/graphql")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could this go with the other constants at the top of the module?


nt_url = os.environ.get("NT_URL", "http://localhost:8406/graphql")
response = requests.post(
str(nt_url),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Isn't the url already a string?

@tpoliaw
tpoliaw dismissed their stale review August 24, 2026 15:54

Just seen there is a 'enqueue stack' option which might do the same thing - but either way, it would be good to see this as a separate change when everything else is merged

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.

3 participants