Skip to content

Update platform creation to ensure good mtimes and better cacheing#277

Closed
alexlarsson wants to merge 1 commit intoflatpak:masterfrom
alexlarsson:platform-mtimes
Closed

Update platform creation to ensure good mtimes and better cacheing#277
alexlarsson wants to merge 1 commit intoflatpak:masterfrom
alexlarsson:platform-mtimes

Conversation

@alexlarsson
Copy link
Member

This splits the platform creation into 3 parts:

  • base - create the initial directory based on the parent platform
  • prepare - run prepare commands and apply all changes
  • cleanup - apply cleanups and cleanup commands

This has cacheing advantages in that prepare_commands and cleanup changes
only cause the minimal amount of rebuilds.

Additionally, it ensures that the mtimes are zeroed out (from the
previous checkout) both when the prepare and cleanup commands are run.
This is actually important, since these often generate caches (for
example fontconfig ones) which rely on zeroed mtimes so they match
what will be deployed.

This splits the platform creation into 3 parts:
 * base - create the initial directory based on the parent platform
 * prepare - run prepare commands and apply all changes
 * cleanup - apply cleanups and cleanup commands

This has cacheing advantages in that prepare_commands and cleanup changes
only cause the minimal amount of rebuilds.

Additionally, it ensures that the mtimes are zeroed out (from the
previous checkout) both when the prepare and cleanup commands are run.
This is actually important, since these often generate caches (for
example fontconfig ones) which rely on zeroed mtimes so they match
what will be deployed.
@alexlarsson
Copy link
Member Author

@rh-atomic-bot r+

@rh-atomic-bot
Copy link

📌 Commit 59209fd has been approved by alexlarsson

@rh-atomic-bot
Copy link

⚡ Test exempted: pull fully rebased and already tested.

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.

2 participants