-
Notifications
You must be signed in to change notification settings - Fork 8
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
Some additional tests for competition #205
Conversation
🤔 Any idea how I can approve the CI to run? Or why I can't? No such option anywhere... EDIT: Ok, seems it is becaused actions are restricted to |
Ok, fixed. Could you rebase onto |
Ok, I'll do it tomorrow. It's 4 AM rn at my tz. |
fd7f836
to
bf0d32e
Compare
Ok. Looks like I've synced a fork and rebased my branch onto main. |
GLFW dependencies are missing. They need to be installed before the benchmarks run. See here for an example: https://github.com/mlange-42/arche-pixel/blob/main/.github/workflows/tests.yml#L24 |
Is it about changing the build stage? |
No, it is required for the failing jobs in |
Ah, I get it. The problem is that I wrapped ebitengine at myself. |
1ef5199
to
712a130
Compare
Yeah, I would try to avoid such dependencies where possible, esp. if it includes something as heavy as OpenGL. |
Mh, another error around GLFW. But this time, it should not happen when just importing it. It looks like Ebiten actually does some GLFW stuff. I got this error only when actually trying to create a window, or something else that requires a "display". So I guess this won't run in the CI in it's current form. |
@sedyh Finally, I found a way to circumvent the problem of no display in the CI runners. There is test:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: '1.20.x'
- name: Install dependencies
run: |
sudo apt-get update -y
sudo apt-get install -y libgl1-mesa-dev xorg-dev xvfb
go get .
- name: Run tests
run: |
xvfb-run -a go test -v ./... -covermode=count -coverprofile="coverage.out"
go tool cover -func="coverage.out" |
712a130
to
06efd92
Compare
Yeah... if we are going to merge that, then, probably, only in a separate branch, so as not to litter with additional dependencies? |
I am a bit undecided. Maybe I will merge it, as it adds the dependencies only to the But maybe I will treat it like the Entitas benchmarks, and merge both branches together. Would then rebase when re-running due to improvements here or in the other implementations. Will prepare and upload the plots in the next days. |
velocity := &Velocity{} | ||
|
||
for i := 0; i < nEntities; i++ { | ||
w.AddEntity(&position) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sedyh This should not be a pointer (position
is already a pointer). The effect is that everything below does nothing. Try it by counting w.Each
loops iterations.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I'll fix it soon.
Another thing I notice while preparing the plots is that something in your PR (a dependency?) is slowing down some of the benchmarks, particularly in the Take iterations as a baseline, and compare build against it... On
On your branch:
|
Hello, sorry for the long answer. The situation with the build slowdown quite strange, I'll try my best to solve it later. |
Well, it's been sooo long until the last message. I think I should close this PR for now until I figure out the problem so that it doesn’t just hang around. |
Arche is nice btw ;) |
Thanks! Actually, IMO it would be useful to keep this issue open. EDIT: Oops, this is an MR, not an issue. So all fine with closing it. |
I've added the tests for sedyh/mizu@experimental and some additional fixes.
From this discussion: #200.