Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run validator by test name #119

Open
mizdebsk opened this issue Aug 1, 2024 · 3 comments · May be fixed by #126
Open

Unable to run validator by test name #119

mizdebsk opened this issue Aug 1, 2024 · 3 comments · May be fixed by #126
Assignees
Labels
bug Something isn't working

Comments

@mizdebsk
Copy link
Member

mizdebsk commented Aug 1, 2024

I am unable to run validator by test name.

Reproducer:

mkdir /tmp/tests /tmp/empty1 /tmp/empty2
git clone --bare https://src.fedoraproject.org/tests/javapackages.git /tmp/tests.git
git --git-dir /tmp/tests.git --work-tree /tmp/tests reset --hard 94b1bd7
./run.sh -r -x -sp /tmp/tests/src -d /tmp/empty1 -f /tmp/empty2 /java/maven-metadata

Actual output:

Exception in thread "main" java.lang.RuntimeException: The following arguments were not found as available tests: [/java/maven-metadata]
	at org.fedoraproject.javapackages.validator.Main.select(Main.java:516)
	at org.fedoraproject.javapackages.validator.Main.run(Main.java:644)
	at org.fedoraproject.javapackages.validator.Main.main(Main.java:655)

The exception indicates that the test /java/maven-metadata was not found, but it is available and debug output confirms that:

[DEBUG] Available tests:
...
/java/maven-metadata
@mizdebsk mizdebsk added the bug Something isn't working label Aug 1, 2024
mkoncek added a commit to mkoncek/javapackages-validator that referenced this issue Aug 1, 2024
@mkoncek
Copy link
Member

mkoncek commented Aug 1, 2024

Could you try if that build fixes your problem as well?

@mizdebsk
Copy link
Member Author

mizdebsk commented Aug 1, 2024

Could you try if that build fixes your problem as well?

Sure, but I'd rather manually test a build that passed automated tests. Current one fails CI.

@mizdebsk
Copy link
Member Author

mizdebsk commented Aug 1, 2024

Could you try if that build fixes your problem as well?

With PR #126 I am getting this output:

[DEBUG] Selected validators:
/java/maven-metadata

Which is expected.

mkoncek added a commit to mkoncek/javapackages-validator that referenced this issue Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants