You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, multiple languages (nodejs, java, php, python) construct intermediate staging subdirectories named owl-bot-staging prior to running post-processing and code combination tools.
While all generators share the need to stage generated artifacts before finalizing output, each language package independently defines hardcoded string constants and custom directory nesting logic.
Standardizing owl-bot-staging creation, path formatting, and cleanup lifecycle under a common internal pattern will reduce duplicated code, prevent parallel-build race conditions during cleanup, and maintain consistent staging directory layouts across all SDK generators.
Currently, multiple languages (
nodejs,java,php,python) construct intermediate staging subdirectories namedowl-bot-stagingprior to running post-processing and code combination tools.While all generators share the need to stage generated artifacts before finalizing output, each language package independently defines hardcoded string constants and custom directory nesting logic.
Standardizing
owl-bot-stagingcreation, path formatting, and cleanup lifecycle under a common internal pattern will reduce duplicated code, prevent parallel-build race conditions during cleanup, and maintain consistent staging directory layouts across all SDK generators.Language Code Locations (at time of issue)
1. Node.js Generator
internal/librarian/nodejs/generate.go#L118(Local File)internal/librarian/nodejs/generate.go#L392(Local File)2. Java Generator
internal/librarian/java/postprocess.go#L38(Local File)internal/librarian/java/postprocess.go#L151(Local File)3. PHP Generator
internal/librarian/php/generate.go#L38(Local File)internal/librarian/php/generate.go#L93(Local File)4. Python Generator
internal/librarian/python/generate.go#L254(Local File)ngDir := filepath.Join(generationRoot, "owl-bot-staging", library.Name, stagingChildDirectory)