Skip to content

Conversation

@bbhtt
Copy link
Contributor

@bbhtt bbhtt commented Sep 11, 2025

This makes it harder for me to write the test for #652, but if offline tests are wanted, so be it.

I didn't delete the test files, as I plan to reuse them later for the test in #652. I need some fully qualified and valid desktop file, metainfo file for that.

We disable appstream-compose and instead add some bogus data to
the media dir and pass --mirror-screenshot-url so that flatpak-builder
commits the screenshot ref. Since appstream-compose is disabled
mirror-screenshot-url arg has no effect other than allowing us to commit
the bogus screenshot ref.

Desktop, metainfo and icon files are also dropped from manifest since
they have no use without appstream compose.

This is needed to run the test offline as appstream tries to download
the screenshots online.
@bbhtt bbhtt force-pushed the bbhtt/test-ref-offline branch from 3c38c07 to 959ab1e Compare September 11, 2025 15:53
@bbhtt
Copy link
Contributor Author

bbhtt commented Sep 16, 2025

Any feedback on this? We probably should include this in the next release.

@swick
Copy link
Contributor

swick commented Sep 17, 2025

Looks fine to me. Making things work without invoking the network is always good IMO.

@bbhtt
Copy link
Contributor Author

bbhtt commented Sep 18, 2025

OK let's go with this.

@bbhtt bbhtt merged commit 2e3a0c6 into main Sep 18, 2025
5 checks passed
@bbhtt bbhtt deleted the bbhtt/test-ref-offline branch September 18, 2025 00:23
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