Searcharxiv⌕ Search

arXiv subjects

João Medeiros

Publications and source records attributed to João Medeiros.

3 recordsLinked to original sources

The Vocabulary of Flaky Tests in Swift

Flaky tests produce non-deterministic outcomes without code change, eroding CI confidence and delaying deliveries. While vocabulary-based machine learning prediction has proven effective for Java and JavaScript, no study has evaluated it for Swift, a language whose testing style is dominated by UI and asynchronous code. We collect 91 flaky and 22,349 stable tests from 15 open-source Swift projects via re-execution and commit-history mining, then train five classifiers (Random Forest, Decision Tree, Naive Bayes, SVM, KNN) on TF-IDF unigram+bigram features under stratified 5-fold cross-validation. Random Forest achieves the best performance (Precision = 0.92, F1 = 0.86, AUC = 0.95) and substantially outperforms trivial baselines, among them a vocabulary-threshold rule applied to the most informative tokens, confirming a genuine discriminative signal (MCC = 0.75 vs. 0.08 for the best baseline). Information-gain analysis reveals two complementary signal types. Flakiness markers appear predominantly in unstable tests and comprise concurrency primitives (async, await), expectation-based synchronisation (expectation, fulfill), error propagation (throws), and explicit timing dependence (timeout, wait, now). Stability markers, chiefly the assertion vocabulary of plainly synchronous tests (xctassertequal), count as evidence against flakiness. Error analysis shows that the model fails when flakiness is hidden in shared infrastructure outside the test body or when async constructs are used in a deterministic context, exposing the intrinsic limit of lexical prediction. These results extend vocabulary-based flakiness detection to the Swift ecosystem and characterise both its effectiveness and its boundaries.

cs.SE↗

Non-Linear Relativity in Position Space

We propose two methods for obtaining the dual of non-linear relativity as previously formulated in momentum space. In the first we allow for the (dual) position space to acquire a non-linear representation of the Lorentz group independently of the chosen representation in momentum space. This requires a non-linear definition for the invariant contraction between momentum and position spaces. The second approach, instead, respects the linearity of the invariant contraction. This fully fixes the dual of momentum space and dictates a set of energy-dependent space-time Lorentz transformations. We discuss a variety of physical implications that would distinguish these two strategies. We also show how they point to two rather distinct formulations of theories of gravity with an invariant energy and/or length scale.

gr-qc↗

On the bispectrum of COBE and WMAP

The COBE-DMR 4-year maps displayed a strong non-Gaussian signal in the ``inter-scale'' components of the bispectrum: their observed values did not display the scatter expected from Gaussian maps. We re-examine this and other suggested non-Gaussian features in the light of WMAP. We find that they all disappear. Given that it was proved that COBE-DMR high noise levels and documented systematics could at most {\it dilute} the observed non-Gaussian features, we conclude that this dataset must have contained non-negligible undocumented systematic errors. It turns out that the culprit is a combination of QuadCube pixelization and data collected during the ``eclipse season''.

astro-ph↗