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

e2e limits_file_watcher_on_docker #387

Merged
merged 1 commit into from
Nov 20, 2024
Merged

e2e limits_file_watcher_on_docker #387

merged 1 commit into from
Nov 20, 2024

Conversation

eguzki
Copy link
Contributor

@eguzki eguzki commented Nov 20, 2024

No description provided.

Signed-off-by: Eguzki Astiz Lezaun <[email protected]>
@eguzki eguzki force-pushed the new-e2e-bases-on-docker branch from c9708d4 to ea9bce8 Compare November 20, 2024 11:40
@eguzki eguzki marked this pull request as ready for review November 20, 2024 12:36
@eguzki eguzki requested a review from alexsnaps November 20, 2024 12:36
@alexsnaps
Copy link
Member

alexsnaps commented Nov 20, 2024

What is this test trying to assert? That we can observe filesystem changes when running within a docker container?

Comment on lines +29 to +30
# the entire path needs to be mounted
# or inotify events are not triggered for updates on the mounted file
Copy link
Member

Choose a reason for hiding this comment

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

This part?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a comment to warn about some configuration that, for unknown reason to me yet, events are not triggered when the file changes. That happens exactly when the file is mounted.

When the parent dir is mounted, then events are triggered whenever the limits file is updated.

@eguzki
Copy link
Contributor Author

eguzki commented Nov 20, 2024

What is this test trying to assert? That we can observe filesystem changes when running within a docker container?

Yes,
Limitador has some coding regarding watching files in dockerized envs https://github.com/Kuadrant/limitador/blob/main/limitador-server/src/main.rs#L268-L289

This e2e test makes sure it works and nothing broke it.

Copy link
Member

@alexsnaps alexsnaps left a comment

Choose a reason for hiding this comment

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

Right, but that's the same behavior as if watching the local FS... So not saying this isn't useful, but it's a lot of jumping through hoops to validate this...
The one downside I see, is that we keep on adding things to the e2e w/o adding much safety nets at the unit cargo test layer. I personally favor quick feedback loops, and e2e tests are both cumbersome and slow to run (and generally will run on CI, which makes that time even longer).
I guess lets add this, see it ever catches anything and see from there. i.e. if it fails, lets make sure we add some quick test that prove its fixed, so we catch it sooner in the future.

@eguzki eguzki merged commit b8e074a into main Nov 20, 2024
10 checks passed
@eguzki eguzki deleted the new-e2e-bases-on-docker branch November 20, 2024 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants