Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

Add sccache buckets for MacOS / Windows #38

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

driazati
Copy link
Contributor

This adds S3 buckets so we can set up sccache for GitHub Actions. Unlike
Jenkins where we can configure the bucket to be accessible from CI
nodes, most TVM PR Actions jobs have no way of accessing a bucket (jobs
from forked PRs aren't allowed access to secrets). The solution here is
to host a bucket per OS that is publicly readable. This will be used
from PRs to accelerate builds. It will be filled with cached data from
jobs on main and branches (which will have write access via a secret
id/key pair).

@driazati driazati marked this pull request as ready for review May 24, 2022 18:36
This adds S3 buckets so we can set up sccache for GitHub Actions. Unlike
Jenkins where we can configure the bucket to be accessible from CI
nodes, most TVM PR Actions jobs have no way of accessing a bucket (jobs
from forked PRs aren't allowed access to secrets). The solution here is
to host a bucket per OS that is publicly readable. This will be used
from PRs to accelerate builds. It will be filled with cached data from
jobs on `main` and branches (which will have write access via a secret
id/key pair).
@github-actions
Copy link

Terraform plan in . in the tvm-ci-prod workspace
With var files: vars/tvm-ci-prod.auto.tfvars

Plan: 2 to add, 0 to change, 0 to destroy.
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  + create

Terraform will perform the following actions:

  # aws_s3_bucket.bucket-macos will be created
  + resource "aws_s3_bucket" "bucket-macos" {
      + acceleration_status         = (known after apply)
      + acl                         = "public-read"
      + arn                         = (known after apply)
      + bucket                      = "tvm-sccache-macos-prod"
      + bucket_domain_name          = (known after apply)
      + bucket_regional_domain_name = (known after apply)
      + force_destroy               = false
      + hosted_zone_id              = (known after apply)
      + id                          = (known after apply)
      + region                      = (known after apply)
      + request_payer               = (known after apply)
      + tags                        = {
          + "Name" = "tvm-sccache-macos-prod"
        }
      + tags_all                    = {
          + "Name" = "tvm-sccache-macos-prod"
        }
      + website_domain              = (known after apply)
      + website_endpoint            = (known after apply)

      + versioning {
          + enabled    = (known after apply)
          + mfa_delete = (known after apply)
        }
    }

  # aws_s3_bucket.bucket-windows will be created
  + resource "aws_s3_bucket" "bucket-windows" {
      + acceleration_status         = (known after apply)
      + acl                         = "public-read"
      + arn                         = (known after apply)
      + bucket                      = "tvm-sccache-windows-prod"
      + bucket_domain_name          = (known after apply)
      + bucket_regional_domain_name = (known after apply)
      + force_destroy               = false
      + hosted_zone_id              = (known after apply)
      + id                          = (known after apply)
      + region                      = (known after apply)
      + request_payer               = (known after apply)
      + tags                        = {
          + "Name" = "tvm-sccache-windows-prod"
        }
      + tags_all                    = {
          + "Name" = "tvm-sccache-windows-prod"
        }
      + website_domain              = (known after apply)
      + website_endpoint            = (known after apply)

      + versioning {
          + enabled    = (known after apply)
          + mfa_delete = (known after apply)
        }
    }

Plan: 2 to add, 0 to change, 0 to destroy.

📝 Plan generated in terraform #117

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant