antlr / antlr/antlr4

Github actions not testing swift?

Open
#3,968 0 comments 0 reactions 0 assignees View on GitHub
comp:build comp:testing target:swift
Dominant language
Java
Stars
19k
Forks
3.5k
PR merge metrics
No merged PRs in 30d

Description

When I look in the get up actions template I see:

```
swift) mvn -X -e '-Dtest=python3.**' test ;;
```

Does that mean that we are actually not testing Swift? I see other problems in the actual [execution log](https://github.com/antlr/antlr4/actions/runs/3466680790/jobs/5790790083):

```
...
[DEBUG] Failed to decrypt password for server github: org.sonatype.plexus.components.sec.dispatcher.SecDispatcherException: java.io.FileNotFoundException: /Users/runner/.m2/settings-security.xml (No such file or directory)
org.sonatype.plexus.components.sec.dispatcher.SecDispatcherException: org.sonatype.plexus.components.sec.dispatcher.SecDispatcherException: java.io.FileNotFoundException: /Users/runner/.m2/settings-security.xml (No such file or directory)
at org.sonatype.plexus.components.sec.dispatcher.DefaultSecDispatcher.decrypt (DefaultSecDispatcher.java:140)
at org.apache.maven.settings.crypto.DefaultSettingsDecrypter.decrypt (DefaultSettingsDecrypter.java:114)
at org.apache.maven.settings.crypto.DefaultSettingsDecrypter.decrypt (DefaultSettingsDecrypter.java:70)
at org.apache.maven.internal.aether.DefaultRepositorySystemSessionFactory.newRepositorySession (DefaultRepositorySystemSessionFactory.java:169)
at org.apache.maven.DefaultMaven.newRepositorySession (DefaultMaven.java:365)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:185)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:960)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:566)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: org.sonatype.plexus.components.sec.dispatcher.SecDispatcherException: java.io.FileNotFoundException: /Users/runner/.m2/settings-security.xml (No such file or directory)
at org.sonatype.plexus.components.sec.dispatcher.SecUtil.read (SecUtil.java:66)
at org.sonatype.plexus.components.sec.dispatcher.DefaultSecDispatcher.getSec (DefaultSecDispatcher.java:229)
at org.sonatype.plexus.components.sec.dispatcher.DefaultSecDispatcher.decrypt (DefaultSecDispatcher.java:109)
at org.apache.maven.settings.crypto.DefaultSettingsDecrypter.decrypt (DefaultSettingsDecrypter.java:114)
at org.apache.maven.settings.crypto.DefaultSettingsDecrypter.decrypt (DefaultSettingsDecrypter.java:70)
...
[INFO] Running org.antlr.v4.test.runtime.python3.Python3RuntimeTests
Ignore ExtraneousInput
Ignore AtnStatesSizeMoreThan65535
Ignore PredFromAltTestedInLoopBack_1
Ignore DropLoopEntryBranchInLRRule_4
[INFO] Tests run: 351, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 22.59 s - in org.antlr.v4.test.runtime.python3.Python3RuntimeTests
...
```

Whooops! Yep, looks like a classic cut and paste error.

I noticed this because I couldn't test locally.

Contributor guide

Open the contributing guide

Research direction

Start with the GitHub Actions template and inspect the `swift)` branch shown in the issue, then compare it with the execution log linked there. Confirm that the workflow runs the Swift tests rather than the Python 3 tests, and verify the corrected job completes successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, python, swift
Domain
ci-cd, testing
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.