Skip to content

HMS-9590: update repos and scripts upon frontend refactor#1358

Open
Starle21 wants to merge 1 commit intocontent-services:mainfrom
Starle21:HMS-9590
Open

HMS-9590: update repos and scripts upon frontend refactor#1358
Starle21 wants to merge 1 commit intocontent-services:mainfrom
Starle21:HMS-9590

Conversation

@Starle21
Copy link
Contributor

@Starle21 Starle21 commented Jan 9, 2026

Due to the frontend refactor in frontend PR #763,
there was a need to update playwright tests
and the accompanied repositories and the script
that are used for local playwright tests.

Now, repos-minimal script imports hardcoded repositories
next to the original epel10 and small repositories.

A new script which counts
the duration how long it takes to import
and snapshot or introspect the required repos
for testing has been added.

@xbhouse
Copy link
Contributor

xbhouse commented Jan 9, 2026

Copy link
Member

@dominikvagner dominikvagner left a comment

Choose a reason for hiding this comment

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

1 comment for the new command, I think we should update the old one instead 💭

and this PR is also missing an update to the GH workflow for CI where the command is used (we also run frontend tests there, so those would break after the FE changes) 👀
one other thing is, if the small codeready repo would be removed from the setup, some of our backend PW tests would break
(also in the helpers inside test-utils, we have a constant with the URL for the small testing repo, that might also need to be changed, if the repo isn't going to be available) 😅

mk/repos.mk Outdated
Comment on lines 29 to 36
.PHONY: repos-initial
repos-initial: ## Import and snapshot or introspect repos needed before running Playwright tests, the repos used: HARDCODED + EPEL10
OPTIONS_REPOSITORY_IMPORT_FILTER=hardcoded go run ./cmd/external-repos/main.go import
go run cmd/external-repos/main.go snapshot --url https://cdn.redhat.com/content/dist/rhel10/10/aarch64/appstream/os/ --force
OPTIONS_REPOSITORY_IMPORT_FILTER=hardcoded go run ./cmd/external-repos/main.go import
go run cmd/external-repos/main.go snapshot --url https://cdn.redhat.com/content/dist/rhel10/10/aarch64/baseos/os/ --force
OPTIONS_REPOSITORY_IMPORT_FILTER=epel10 go run ./cmd/external-repos/main.go import
go run cmd/external-repos/main.go introspect --url https://dl.fedoraproject.org/pub/epel/10/Everything/x86_64/ --force
Copy link
Member

Choose a reason for hiding this comment

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

I don't think it makes sense to have a new command for this 🤔
The purpose of repos-minimal was to import the minimal collection of repos needed for local testing (FE+BE), namely the Playwright tests, if the requirements for that changed, so should the command. Without it being used for the setup in PR checks or locally, it would sort of loose its purpose 😅

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for your inputs! I was not clear about whether the command is also meant to be used somewhere else. If not then I agree that there is no reason to create a new command.
I will therefore update the old one to use the new repositories.

Regarding the small codeready repo - if some backend PW tests were to fail, then I think it is no problem to add it there, since it is small, it won't really extend the import time.
So I will add that repo back into the command.

@dominikvagner dominikvagner self-assigned this Jan 9, 2026
Due to the frontend refactor in frontend PR content-services#763,
there was a need to update playwright tests,
the accompanied repositories and the script
that are used for local playwright tests.
The script repos-minimal imports the previous EPEL and SMALL repo,
plus 2 hardcoded repos. A new script which counts
the duration how long it takes to import
and snapshot or introspect the required repos
for testing has been added.
repos-minimal: ## Import and snapshot or introspect repos needed before running Playwright tests, the repos used: HARDCODED (2) + SMALL + EPEL10
OPTIONS_REPOSITORY_IMPORT_FILTER=hardcoded go run ./cmd/external-repos/main.go import
go run cmd/external-repos/main.go snapshot --url https://cdn.redhat.com/content/dist/rhel10/10/aarch64/appstream/os/ --force
OPTIONS_REPOSITORY_IMPORT_FILTER=hardcoded go run ./cmd/external-repos/main.go import
Copy link
Member

Choose a reason for hiding this comment

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

is there a reason for the second import? 🤔 it should be enough to only import it once 😅

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.

3 participants