Manuscript Offprint

arXiv:2610.29890

DynaCI: Generating GitHub Actions Workflows via Dynamic Analysis

Javid Ditty, Rahul Ghanshyam Chavan, Nimmi Weeraddana, Foyzul Hassan

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

1st1^{st} Javid Ditty

University of Michigan-Dearborn

Dearborn, Michigan, USA

jditty@umich.edu

3rd3^{rd} Nimmi Weeraddana

University of Calgary

Calgary, Alberta, Canada

nimmi.weeraddana@ucalgary.ca

2nd2^{nd} Rahul Ghanshyam Chavan

University of Michigan-Dearborn

Dearborn, Michigan, USA

rchavan@umich.edu

4th4^{th} Foyzul Hassan

University of Michigan-Dearborn

Dearborn, Michigan, USA

foyzul@umich.edu

Abstract—Continuous Integration (CI) is an essential practice that automatically validates code changes through builds and tests. However, configuring CI workflows remains challenging, as modern software often features complex architectures, numerous dependencies, and support for diverse execution environments. Most CI platforms also require workflows to be written in their particular domain-specific languages. As a result, CI workflows are often error-prone and hard to maintain, especially for those unfamiliar with CI semantics. Prior work on automated CI workflow generation requires developers to create specifications that describe their intended workflows using natural language, partial workflows, etc. However, in practice, developers may struggle to articulate requirements and may be unaware of available CI features.

To address these limitations, we propose DynaCI, a novel approach that uses runtime information from developers' local environments to generate CI workflows. DynaCI (i) traces the developers' local environment to collect runtime information, (ii) constructs an initial workflow by applying runtime-informed heuristics, and (iii) iteratively refines the workflow via LLM-based Retrieval Augmented Generation (RAG). We evaluate DynaCI on 50 popular Python projects that use GitHub Actions, a popular CI platform, and compare it against the state-of-the-art CI workflow generation approaches: GH-WCOM and LLM4GW. DynaCI outperforms these existing approaches by more than 21.13% in BLEU score and 20.96% in F1 score on average. It also generates workflows without missing functionality in 56% of cases, while requiring fewer manual modifications to repair such exceptions. These results demonstrate that leveraging runtime information substantially improves LLM-based CI workflow generation, and offer a promising direction for broader DevOps configuration automation.

Index Terms—Continuous integration, Large language models

I. INTRODUCTION

Continuous Integration (CI) is a popular software engineering practice that automates the code integration process in software repositories [1]. Prior work shows that CI enables faster pull request acceptance and frequent releases [2], increases the number of change merges [3], and boosts developer productivity, efficiency, and confidence [4].

While there are many CI platforms [5], [6], [7], GitHub Actions (GHA) remains the most widely used [2], [8], with at least 71.8% of popular GitHub repositories containing a workflow since 2023 [9], [10]. Since December 2025, developers can define a GHA workflow in a YAML using 84 different components, such as event triggers, jobs, steps, actions, runners, matrices, containers, secrets, and conditional rules [11]. With such a capacity for extensive customization, configuring CI workflows is inherently challenging for developers. Saroar et al. [12] surveyed 90 developers and found that 60.87% often encounter difficulties writing workflows. Among these, the most common challenges were related to confusing and error-prone syntax. Zhang et al. [13] studied 6,590 Stack Overflow questions and 315 GitHub issues, and found that workflow configuration issues were discussed more than those related to dependencies, security, integration, deployment, etc. Again, the most common problem among these issues was workflows' "nightmare" syntax [13]. Valenzuela-Toledo et al. [14] has argued that this trend is due, in part, to inadequate tooling support for writing GHA workflows.

Previous works have attempted to provide this tooling support. For example, Mastropaolo et al. [15] propose GH-WCOM, a transformer-based approach that provides code completion suggestions for GHA workflows. Zhang et al. [16] propose LLM4GW, a set of prompting techniques that optimize the performance of Large Language Models (LLMs) on GHA workflow generation, syntactic error identification, code injection vulnerability detection, syntactic error fixing, and code injection vulnerability repair. However, despite their intended benefits, these tools may fall short in practice, as they still require inputs that demand substantial domain knowledge of GHA to produce acceptable configurations. GH-WCOM [15], for example, still requires a developer to write the majority of their workflows beforehand so that it can fill in any gaps. LLM4GW [16] accepts natural language instructions instead, but developers must provide detailed workflow-, job-, and step-level specifications for functional correctness.

To address these concerns, we propose DynaCI, the first tool, to the best of our knowledge, that combines runtime analysis with LLMs to synthesize GHA workflows. Our intuition is that a developer's local environment can serve as a starting point for extracting the information required for generating CI workflows. As the developer runs test suites in their local environment, DynaCI collects runtime traces and extracts information about the executed commands, dependencies, and execution order. It then applies heuristics to select candidate GHA settings (i.e., components), assembles an initial workflow, and iteratively refines it using LLM-based Retrieval Augmented Generation (RAG) [17], [18]. We evaluate DynaCI against GH-WCOM and LLM4GW, the state-of-the-art in GHA workflow synthesis tools, on 50 popular Python projects to answer the following research questions:

RQ 1_{1} How effective is DynaCI at generating CI workflows? To assess whether DynaCI outperforms the state-of-the-art, we compare the tools' workflows against their targets across several popular workflow similarity metrics. We found that DynaCI has a BLEU score [19] of 52.81% and a F1 score of 62.06%, outperforming the state-of-the-art by more than 21.13% and 20.96%, respectively.

RQ 2_{2} How time and cost efficient is DynaCI? Since DynaCI uses an LLM to iteratively refine workflows, we measure its overhead in terms of elapsed time and LLM token usage per workflow. We found that DynaCI incurs a median overhead of 5.55 minutes and 653,755 tokens per workflow.

RQ 3_{3} How much modification is needed for CI workflows generated by DynaCI? Like other workflow synthesis tools, DynaCI may generate workflows that lack intended functionality. In our manual analysis, we found that only 44% of DynaCI workflows lacked intended functionality, whereas every workflow from state-of-the-art tools needed modification.

This paper makes the following contributions:

• It presents DynaCI, the first approach, to the best of our knowledge, that synthesizes GHA workflows using runtime information and LLMs;

• It conducts an empirical analysis of DynaCI on 50 popular, Python-based GitHub projects, showing that it is significantly more effective than existing tools with little overhead and need for modification;

• It conducts an ablation study, showing that DynaCI's hybrid approach plays a substantial role beyond what can be attributed to its heuristics or the LLM alone.

References (65)