EUVIMEDOpdag EUVIMED
Open access · CC BY 4.0

Heterogeneous Graph Transformer with Multi-View Representation Learning for Flaky Test Detection

Peng Dai, Xiaoqin Ma, Yanyang Zhao, Yunzhan Gong

Computers · 2026-06-07 · 15 (6) · 372

DOI: 10.3390/computers15060372 ↗

At a glance

Journal article in Computers, published online on 2026-06-07. Written by Peng Dai and 3 co-authors. 48 references. The full text is freely available (open access, CC BY 4.0).

AbstractBibliografiske oplysningerCiteRelated studies

Abstract (original language)

Continuous Integration pipelines rely on large-scale automated testing to support rapid releases. However, flaky tests exhibit non-deterministic outcomes under an identical code and configuration, substantially increasing rerun costs and hindering fault localization. Existing approaches struggle to uniformly model heterogeneous runtime evidence and its multi-relational structure in CI environments, which limits cross-project generalization and interpretability. To address this gap, this paper presents HgtFlaky, a runtime-evidence-centered multi-view heterogeneous graph learning framework. A Unified Event Model is introduced to normalize heterogeneous CI artifacts into semantically consistent event quadruples, and a heterogeneous execution graph is then constructed to capture testing entities and multiple relation types. Based on the HEG, three complementary views are derived to characterize run-level, test-level, and thread-level flaky behaviors. A heterogeneous graph Transformer is further adopted to jointly encode the multi-view graph instances and learn transferable test-level representations for flaky/non-flaky prediction. Experiments on two benchmark datasets, FlakeFlagger and IDoFT, show that HgtFlaky achieves strong and stable performance. Under 10-fold cross-validation, it obtains an F1-score of 83% on FlakeFlagger and 98% on IDoFT. Under per-project validation on FlakeFlagger, HgtFlaky achieves 78% Precision, 89% Recall, and 81% F1-score, outperforming Flakify by 8 percentage points and FlakeFlagger by 74 percentage points in F1-score.

Cite

APA

Dai, P., Ma, X., Zhao, Y., & Gong, Y. (2026). Heterogeneous Graph Transformer with Multi-View Representation Learning for Flaky Test Detection. Computers, 15(6), 372. https://doi.org/10.3390/computers15060372

Vancouver

Dai P, Ma X, Zhao Y, Gong Y. Heterogeneous Graph Transformer with Multi-View Representation Learning for Flaky Test Detection. Computers. 2026;15(6):372. doi:10.3390/computers15060372

BibTeX
@article{Dai2026,
  author = {Dai, Peng and Ma, Xiaoqin and Zhao, Yanyang and Gong, Yunzhan},
  title = {Heterogeneous Graph Transformer with Multi-View Representation Learning for Flaky Test Detection},
  journal = {Computers},
  year = {2026},
  volume = {15},
  number = {6},
  pages = {372},
  doi = {10.3390/computers15060372}
}
Start for free →