Skip to content

fix(tooling): remove caching from github pipeline#715

Merged
mkesavan13 merged 1 commit into
webex:nextfrom
Shreyas281299:fix-tooling
Jul 3, 2026
Merged

fix(tooling): remove caching from github pipeline#715
mkesavan13 merged 1 commit into
webex:nextfrom
Shreyas281299:fix-tooling

Conversation

@Shreyas281299

@Shreyas281299 Shreyas281299 commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

COMPLETES #adhoc

This pull request addresses

The GitHub workflows needed updates after the GitHub Actions runtime changes and cache behavior changes. The previous Pull Request CI structure depended on shared install/build cache jobs, which made the pipeline more fragile for validated PR runs.

by making the following changes

  • Updated GitHub Actions versions in the widgets workflows.
  • Reworked Pull Request CI validation to explicitly allow base-repo PRs or PRs with the validated label.
  • Removed the separate shared install/build dependency flow from Pull Request CI.
  • Moved dependency installation and build steps into the jobs that need them.
  • Updated cache restore/save usage in deploy workflow jobs.
  • Updated the reusable validated-label removal workflow to use the newer GitHub script action.

Change Type

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Tooling change
  • Internal code refactor

The following scenarios were tested

  • The testing is done with the amplify link

GitHub Actions testing evidence:

Current note: the provided Deploy CD run completed with failure, and the provided Pull Request CI run was still in progress when this description was updated.

The GAI Coding Policy And Copyright Annotation Best Practices

  • GAI was not used (or, no additional notation is required)
  • Code was generated entirely by GAI
  • GAI was used to create a draft that was subsequently customized or modified
  • Coder created a draft manually that was non-substantively modified by GAI (e.g., refactoring was performed by GAI on manually written code)
  • Tool used for AI assistance (GitHub Copilot / Other - specify)
    • Github Copilot
    • Other - Please Specify: Cursor
  • This PR is related to
    • Feature
    • Defect fix
    • Tech Debt
    • Automation

Checklist before merging

  • I have not skipped any automated checks
  • All existing and new tests passed
  • I have updated the testing document
  • I have tested the functionality with amplify link

Make sure to have followed the contributing guidelines before submitting.

@Shreyas281299 Shreyas281299 requested a review from a team as a code owner July 3, 2026 09:11

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0a3886e0f8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

steps:
- name: Checkout Project
uses: actions/checkout@v3
uses: actions/checkout@v6

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Add opt-out for validated fork checkouts

This workflow deliberately permits fork PRs once the validated label is present, but the downstream jobs then check out github.event.pull_request.head.sha under pull_request_target using the floating actions/checkout@v6 tag. GitHub's June 18, 2026 checkout changelog says this exact ref will be refused for fork PRs in pull_request_target, and that the enforcement is backported to floating major tags on July 16, 2026; after that, every validated fork PR will fail at the checkout step unless you restructure the workflow or pass allow-unsafe-pr-checkout deliberately.

Useful? React with 👍 / 👎.

@aws-amplify-us-east-2

Copy link
Copy Markdown

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-715.d1b38q61t1z947.amplifyapp.com

@Shreyas281299 Shreyas281299 added the validated Indicates that the PR is ready for actions label Jul 3, 2026
Comment on lines +47 to +67
- name: Validate Labels
run: |
HEAD_REPO=${{ github.event.pull_request.head.repo.full_name }}
BASE_REPO=${{ github.event.pull_request.base.repo.full_name }}
FROM_BASE=0; [ "$HEAD_REPO" == "$BASE_REPO" ] && FROM_BASE=1

HAS_VALIDATED_LABEL=${{ contains(github.event.pull_request.labels.*.name, 'validated') }}
VALIDATED=0; [ "$HAS_VALIDATED_LABEL" == "true" ] && VALIDATED=1

echo from base $FROM_BASE
echo validated $VALIDATED

if [[ $FROM_BASE == 1 || $VALIDATED == 1 ]]
then
echo 'pull request is validated, running tests'
exit 0
else
echo 'pull request is not validated, exiting'
exit 1
fi

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. Did not realize that I missed it in the Widgets but had it only in the SDK

@mkesavan13 mkesavan13 merged commit 06040d9 into webex:next Jul 3, 2026
14 of 15 checks passed
@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown

Your changes have been merged!

Thank you for your contribution!

🤖 This is an automated message. For queries, please contact support.

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

Labels

validated Indicates that the PR is ready for actions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants