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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cypress as dep and initialize first test #1342

Merged
merged 1 commit into from Jan 8, 2024
Merged

Add cypress as dep and initialize first test #1342

merged 1 commit into from Jan 8, 2024

Conversation

norbye
Copy link
Member

@norbye norbye commented Jan 8, 2024

Setup initial cypress setup and test.

Had some issues running this through drone, will look into that later.

Not much juicy stuff to test right now, but I've got a login bypass ready to enable testing of more functionality that requires authentication - but we'll save that for later too 馃殼

Resolves ABA-414

@norbye norbye added enhancement Pull requests that make or issues that suggest enhancements, instead of just purely new features review-needed Pull requests that need review labels Jan 8, 2024
Copy link

linear bot commented Jan 8, 2024

ABA-414 Add e2e tests

@norbye norbye requested a review from a team January 8, 2024 08:06
Copy link
Member

@ivarnakken ivarnakken left a comment

Choose a reason for hiding this comment

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

Much needed 馃弲

image: abakus/lego-testbase:python3.9
pull: true
image: abakus/lego-testbase:poetry
pull: if-not-exists
Copy link
Member

Choose a reason for hiding this comment

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

Any reason this is only added to this step? Just genuinely wondering

Copy link
Member Author

Choose a reason for hiding this comment

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

Hmm good question!

The drone docs aren't very clear on what the default value of pull is imo, but the way I understand the docs, we wouldn't really need to use the pull attribute as long as we're not tagging out images with :latest, unless we do not want it to cache.
So the default behavior for non-latest tags appears to be if-not-exists.

But regarding why it's just on this step, I suppose it is because this file was originally copied from lego, and in https://github.com/webkom/lego/blob/master/.drone.yml#L69-L92 the only two steps that have the pull attribute set are black and mypy, and mypy is not implemented in admissions.

pull: true does not appear to be a valid tag however, but if it is processed at all I would guess it reads as pull: always, which would mean unnecessary fetching of docker images that are cached

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Yes I see. I've had mixed experiences with Drone's "cache", so imo. it's fine to leave it.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fair enough. Although I guess we might eventually decide on whether or not we type out the configuration or not - as all the steps should now be configured the same way, but black is the only one where it's written out

@norbye norbye added approved Pull requests that have been approved and removed review-needed Pull requests that need review labels Jan 8, 2024
@norbye norbye merged commit ad61ea2 into master Jan 8, 2024
3 checks passed
@norbye norbye deleted the cypress-init branch January 8, 2024 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Pull requests that have been approved enhancement Pull requests that make or issues that suggest enhancements, instead of just purely new features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants