David Omid
927b26a364
Process snapshot tokens ( #3135 )
...
* Added Snapshot TemplateToken to AgentJobRequestMessage
* WIP for processing the snapshot token
* Changed snapshot post job step condition to Success, added comments
* Refactored snapshot post-job step
* Added evaluation of snapshot token to retrieve image name
* Added snapshot to workflow schema
* Fixed linter error
* Migrated snapshot logic to new SnapshotOperationProvider
* Fixed linter error
* Fixed linter errors
* Fixed linter error
* Fixed linter errors
* Updated L0 tests
* Fixed linter errors
* Added new JobExtensionL0 tests for snapshot post-job step
* Added JobExtensionL0 test case for snapshot mappings
* Added SnapshotOperationProviderL0 tests
* Enabled nullable types for SnapshotOperationProvider and its tests
* Added more assertions to SnapshotOperationProviderL0 tests
* Fixed linter errors
* Made sure TestHostContexts are disposed of properlyh in SnapshotOperationProviderL0 tests
* Resolved PR comments
* Fixed formatting
* Removed redundant reference
* Addressed PR comments
2024-02-14 21:34:52 -05:00
Tingluo Huang
b91ad56f92
Check connectivity for endpoints requested by service. ( #2691 )
2023-07-17 08:36:20 -04:00
JoannaaKL
efffbaeabc
Add utf8 with bom ( #2641 )
...
* Change default file encoding
2023-06-02 21:47:59 +02:00
Cory Miller
b87b4aac5c
Fix IDE0090 ( #2211 )
2022-10-18 10:54:08 -04:00
JoannaaKL
6cdd27263b
Remove unused imports ( #2124 )
2022-09-15 12:14:10 +02:00
Ferenc Hammerl
9623a44c2f
Allow admins to fail jobs without container ( #1895 )
...
* Allow admins to fail jobs without container
* Make method static
* Update src/Runner.Common/Constants.cs
Co-authored-by: Thomas Boop <52323235+thboop@users.noreply.github.com >
* Update src/Runner.Worker/JobExtension.cs
Co-authored-by: Thomas Boop <52323235+thboop@users.noreply.github.com >
* Update src/Runner.Worker/JobExtension.cs
Co-authored-by: Thomas Boop <52323235+thboop@users.noreply.github.com >
* Rename env
* Add test for throwing when no container but required
* Update src/Runner.Worker/JobExtension.cs
* Update src/Test/L0/Worker/JobExtensionL0.cs
* Update src/Runner.Common/Constants.cs
Co-authored-by: Thomas Boop <52323235+thboop@users.noreply.github.com >
Co-authored-by: Thomas Boop <52323235+thboop@users.noreply.github.com >
2022-06-09 17:17:11 -04:00
Ferenc Hammerl
7d5e9cd70f
Runner Job Started/Completed Hooks ( #1737 )
...
* Prototype for pre job hook
* Remove debug log
* Enable hooks again
* Initialize with hostContext
* Add event_path, fix no-path bug
* Allow script post steps
* Call script handler with correct pre post stage
* Add job completed hook
* Make filecommand work and hardcode shell
* Conditionally print step details and no telemetry for hooks
* Figure out whih script to use
* Only check path for managed scripts
* Resture win dependency
* Nits
* Remove unused, add named params
* Telemetry + refactoring
* add message to job
* rename hooks remove stale comment
* cleanup
* Use .CreateService to create step
* Add L0s
* pr feedback
* update tests
* add disclaimer, clean up code
* spacing fix
* little more cleanup
* pr fix
* pr feedback
* Refactor to use JobExtension
* fix tests
* fix typo
* cleanup code
* more cleanup
* little more cleanup
* last bit of cleanup
* fix tests
* nit fix
* Update src/Runner.Worker/JobHookProvider.cs
Co-authored-by: Edward Thomson <ethomson@github.com >
* don't override runner telemtry
* pr feedback
* pr feedback
* pr feedback
Co-authored-by: Thomas Boop <thboop@github.com >
Co-authored-by: Thomas Boop <52323235+thboop@users.noreply.github.com >
Co-authored-by: Edward Thomson <ethomson@github.com >
2022-03-17 21:35:04 -04:00
Laura Yu
dcc5d34ad1
Add secret source to start job step ( #1411 )
...
* Add secret source to start job step
WIP
* Update to use GetGitHubContext to grab source info
* Update JobExtensionL0.cs
* Update JobExtension.cs
* Update JobExtension.cs
2021-11-17 17:09:38 -05:00
Thomas Boop
4e95d0d6ad
Support pre/post/container/composite actions within composite actions ( #1222 )
...
Support Composite Actions with uses: steps
2021-07-28 15:35:21 -04:00
Yashwanth Anantharaju
8279ae9a70
Support environment URL parsing ( #762 )
...
* environment URL parsing
2020-10-21 12:14:21 -04:00
eric sciple
1cc3c08cf2
Prepare to switch GITHUB_ACTION to use ContextName instead of refname ( #593 )
...
This PR changes GITHUB_ACTION to use the step ContextName, instead of refname. The behavior is behind a feature flag. Refname is an otherwise deprecated property.
Primary motivation: For composite actions, we need a distinct GITHUB_ACTION for each nested step. This PR adds code to generate a default context name for nested steps.
For nested steps, GITHUB_ACTION will be set to "{ScopeName}.{ContextName}" to ensure no collisions.
A corresponding change will be made on the server so context name is never empty. Generated context names will start with "__".
A follow-up PR is required to avoid tracking "step" context values (outputs/conclusion/result) for generated context names. Waiting on telemetry from the server to confirm it's safe to assume leading "__" is a generate context name.
2020-07-19 17:19:13 -04:00
Tingluo Huang
d5c7097d2c
support 'pre' execution for actions. ( #389 )
2020-04-13 21:46:30 -04:00
eric sciple
dfaf6e06ee
switch hashFiles to extension function ( #362 )
2020-03-18 12:08:51 -04:00
Tingluo Huang
b0a71481f0
support defaults. ( #369 )
2020-03-17 23:40:37 -04:00
Tingluo Huang
2d6042421f
add support for job outputs. ( #365 )
...
* add support for job outputs.
2020-03-14 17:54:58 -04:00
eric sciple
0cba42590f
preserve workflow file/line/column for better error messages ( #356 )
2020-03-03 22:38:19 -05:00
Tingluo Huang
d0a4a41a63
delete un-used code. ( #218 )
2019-12-16 17:05:26 -05:00
Tingluo Huang
3ed80b7c10
Fix L0 tests, add/update runner release yaml. ( #214 )
2019-12-09 16:11:00 -05:00
Tingluo Huang
c8afc84840
GitHub Actions Runner
2019-10-10 00:52:42 -04:00