Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: "CodeQL"

on:
# Run the analysis once every 24 hours. The actual time does not matter
# that much, start with a time that allows for easier troubleshooting.
schedule:
- cron: '00 22 * * *'
# on:
# # Run the analysis once every 24 hours. The actual time does not matter
# # that much, start with a time that allows for easier troubleshooting.
# schedule:
# - cron: '00 22 * * *'

jobs:
analyze:
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/external-account-integration.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: "External Account Integration"

on:
workflow_call:
inputs:
checkout-ref:
required: true
description: "The ref we want to compile"
type: string
# on:
# workflow_call:
# inputs:
# checkout-ref:
# required: true
# description: "The ref we want to compile"
# type: string

permissions:
contents: read
Expand Down
30 changes: 15 additions & 15 deletions .github/workflows/macos-bazel.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
name: macOS-Bazel-Builds

on:
workflow_call:
inputs:
checkout-ref:
required: true
description: "The ref we want to compile"
type: string
bazel-cache-mode:
required: true
description: "READ_WRITE or READ_ONLY"
type: string
execute-integration-tests:
required: true
description: "Integration tests require credentials."
type: boolean
# on:
# workflow_call:
# inputs:
# checkout-ref:
# required: true
# description: "The ref we want to compile"
# type: string
# bazel-cache-mode:
# required: true
# description: "READ_WRITE or READ_ONLY"
# type: string
# execute-integration-tests:
# required: true
# description: "Integration tests require credentials."
# type: boolean

permissions:
contents: read
Expand Down
46 changes: 23 additions & 23 deletions .github/workflows/macos-cmake.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
name: macOS-CMake-Builds

on:
workflow_call:
inputs:
checkout-ref:
required: true
description: "The ref we want to compile"
type: string
full-matrix:
required: true
description: "Build the full matrix"
type: boolean
sccache-mode:
required: true
description: "READ_WRITE or DISABLED"
type: string
vcpkg-cache-mode:
required: true
description: "read or readwrite"
type: string
execute-integration-tests:
required: true
description: "Integration tests require credentials."
type: boolean
# on:
# workflow_call:
# inputs:
# checkout-ref:
# required: true
# description: "The ref we want to compile"
# type: string
# full-matrix:
# required: true
# description: "Build the full matrix"
# type: boolean
# sccache-mode:
# required: true
# description: "READ_WRITE or DISABLED"
# type: string
# vcpkg-cache-mode:
# required: true
# description: "read or readwrite"
# type: string
# execute-integration-tests:
# required: true
# description: "Integration tests require credentials."
# type: boolean

permissions:
contents: read
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/test-runner-untrusted.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ name: "gha: macOS & Windows Untrusted"

# Build on pull requests and pushes to `main`. The PR builds will be
# non-blocking for now, but that is configured elsewhere.
on:
# Start the build in the context of the target branch. This is considered
# "safe", as the workflow files are already committed. These types of builds
# have access to the secrets in the build, which we need to use the remote
# caches (Bazel and sccache).
pull_request:
types:
- opened
- synchronize
- reopened
workflow_dispatch:
# on:
# # Start the build in the context of the target branch. This is considered
# # "safe", as the workflow files are already committed. These types of builds
# # have access to the secrets in the build, which we need to use the remote
# # caches (Bazel and sccache).
# pull_request:
# types:
# - opened
# - synchronize
# - reopened
# workflow_dispatch:

# Cancel in-progress runs of the workflow if somebody adds a new commit to the
# PR or branch. That reduces billing, but it creates more noise about cancelled
Expand Down
38 changes: 19 additions & 19 deletions .github/workflows/test-runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,25 @@ name: "gha: macOS & Windows"

# Build on pull requests and pushes to `main`. The PR builds will be
# non-blocking for now, but that is configured elsewhere.
on:
# Start these builds on pushes (think "after the merge") too. Normally there
# are no `ci-gha**` branches in our repository. The contributors to the repo
# can create such branches when testing or troubleshooting builds. In such
# branches we can disable builds (to speed up the testing) or add new ones,
# without impacting the rest of the team.
push:
branches: [ 'v[2-9]**', 'ci-gha**', 'prepare-for-v3.0.0' ]
# Start the build in the context of the target branch. This is considered
# "safe", as the workflow files are already committed. These types of builds
# have access to the secrets in the build, which we need to use the remote
# caches (Bazel and sccache).
pull_request_target:
types:
- opened
- synchronize
- reopened
schedule:
- cron: '0 5 * * 1,2,3,4,5'
# on:
# # Start these builds on pushes (think "after the merge") too. Normally there
# # are no `ci-gha**` branches in our repository. The contributors to the repo
# # can create such branches when testing or troubleshooting builds. In such
# # branches we can disable builds (to speed up the testing) or add new ones,
# # without impacting the rest of the team.
# push:
# branches: [ 'v[2-9]**', 'ci-gha**', 'prepare-for-v3.0.0' ]
# # Start the build in the context of the target branch. This is considered
# # "safe", as the workflow files are already committed. These types of builds
# # have access to the secrets in the build, which we need to use the remote
# # caches (Bazel and sccache).
# pull_request_target:
# types:
# - opened
# - synchronize
# - reopened
# schedule:
# - cron: '0 5 * * 1,2,3,4,5'

# Cancel in-progress runs of the workflow if somebody adds a new commit to the
# PR or branch. That reduces billing, but it creates more noise about cancelled
Expand Down
30 changes: 15 additions & 15 deletions .github/workflows/windows-bazel.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
name: Windows-Builds

on:
workflow_call:
inputs:
checkout-ref:
required: true
description: "The ref we want to compile"
type: string
bazel-cache-mode:
required: true
description: "READ_WRITE or READ_ONLY"
type: string
execute-integration-tests:
required: true
description: "Integration tests require credentials."
type: boolean
# on:
# workflow_call:
# inputs:
# checkout-ref:
# required: true
# description: "The ref we want to compile"
# type: string
# bazel-cache-mode:
# required: true
# description: "READ_WRITE or READ_ONLY"
# type: string
# execute-integration-tests:
# required: true
# description: "Integration tests require credentials."
# type: boolean

permissions:
contents: read
Expand Down
46 changes: 23 additions & 23 deletions .github/workflows/windows-cmake.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
name: Windows-Builds

on:
workflow_call:
inputs:
checkout-ref:
required: true
description: "The ref we want to compile"
type: string
full-matrix:
required: true
description: "Build the full matrix"
type: boolean
sccache-mode:
required: true
description: "READ_WRITE or DISABLED"
type: string
vcpkg-cache-mode:
required: true
description: "read or readwrite"
type: string
execute-integration-tests:
required: true
description: "Integration tests require credentials."
type: boolean
# on:
# workflow_call:
# inputs:
# checkout-ref:
# required: true
# description: "The ref we want to compile"
# type: string
# full-matrix:
# required: true
# description: "Build the full matrix"
# type: boolean
# sccache-mode:
# required: true
# description: "READ_WRITE or DISABLED"
# type: string
# vcpkg-cache-mode:
# required: true
# description: "read or readwrite"
# type: string
# execute-integration-tests:
# required: true
# description: "Integration tests require credentials."
# type: boolean

permissions:
contents: read
Expand Down
45 changes: 44 additions & 1 deletion ci/kokoro/macos/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,49 @@

set -euo pipefail

# New debug output to confirm which script is running
echo "================================================================"
echo "== EXECUTING SCRIPT FROM 'preview-kokoro-fix' BRANCH =="
echo "================================================================"

# ===== START HOMEBREW FIXES =====
echo "Attempting to fix Homebrew environment"

# Check initial state
echo "DEBUG: Brew version before any fixes"
brew --version || echo "brew version failed"
echo "DEBUG: Brew doctor before any fixes"
brew doctor || echo "brew doctor failed"

# 1. Fix Git Origins as suggested by brew doctor
echo "DEBUG: Setting Homebrew git origins"
git -C "/usr/local/Homebrew" remote set-url origin https://github.com/Homebrew/brew || echo "Failed to set Homebrew origin"
git -C "/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core" remote set-url origin https://github.com/Homebrew/homebrew-core || echo "Failed to set homebrew-core origin"

# 2. Untap unnecessary taps as suggested by brew doctor
echo "DEBUG: Untapping unnecessary taps"
brew untap homebrew/cask --force || echo "Failed to untap homebrew/cask"
brew untap homebrew/core --force || echo "Failed to untap homebrew/core"
# Also untap cask-versions just in case
brew untap homebrew/cask-versions --force || echo "Failed to untap homebrew/cask-versions"

# 3. Clean up broken symlinks
echo "DEBUG: Cleaning up Homebrew"
brew cleanup -s || echo "brew cleanup failed"

# 4. Forcefully reset Homebrew
echo "DEBUG: Running brew update-reset"
brew update-reset

# Check state after fixes
echo "DEBUG: Brew version after fixes"
brew --version || echo "brew version failed"
echo "DEBUG: Brew doctor after fixes"
#brew doctor || echo "brew doctor failed"

echo "DEBUG: Homebrew environment fixes complete"
# ===== END HOMEBREW FIXES =====

source "$(dirname "$0")/../../lib/init.sh"
source module ci/lib/io.sh

Expand Down Expand Up @@ -71,7 +114,7 @@ printf "%10s %s\n" "clang:" "$(clang --version 2>&1 | head -1)"
printf "%10s %s\n" "brew:" "$(brew --version 2>&1 | head -1)"
printf "%10s %s\n" "branch:" "${BRANCH}"

io::log_h2 "Brew packages"
echo "Brew packages"
export HOMEBREW_NO_AUTO_UPDATE=1
export HOMEBREW_NO_INSTALL_CLEANUP=1
brew list --versions --formula
Expand Down
Loading
Loading