Skip to content

Test all operating systems#43

Merged
kalhauge merged 23 commits into
mainfrom
test_all_operating_systems
Nov 18, 2025
Merged

Test all operating systems#43
kalhauge merged 23 commits into
mainfrom
test_all_operating_systems

Conversation

@wogyfikacja

Copy link
Copy Markdown
Collaborator

and a few fixes I needed on the way to make it work

…nymore :V tried to fix it, as this made the tests fail. fixed it in some other places than cli, as am afraid could come up randomly
@wogyfikacja wogyfikacja requested a review from kalhauge November 16, 2025 21:38

@kalhauge kalhauge left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks really good!

One improvement would be to encapsulate the "docker" command into something resuable.

Comment thread jpamb/cli.py Outdated
f"{suite.workfolder}:/workspace",
docker,
]
docker_cmd = get_docker_command()

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Can you refactor this so that it returns a docker object with a run method instead which we can use to replace the commands below?

Comment thread jpamb/cli.py Outdated
Comment on lines 581 to 587
run(
cmd
+ ["javac", "-d", "target/classes"]
+ list(a.relative_to(suite.workfolder) for a in suite.sourcefiles()),
+ [a.relative_to(suite.workfolder).as_posix() for a in suite.sourcefiles()],
logerr=log.warning,
logout=log.info,
timeout=600,

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be the following instead, incapsulating all the weird docker details?

docker.run(["javac", "-d", "target/classes"]
            + [a.relative_to(suite.workfolder).as_posix() for a in suite.sourcefiles()],
            logerr=log.warning,
            logout=log.info,
            timeout=600,
)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be fine now, i hope

@wogyfikacja wogyfikacja requested a review from kalhauge November 17, 2025 12:53

@kalhauge kalhauge left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good Job!

@kalhauge kalhauge merged commit e8e61d8 into main Nov 18, 2025
3 checks passed
@kalhauge kalhauge deleted the test_all_operating_systems branch November 18, 2025 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants