Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup back-compat code for interpreting Run Service status codes #3456

Merged
merged 1 commit into from
Sep 6, 2024

Conversation

ericsciple
Copy link
Collaborator

No description provided.

@ericsciple ericsciple marked this pull request as ready for review September 6, 2024 18:28
@ericsciple ericsciple requested a review from a team as a code owner September 6, 2024 18:28
@@ -107,15 +107,6 @@ public async Task<AgentJobRequestMessage> GetJobMessageAsync(
}
}

// Temporary back compat
switch (result.StatusCode)
Copy link
Collaborator Author

@ericsciple ericsciple Sep 6, 2024

Choose a reason for hiding this comment

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

Tested E2E to make sure everything is still working as expected. Specifically I tested the 422 UnprocessableEntity scenario above. Easy to repro that scenario via reusable workflow with a required secret, with the caller providing an expression that evaluates to empty/nil.

Copy link
Collaborator Author

@ericsciple ericsciple Sep 6, 2024

Choose a reason for hiding this comment

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

name: CI
on:
  workflow_dispatch:
jobs:
  build:
    uses: ./.github/workflows/reuse.yml
    secrets: 
      foo: ${{ github.nosuch }}
# .github/workflows/reuse.yml

on:
  workflow_call:
    secrets:
      foo:
        description: asdf
        required: true
jobs:
  build:
    runs-on: self-hosted
    steps:
      - run: echo hi
        env:
          FOO_SECRET: ${{ secrets.foo }}

@ericsciple ericsciple force-pushed the users/ericsciple/24-09-cleanup branch from 010753b to b3de9de Compare September 6, 2024 21:40
@ericsciple ericsciple merged commit ddf41af into main Sep 6, 2024
10 checks passed
@ericsciple ericsciple deleted the users/ericsciple/24-09-cleanup branch September 6, 2024 22:04
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