Skip to content

cleanup of tarball bucket to fix automated ingestion #185

Open

Description

@bedroge

We recently seem to have hit some kind of limit with the bucket: the automated ingestion would only pick up the first 500 tarballs it would find in the S3 bucket, meaning that new skylake tarballs would not be found (as they are picked up alphabetically, and skylake is at the bottom of the list). We can probably work around it by doing some kind of pagination, and we were considering reimplementing this workflow anyway, but for now I've done a quick workaround by setting up a new bucket (software.eessi.io-archive), syncing all files from the existing to the archive bucket, and removing them from the existing one.

We can do that more often by running the following:

export AWS_SECRET_ACCESS_KEY=XXX AWS_ACCESS_KEY_ID=YYY
aws s3 sync s3://software.eessi.io-2023.06 s3://software.eessi.io-archive
aws s3 rm  s3://software.eessi.io-2023.06 --recursive

This should only be run if there are no open PRs in the staging repo and if no tarballs were just uploaded to the bucket (i.e. no open PRs with bot: deploy label), otherwise they will be lost.

Activity

  1. bedroge commented on Jun 7, 2024

    @bedroge
    CollaboratorAuthor

    As the number of tarballs was getting quite large again, I've just run this cleanup operation again.

  2. bedroge commented on Sep 17, 2024

    @bedroge
    CollaboratorAuthor

    We were getting close to 1000 files in the bucket, so I've just moved all files to the archive bucket again.

  3. bedroge commented on Jan 21, 2025

    @bedroge
    CollaboratorAuthor

    I've done another cleanup today.

  4. bedroge commented on Mar 3, 2025

    @bedroge
    CollaboratorAuthor

    I've done another clean up today, mostly to get rid of the large number of Sapphire Rapids tarballs.

  5. bedroge commented on Jun 6, 2025

    @bedroge
    CollaboratorAuthor

    The automated ingestion was getting quite slow again, so I did another cleanup, also for the riscv.eessi.io-20240402 bucket:

    aws s3 sync s3://software.eessi.io-2023.06 s3://software.eessi.io-archive
    aws s3 rm  s3://software.eessi.io-2023.06 --recursive
    
    aws s3 sync s3://riscv.eessi.io-20240402 s3://riscv.eessi.io-archive
    aws s3 rm  s3://riscv.eessi.io-20240402 --recursive
    
  6. bedroge commented on Jun 23, 2025

    @bedroge
    CollaboratorAuthor

    The ingestion now requires all tarballs to be signed. In order to get rid of any unsigned tarballs, I've done another cleanup, also for the dev repo this time:

    aws s3 sync s3://software.eessi.io-2023.06 s3://software.eessi.io-archive
    aws s3 rm  s3://software.eessi.io-2023.06 --recursive
    
    aws s3 sync s3://riscv.eessi.io-20240402 s3://riscv.eessi.io-archive
    aws s3 rm  s3://riscv.eessi.io-20240402 --recursive
    
    aws s3 sync s3://dev.eessi.io-2024.09 s3://dev.eessi.io-archive
    aws s3 rm  s3://dev.eessi.io-2024.09 --recursive
    
  7. bedroge commented on Jul 18, 2025

    @bedroge
    CollaboratorAuthor

    And again, also for 2025.06 this time:

    aws s3 sync s3://software.eessi.io-2023.06 s3://software.eessi.io-archive
    aws s3 rm  s3://software.eessi.io-2023.06 --recursive
    
    aws s3 sync s3://software.eessi.io-2025.06 s3://software.eessi.io-archive
    aws s3 rm  s3://software.eessi.io-2025.06 --recursive
    
    aws s3 sync s3://riscv.eessi.io-20240402 s3://riscv.eessi.io-archive
    aws s3 rm  s3://riscv.eessi.io-20240402 --recursive
    
    aws s3 sync s3://dev.eessi.io-2024.09 s3://dev.eessi.io-archive
    aws s3 rm  s3://dev.eessi.io-2024.09 --recursive
    
  8. bedroge commented on Aug 8, 2025

    @bedroge
    CollaboratorAuthor

    Cleaned the four buckets today to prepare for a switch to the new bundle ingestion method.

  9. Neves-P commented on Aug 13, 2025

    @Neves-P
    Member

    Today I ran:

    aws s3 sync s3://software.eessi.io-2023.06 s3://software.eessi.io-archive
    aws s3 rm  s3://software.eessi.io-2023.06 --recursive
    

    To clean a WIP deployment of EESSI/software-layer-scripts#59

  10. bedroge commented on Aug 26, 2025

    @bedroge
    CollaboratorAuthor

    And again, also for 2025.06 this time:

    aws s3 sync s3://software.eessi.io-2023.06 s3://software.eessi.io-archive
    aws s3 rm  s3://software.eessi.io-2023.06 --recursive
    
    aws s3 sync s3://software.eessi.io-2025.06 s3://software.eessi.io-archive
    aws s3 rm  s3://software.eessi.io-2025.06 --recursive
    
    aws s3 sync s3://riscv.eessi.io-20240402 s3://riscv.eessi.io-archive
    aws s3 rm  s3://riscv.eessi.io-20240402 --recursive
    
    aws s3 sync s3://dev.eessi.io-2024.09 s3://dev.eessi.io-archive
    aws s3 rm  s3://dev.eessi.io-2024.09 --recursive
    

    Ran this again today, mostly to get rid of the large CUDA tarballs.

  11. bedroge commented on Sep 23, 2025

    @bedroge
    CollaboratorAuthor

    And again, also for 2025.06 this time:

    aws s3 sync s3://software.eessi.io-2023.06 s3://software.eessi.io-archive
    aws s3 rm  s3://software.eessi.io-2023.06 --recursive
    
    aws s3 sync s3://software.eessi.io-2025.06 s3://software.eessi.io-archive
    aws s3 rm  s3://software.eessi.io-2025.06 --recursive
    
    aws s3 sync s3://riscv.eessi.io-20240402 s3://riscv.eessi.io-archive
    aws s3 rm  s3://riscv.eessi.io-20240402 --recursive
    
    aws s3 sync s3://dev.eessi.io-2024.09 s3://dev.eessi.io-archive
    aws s3 rm  s3://dev.eessi.io-2024.09 --recursive
    

    I've done this again today, the ingestion process was getting slow.

  12. bedroge commented on Oct 3, 2025

    @bedroge
    CollaboratorAuthor

    And again today, to get rid of the tarballs for the GPU builds that were recently ingested.

  13. bedroge commented on Oct 24, 2025

    @bedroge
    CollaboratorAuthor

    Just ran it again to speed up the ingestion.

  14. bedroge commented on Oct 30, 2025

    @bedroge
    CollaboratorAuthor

    Done again today.

  15. bedroge commented on Nov 18, 2025

    @bedroge
    CollaboratorAuthor

    Ran it again today.

  16. bedroge commented on Nov 21, 2025

    @bedroge
    CollaboratorAuthor

    Cleaned it again today.

  17. bedroge commented on Nov 22, 2025

    @bedroge
    CollaboratorAuthor

    And again today to get rid of some really large R-bundle-Bioconductor tarballs.

  18. bedroge commented on Dec 22, 2025

    @bedroge
    CollaboratorAuthor

    Again today.

  19. Neves-P commented on Jul 1, 2026

    @Neves-P
    Member

    Today I did:

    aws s3 sync s3://dev.eessi.io-2024.09/2025.06/software/linux/riscv64/generic/layer/1780038350.tar.zst s3://dev.eessi.io-archive
    
    aws s3 rm --recursive s3://dev.eessi.io-2024.09/2025.06/software/linux/riscv64/generic/layer/1780038350.tar.zst/
    aws s3 rm s3://software.eessi.io-2023.06/2023.06/software/linux/x86_64/amd/zen3/17796969570.tar.zst/ --recursive
    aws s3 rm s3://software.eessi.io-2023.06/2023.06/software/linux/x86_64/amd/zen2/17796967460.tar.zst/ --recursive
    aws s3 rm s3://software.eessi.io-2023.06/2023.06/software/linux/x86_64/amd/zen4/17796969430.tar.zst/ --recursive
    

    This addressed the incorrectly deployed tarballs due to EESSI/eessi-bot-software-layer#381 while working on EESSI/compatibility-layer#235 which got mixed up with tarballs from EESSI/software-layer-scripts#235.

    Realizing archiving the tarballs is not necessary, I stopped after doing so for the first one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions