Skip to content

Conversation

@JesperDramsch
Copy link
Owner

  • Fix CI failures caused by interactive prompts in non-interactive environments
  • Auto-detect sub field using existing subs.yml keyword mappings (e.g., DjangoCon → WEB)
  • Fall back to DEFAULT_SUB = "PY" when no keyword match in CI mode
  • Fix load_subs() to use module-relative path (Path(file).parent) instead of hardcoded Path("utils", ...) for robustness

Test plan

  • CI merge workflow completes without EOF errors
  • DjangoCon conferences auto-detected as WEB
  • Conferences without keyword matches default to PY in CI
  • Interactive mode still prompts for missing fields locally

Fixes the error:

   What's the value of 'sub' for conference 'DjangoCon USA'...: 
   ERROR - EOF when reading a line

- Add auto-detection of 'sub' field based on conference name keywords
- Define default 'sub' value (PY) for conferences without keyword match
- Skip interactive prompts in CI environments (when stdin is not a tty)
- Fixes EOF error when CI tries to prompt for missing conference fields

The fill_missing_required function now:
1. Tries to auto-detect 'sub' using existing subs.yml keywords
2. Falls back to DEFAULT_SUB (PY) in non-interactive mode
3. Skips prompts for other required fields in CI (leaves as NaN for validation)
- Change load_subs() to use Path(__file__).parent for robustness
- Add fallback in _load_subs_keywords() if loading fails
- Prevents failures when script is run from non-root directories
@JesperDramsch JesperDramsch merged commit 5a39ccd into main Jan 19, 2026
11 checks passed
@JesperDramsch JesperDramsch deleted the claude/fix-deprecated-project-field-34PI7 branch January 19, 2026 12:53
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