Skip to content

fix: set base_log_folder to display task logs in the UI - #834

Open
sweb wants to merge 5 commits into
mainfrom
chore/missing-logs-repro
Open

fix: set base_log_folder to display task logs in the UI#834
sweb wants to merge 5 commits into
mainfrom
chore/missing-logs-repro

Conversation

@sweb

@sweb sweb commented Aug 4, 2026

Copy link
Copy Markdown
Member

Description

The Airflow UI should be able to show task logs which are requested from the worker pod. This requires setting BASE_LOG_FOLDER to the correct place, which differs from our log mount - this PR fixes that.

Definition of Done Checklist

  • Not all of these items are applicable to all PRs, the author should update this template to only leave the boxes in that are relevant
  • Please make sure all these things are done and tick the boxes

Author

  • Changes are OpenShift compatible
  • CRD changes approved
  • CRD documentation for all fields, following the style guide.
  • Helm chart can be installed and deployed operator works
  • Integration tests passed (for non trivial changes)
  • Changes need to be "offline" compatible
  • Links to generated (nightly) docs added
  • Release note snippet added

Reviewer

  • Code contains useful comments
  • Code contains useful logging statements
  • (Integration-)Test cases added
  • Documentation added or updated. Follows the style guide.
  • Changelog updated
  • Cargo.toml only contains references to git tags (not specific commits or branches)

Acceptance

  • Feature Tracker has been updated
  • Proper release label has been added
  • Links to generated (nightly) docs added
  • Release note snippet added
  • Add type/deprecation label & add to the deprecation schedule
  • Add type/experimental label & add to the experimental features tracker

@sweb sweb changed the title chore: demonstrate missing logs in kuttl test fix: set base_log_folder to display task logs in the UI Aug 7, 2026
@sweb sweb moved this to Development: Waiting for Review in Stackable Engineering Aug 7, 2026
@sweb sweb self-assigned this Aug 7, 2026
@sbernauer
sbernauer requested a review from adwk67 August 7, 2026 12:27
@adwk67

adwk67 commented Aug 7, 2026

Copy link
Copy Markdown
Member

@sbernauer I'm not the best person to review this as I co-authored it

@adwk67
adwk67 removed their request for review August 7, 2026 13:35
@razvan
razvan self-requested a review August 10, 2026 08:03
@razvan razvan moved this from Development: Waiting for Review to Development: In Review in Stackable Engineering Aug 10, 2026

@razvan razvan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm with two small suggestions

'base_log_folder': '{log_dir}',
# `serve_logs` on the workers serves task logs from this directory, so it must be
# the folder the Task SDK writes task logs to, not the Vector agent log directory.
'base_log_folder': os.path.expanduser(conf.get('logging', 'BASE_LOG_FOLDER')),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Claude suggests to use conf.get_mandarory_value() as it would produce a better error message

Suggested change
'base_log_folder': os.path.expanduser(conf.get('logging', 'BASE_LOG_FOLDER')),
'base_log_folder': os.path.expanduser(conf.get_mandarory_value('logging', 'BASE_LOG_FOLDER')),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

That should be mandatory: somewhere a typo slipped in

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

why aren't you acquainted with the new mandarory technology? it's when you spill fruit juice over your keyboard so that your fingers stick closer to the keys.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

mandalorian-ory technology? Now we're talking


use super::*;

fn resolved_image(product_version: &str) -> ResolvedProductImage {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

There is already a function called resolved_product_image_stub() in this module that could either be removed or reused.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Development: In Review

Development

Successfully merging this pull request may close these issues.

3 participants