Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
459 commits
Select commit Hold shift + click to select a range
fac08a8
Fix panic
MDrakos Sep 24, 2024
cc53ca4
The only commands that should ignore async runtimes are `refresh`, `d…
mitchell-as Sep 24, 2024
1d79eb6
Merge pull request #3506 from ActiveState/DX-3069
MDrakos Sep 24, 2024
b4c35a8
Skip integration test
MDrakos Sep 24, 2024
5aecd7b
Merge branch version/0-46-0-RC1 to adopt changes from PR #3507
as-builds Sep 25, 2024
d3f925d
Merge branch 'version/0-47-0-RC1' into mitchell/dx-3071
mitchell-as Sep 25, 2024
dc7855a
Merge pull request #3499 from ActiveState/DX-3029
Naatan Sep 25, 2024
f590cdb
Merge branch version/0-46-0-RC1 to adopt changes from PR #3502
as-builds Sep 25, 2024
69dd413
Merge pull request #3505 from ActiveState/mitchell/dx-3071
mitchell-as Sep 25, 2024
ba57bb2
Fix missing arguments
Naatan Sep 25, 2024
b050ee0
Merge pull request #3513 from ActiveState/DX-3082
Naatan Sep 25, 2024
e3fabd4
Fixed config.Get for enum types.
mitchell-as Sep 25, 2024
49d2ea0
Fix build failure.
mitchell-as Sep 25, 2024
0eb7c24
Merge pull request #3512 from ActiveState/mitchell/dx-3081
mitchell-as Sep 25, 2024
86659c5
Merge pull request #3510 from ActiveState/DX-3079
MDrakos Sep 25, 2024
f423ba8
Merge remote-tracking branch 'origin/version/0-46-0-RC1' into version…
Naatan Sep 26, 2024
52dd8fa
Added ceremonial break.
mitchell-as Oct 1, 2024
851072a
Merge pull request #3517 from ActiveState/mitchell/dx-3088
mitchell-as Oct 1, 2024
40886ba
Only cache completed build plans.
mitchell-as Oct 2, 2024
a2bff92
Drop unnecessary debug logging.
mitchell-as Oct 2, 2024
853f28f
Use `e2e.Runtime*TimeoutOpt` where reasonable.
mitchell-as Oct 2, 2024
bcd3f82
Fixed test failure.
mitchell-as Oct 2, 2024
a8b7094
Fixed failing integration test.
mitchell-as Oct 2, 2024
1cdca3b
Merge pull request #3523 from ActiveState/mitchell/dx-3096
mitchell-as Oct 2, 2024
d9a4a86
Merge pull request #3519 from ActiveState/mitchell/dx-3084
mitchell-as Oct 2, 2024
f07366a
Merge pull request #3522 from ActiveState/mitchelll/dx-3097
mitchell-as Oct 2, 2024
fa754db
Merge pull request #3518 from ActiveState/mitchell/dx-3093
mitchell-as Oct 2, 2024
99fbb8f
Merge pull request #3521 from ActiveState/mitchell/dx-3070
mitchell-as Oct 2, 2024
d322bdb
Set cache in test
MDrakos Oct 2, 2024
b7cd507
Pass port to service model
MDrakos Oct 2, 2024
4267d98
Merge pull request #3525 from ActiveState/DX-3095
MDrakos Oct 3, 2024
aed322e
Pass in t
MDrakos Oct 3, 2024
0d07973
Merge pull request #3526 from ActiveState/DX-3094
MDrakos Oct 3, 2024
e8b137d
Add list output to state config
MDrakos Oct 3, 2024
cedee00
Ensure structured output works
MDrakos Oct 3, 2024
0aa822a
Add integration test
MDrakos Oct 3, 2024
ad3188d
Added installable githook for creating a platform commit with the bui…
mitchell-as Oct 4, 2024
28a5f8c
Remove no-op pops.
mitchell-as Oct 4, 2024
e39fc70
Added working directory to hashglobs
Naatan Oct 7, 2024
e3852b7
Added client side model/request for hashglobs
Naatan Oct 7, 2024
2f0af00
Added `FuncCalls()` method to buildscripts.raw
Naatan Oct 7, 2024
4cefb88
buildscript scripts allow for filepath as input
Naatan Oct 7, 2024
76865a1
Remove unused function
Naatan Oct 7, 2024
f7c0246
Refactored buildscript so it can carry context better
Naatan Oct 7, 2024
58985eb
Implemented initial processor pattern for buildscripts
Naatan Oct 7, 2024
d8e37a2
Revert "Implemented initial processor pattern for buildscripts"
Naatan Oct 7, 2024
a4de458
Add missing imports
Naatan Oct 7, 2024
27d4e9d
Build scripts can distinguish between solve nodes for different targets.
mitchell-as Oct 7, 2024
aed5512
Transform all requirement lists from legacy format into the Req() for…
mitchell-as Oct 7, 2024
bf5765e
Expose function calls without exposing low level symbols
Naatan Oct 7, 2024
1b4f3f3
Apply suggested name from PR review.
mitchell-as Oct 8, 2024
a91c2c8
Do not consider blocked artifacts as failed.
mitchell-as Oct 8, 2024
cdaf2ae
Merge pull request #3530 from ActiveState/mitchell/dx-3087
mitchell-as Oct 8, 2024
af3779a
Merge pull request #3532 from ActiveState/mitchell/dx-3083
mitchell-as Oct 8, 2024
683a457
Make targets variadic.
mitchell-as Oct 8, 2024
bdf9fd5
Rename function to clarify it's looking for a solve node, not just an…
mitchell-as Oct 8, 2024
378a436
Reorganize
MDrakos Oct 8, 2024
9105814
Revert config instance changes
MDrakos Oct 8, 2024
d43bc49
Add comment
MDrakos Oct 8, 2024
b17383d
Use plural targets for varargs.
mitchell-as Oct 8, 2024
cc5977c
Merge pull request #3531 from ActiveState/mitchell/dx-2960
mitchell-as Oct 8, 2024
1adb18a
Set environment variable on shell detection
MDrakos Oct 9, 2024
c4dccde
Manually construct table
MDrakos Oct 9, 2024
129a036
Address more PR review comments
MDrakos Oct 9, 2024
d7554e4
Merge pull request #3534 from ActiveState/DX-3000
MDrakos Oct 9, 2024
c29e7fa
Break up value processing
MDrakos Oct 9, 2024
979ef13
fixed version
Naatan Oct 10, 2024
49f6ed0
Fix bold output
MDrakos Oct 10, 2024
2fe66b5
Don't format config value separately
MDrakos Oct 10, 2024
c111f3c
Localize table headers
MDrakos Oct 10, 2024
f900b87
Update internal/runners/config/config.go
MDrakos Oct 10, 2024
75accbf
file hasher now also returns matched files and their individual hash
Naatan Oct 10, 2024
4d85dad
Allow setting and unsetting arguments on function calls external from…
Naatan Oct 10, 2024
5073a4b
Fix recursion panics
Naatan Oct 10, 2024
9477ffc
Merge branch 'version/0-47-0-RC1' into DX-3055
MDrakos Oct 10, 2024
da3bba6
Fix name collisions
Naatan Oct 10, 2024
c50b3e3
Turned publish logic into model function for reusability
Naatan Oct 10, 2024
df57541
Made TempFilePath function errorless
Naatan Oct 11, 2024
c178ee5
Allow specifying namespace suffix for org namespace
Naatan Oct 11, 2024
c5211c7
Implemented ingredient() function for buildscripts (on commit)
Naatan Oct 11, 2024
252fc24
Support different dependency types
Naatan Oct 11, 2024
5522f6e
Merge remote-tracking branch 'origin/version/0-47-0-RC1' into DX-3023
Naatan Oct 11, 2024
35607d0
Merge branch 'version/0-46-0-RC2' into version/0-47-0-RC1
Naatan Oct 11, 2024
2a0451e
Update hashes as they changed due to new dependency types
Naatan Oct 11, 2024
ab0569e
Fix unit test
Naatan Oct 11, 2024
28354bc
Fix badly formatted errors
Naatan Oct 11, 2024
5bfb3d2
Fix failing test due to formatting change
Naatan Oct 11, 2024
e09e5b1
Merge pull request #3528 from ActiveState/DX-3055
MDrakos Oct 11, 2024
23e7589
Ensure consistent comparison
Naatan Oct 11, 2024
3db1d0b
Merge branch 'version/0-47-0-RC1' into DX-3023
Naatan Oct 11, 2024
167a8a9
Comments and organization
Naatan Oct 11, 2024
346f6fd
Merge branch 'version/0-47-0-RC1' into DX-3023
Naatan Oct 11, 2024
92aab95
Revert "Merge branch version/0-47-0-RC1 to adopt changes from PR #3531"
Naatan Oct 11, 2024
cf52f5d
Merge pull request #3538 from ActiveState/DX-3104
Naatan Oct 11, 2024
26f1a31
Merge pull request #3529 from ActiveState/mitchell/dx-3092
mitchell-as Oct 15, 2024
fa45111
Merge remote-tracking branch 'origin/version/0-47-0-RC1' into DX-3023
Naatan Oct 15, 2024
c85719e
Update command and expect
MDrakos Oct 15, 2024
041b4c6
Use --version
MDrakos Oct 15, 2024
c1105c2
Add back expect
MDrakos Oct 15, 2024
794ab10
Merge branch version/0-46-0-RC2 to adopt changes from PR #3540
as-builds Oct 15, 2024
e33e509
Merge branch version/0-46-0-RC2 to adopt changes from PR #3541
as-builds Oct 15, 2024
68c742f
Remove comments
MDrakos Oct 15, 2024
288fcb1
Consistently handle hash values
Naatan Oct 16, 2024
4754067
Add comment explaining parseRequirement
Naatan Oct 16, 2024
782b533
Add processBuildPlannerError handling
Naatan Oct 16, 2024
952fdf2
Merge pull request #3542 from ActiveState/DX-3106
MDrakos Oct 16, 2024
bdcc5ab
Check for process in use before cleaning cache
MDrakos Oct 16, 2024
cbc6576
Add newline
MDrakos Oct 16, 2024
c2de156
Debug integration test
MDrakos Oct 16, 2024
f600a1d
Merge pull request #3537 from ActiveState/DX-3023
Naatan Oct 16, 2024
7d7bb20
Force failure on Windows
MDrakos Oct 16, 2024
2c4e814
Run only full uninstall
MDrakos Oct 16, 2024
d666320
Print paths to be removed
MDrakos Oct 16, 2024
b1bf0e4
Attempt to use longpaths
MDrakos Oct 16, 2024
6270c8d
Revert config changes
MDrakos Oct 16, 2024
d1677e1
Remove debug print
MDrakos Oct 16, 2024
e9f1184
Remove snapshot print
MDrakos Oct 16, 2024
7b7f409
Make input error
MDrakos Oct 16, 2024
195779c
Increase timeout
MDrakos Oct 16, 2024
27b46d3
Build scripts can distinguish between solve nodes for different targets.
mitchell-as Oct 17, 2024
9aa7b31
Search merge nodes for solve nodes.
mitchell-as Oct 17, 2024
6d4951d
Localize error
MDrakos Oct 17, 2024
f4cc3c9
Merge pull request #3543 from ActiveState/DX-3040
MDrakos Oct 17, 2024
5ec6a87
Merge pull request #3544 from ActiveState/mitchell/dx-2960-2
mitchell-as Oct 17, 2024
4fedcbd
Participle should unquote strings.
mitchell-as Sep 6, 2024
2d34115
Initial support for commit info in buildscript.
mitchell-as Sep 6, 2024
ba3aec7
Add warning about using an outdated buildscript.
mitchell-as Sep 9, 2024
1acb72d
Use TIME instead of at_time in build scripts.
mitchell-as Sep 30, 2024
6430b81
Attempt to fix failing test.
mitchell-as Oct 4, 2024
34781f0
Leverage project's URL instead of constructing a full one.
mitchell-as Oct 18, 2024
df62273
Update dependecy version
MDrakos Oct 18, 2024
4feb03e
Merge pull request #3545 from ActiveState/mitchell/dx-3024-4
mitchell-as Oct 18, 2024
bd29067
Merge branch version/0-46-0-RC3 to adopt changes from PR #3548
as-builds Oct 18, 2024
8737683
Fixed failing integration test.
mitchell-as Oct 21, 2024
ee6b3ee
Merge pull request #3550 from ActiveState/mitchell/dx-3122
mitchell-as Oct 21, 2024
97359f0
Ensure remote installer can run within restricted powershells.
mitchell-as Oct 21, 2024
3f5294c
Fixed empty remote installer exe name.
mitchell-as Oct 21, 2024
98ca57f
Only set at_time if it is not already set
MDrakos Oct 21, 2024
d57144d
Merge pull request #3549 from ActiveState/DX-3113
MDrakos Oct 21, 2024
11fb1d5
Set at time consistently
MDrakos Oct 21, 2024
4bbfd14
Revert temporary PATH changes.
mitchell-as Oct 22, 2024
bf89295
Don't set atTime when unmarshalling
MDrakos Oct 22, 2024
7653324
Handle case-insensitive env var names on Windows.
mitchell-as Oct 22, 2024
0f874f8
Verify execution policy was reset after the fact.
mitchell-as Oct 23, 2024
501cb62
Updated comment for clarity and added integration test.
mitchell-as Oct 23, 2024
b46d496
Merge pull request #3551 from ActiveState/mitchell/dx-2989-2
mitchell-as Oct 23, 2024
a86d14d
Merge pull request #3553 from ActiveState/mitchell/dx-3030
mitchell-as Oct 23, 2024
af34e6a
Preserve solve at_time
MDrakos Oct 23, 2024
fa3b0b2
Re-enable CheckoutFromArchive test.
mitchell-as Oct 24, 2024
9eab57a
Add unit test
MDrakos Oct 24, 2024
a67002f
Remove debug log
MDrakos Oct 24, 2024
8158813
Merge pull request #3555 from ActiveState/mitchell/dx-3057-2
mitchell-as Oct 25, 2024
8ce192f
Only assert one of each platform, as the number can change over time.
mitchell-as Oct 25, 2024
0a95594
Added runtime sourcing timeout opt to fix occasionally failing test.
mitchell-as Oct 25, 2024
6c1610f
Use fixed timestamp when asserting package versions.
mitchell-as Oct 25, 2024
26b2210
Use runtime sourcing timeout opt to fix failing test.
mitchell-as Oct 25, 2024
33bf8fb
Use override when setting atTime
MDrakos Oct 25, 2024
64c0d72
Merge pull request #3556 from ActiveState/mitchell/dx-3128
mitchell-as Oct 25, 2024
536cdae
Merge pull request #3557 from ActiveState/mitchell/dx-3129
mitchell-as Oct 25, 2024
c47a9dc
Merge pull request #3558 from ActiveState/mitchell/dx-3130
mitchell-as Oct 25, 2024
20f29c8
Merge pull request #3559 from ActiveState/mitchell/dx-3131
mitchell-as Oct 25, 2024
bcb3421
Do not report config initialization input errors to rollbar.
mitchell-as Oct 28, 2024
81cb55f
Do not upload artifacts after deploy.
mitchell-as Oct 28, 2024
a160ff7
Fixed incorrect commit message operations.
mitchell-as Oct 28, 2024
fcb1b6e
Merge pull request #3561 from ActiveState/mitchell/dx-3111
mitchell-as Oct 28, 2024
125bb04
Merge pull request #3560 from ActiveState/mitchell/dx-3134
mitchell-as Oct 28, 2024
4886da9
Log %PATH% that did not contain powershell to aid in diagnosing rollb…
mitchell-as Oct 28, 2024
34d3e1a
Address PR review comments
MDrakos Oct 28, 2024
0f17575
Merge branch version/0-46-0-RC3 to adopt changes from PR #3565
as-builds Oct 28, 2024
7aa9e61
Merge pull request #3552 from ActiveState/DX-3115
MDrakos Oct 28, 2024
31d8c7b
Merge pull request #3563 from ActiveState/mitchell/dx-3132
mitchell-as Oct 28, 2024
f40316e
Merge pull request #3562 from ActiveState/mitchell/dx-3121
mitchell-as Oct 28, 2024
d180c70
Localize an access denied error when attempting to migrate an actives…
mitchell-as Oct 28, 2024
f788e57
Re-enable test.
mitchell-as Oct 29, 2024
7bc6706
Walk process tree
MDrakos Oct 29, 2024
69ff60d
Merge branch version/0-46-1-RC1 to adopt changes from PR #3571
as-builds Oct 29, 2024
ceabd00
Merge branch 'version/0-46-1-RC1' into version/0-47-0-RC1
Naatan Oct 29, 2024
31b9182
Debug script
MDrakos Oct 29, 2024
aaf957b
More debugging
MDrakos Oct 29, 2024
986f378
Remove debug prints
MDrakos Oct 29, 2024
ffcf701
Merge pull request #3567 from ActiveState/mitchell/dx-3125
mitchell-as Oct 29, 2024
f4c94aa
Merge pull request #3572 from ActiveState/DX-3000
MDrakos Oct 29, 2024
6fba38b
Make access denied error an input error.
mitchell-as Oct 30, 2024
a7d4759
Merge pull request #3566 from ActiveState/mitchell/dx-3137
mitchell-as Oct 30, 2024
4eb18a8
Add doublestar support for globbing and fix inconsistencies in hash c…
Naatan Oct 31, 2024
b1af420
Add CommonParentPath function
Naatan Oct 31, 2024
8472bd9
Add GetwdUnsafe
Naatan Oct 31, 2024
bb3304b
`artifacts dl` should fail if artifact status is not successful
Naatan Oct 31, 2024
40b99ef
Add structured output for `artifacts dl`
Naatan Oct 31, 2024
9086810
model.BuildPlannerVersionConstraintsToString > model.VersionRequireme…
Naatan Oct 31, 2024
ad3aa7b
Added sliceutils.Cast
Naatan Oct 31, 2024
ba97d3c
Automatically set Path according to name/namespace
Naatan Oct 31, 2024
a0f86f5
Fix hashglobs variable notation
Naatan Oct 31, 2024
1cb3d36
Fix org namespace values
Naatan Oct 31, 2024
da63e3d
Missing import
Naatan Oct 31, 2024
312771b
Added archiver package
Naatan Oct 31, 2024
908b685
Buildscript external values support ints and slices
Naatan Oct 31, 2024
209ced7
Fix successful request throwing error
Naatan Oct 31, 2024
57c7997
Various fixes to ingredientcall during end to end testing
Naatan Oct 31, 2024
18545b2
Test ingredientcall
Naatan Oct 31, 2024
b810194
Add comments
Naatan Oct 31, 2024
1273d0b
Merge remote-tracking branch 'origin/version/0-47-0-RC1' into DX-3105
Naatan Oct 31, 2024
104a522
Compatibility fixes
Naatan Oct 31, 2024
32bda03
Disable test for now
Naatan Oct 31, 2024
69236e0
Drop old test
Naatan Oct 31, 2024
71d8071
Remove unused mutex
Naatan Nov 1, 2024
dae0380
Enable ingredientcall integration test
Naatan Nov 1, 2024
4546624
More test cases and support windows paths
Naatan Nov 1, 2024
7e2ba42
Clean up parent node logic
Naatan Nov 1, 2024
4779823
Update GitHub Actions macos runner to 13.
mitchell-as Nov 4, 2024
3da98a2
Merge pull request #3578 from ActiveState/mitchell/dx-3148
Naatan Nov 4, 2024
bdd8b3c
Implement user-facing errors for environment setup commands.
mitchell-as Nov 4, 2024
f4b3170
Fix unit test failures
Naatan Nov 5, 2024
fa24657
Update hashes in test
Naatan Nov 5, 2024
d0d975c
Add log info
Naatan Nov 5, 2024
96baec2
Also handle requirements in solve_legacy
Naatan Nov 6, 2024
332823c
Add debug info
Naatan Nov 6, 2024
ba3e9a5
Ensure function call hash is consistently calculated
Naatan Nov 6, 2024
774120b
Increase solving timeout
Naatan Nov 6, 2024
864af32
Add debug info
Naatan Nov 6, 2024
445dbe4
Give windows more time
Naatan Nov 6, 2024
9132b74
Merge pull request #3582 from ActiveState/mitchell/dx-3150
mitchell-as Nov 7, 2024
67c2110
Ensure filepaths are using forward slash
Naatan Nov 7, 2024
6c38c9e
Drop redundant calls
Naatan Nov 7, 2024
f380d3d
Use relative paths for archives
Naatan Nov 7, 2024
4a9f51c
Merge pull request #3584 from ActiveState/mitchell/dx-3144
mitchell-as Nov 7, 2024
c1fc008
Add comment around absolute paths
Naatan Nov 8, 2024
3ef1501
Merge pull request #3579 from ActiveState/mitchell/dx-2855
mitchell-as Nov 8, 2024
c20a2fb
Ensure we use the correct atTime when ingredient was cached at a newe…
Naatan Nov 8, 2024
543089c
Fix time comparison issues with buildscripts due to inconsistent time…
Naatan Nov 8, 2024
bceec93
Fix test
Naatan Nov 12, 2024
5d70309
Fix unit test
Naatan Nov 12, 2024
41062d2
Fix TestRealWorld
Naatan Nov 12, 2024
fbf7ca2
Merge pull request #3575 from ActiveState/DX-3105
Naatan Nov 13, 2024
d33a4d0
Handle recursive links in runtime sources.
mitchell-as Nov 18, 2024
da5fee5
Recurse into recursively linked directories not more than once.
mitchell-as Nov 21, 2024
9dd2ff9
Revert "Recurse into recursively linked directories not more than once."
mitchell-as Nov 22, 2024
f0c7784
Make it explicit that re-encountering file involves a symlink source.
mitchell-as Nov 22, 2024
b75482b
When deploying via link, deploy symlinks directly instead of resolvin…
mitchell-as Nov 22, 2024
d1a7e18
Minimize changes from previous commit.
mitchell-as Nov 27, 2024
6054081
Merge pull request #3600 from ActiveState/mitchell/dx-3167-2
mitchell-as Nov 27, 2024
99d6175
Remediate CVE in golang.org/x/crypto.
mitchell-as Dec 16, 2024
7d92e0f
Bump golang-jwt version to address CVE.
mitchell-as Dec 23, 2024
87c60b8
Bump golang.org/net/x to fix CVE.
mitchell-as Dec 23, 2024
f0ec41a
Remediate CVE in go-git.
mitchell-as Jan 6, 2025
4002b2a
Re-run `go mod vendor`.
mitchell-as Jan 9, 2025
c1a4d4f
Merge pull request #3627 from ActiveState/mitchell/dx-3200
mitchell-as Jan 9, 2025
7317290
Added changelog for v0.47.0
Naatan Jan 14, 2025
4640cc1
Merge branch 'beta' into version/0-47-0-RC2
Naatan Jan 14, 2025
1e30204
Merge pull request #3629 from ActiveState/version/0-47-0-RC2
Naatan Jan 14, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 1 addition & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- 1.22.x
sys:
- {os: ubuntu-latest}
- {os: macos-12, shell: zsh}
- {os: macos-13, shell: zsh}
- {os: windows-2019}
fail-fast: false
runs-on: ${{ matrix.sys.os }}
Expand Down Expand Up @@ -511,10 +511,3 @@ jobs:
session-build-ubuntu-20.04
session-build-macos-11
session-build-windows-2019

- # === Upload Artifacts ===
name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: build
path: build/
44 changes: 44 additions & 0 deletions .github/workflows/scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Scan

on:
schedule:
- cron: 0 0 * * *

jobs:
fetch-binaries:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install State Tool
uses: ActiveState/setup-state-tool@v1

- name: Copy State Tool binaries to workspace dir
shell: bash
run: |
exe=`which state`
dir=`dirname $exe`
cp -r $dir/* '${{ github.workspace }}'

- name: Upload binaries
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}-binaries
path: .

scan:
needs: fetch-binaries
runs-on: ubuntu-latest
steps:
- name: Download binaries
uses: actions/download-artifact@v4

- name: Scan binaries
uses: aquasecurity/[email protected]
with:
scan-type: rootfs
scan-ref: '.'
ignore-unfixed: true
format: table
exit-code: 1
3 changes: 2 additions & 1 deletion activestate.generators.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ scripts:
language: bash
description: Generates graph server and client files
value: |
go install github.com/99designs/[email protected]
set -e
go install github.com/99designs/[email protected]
cd ./cmd/state-svc && gqlgen --verbose
- name: generate-test-update
language: bash
Expand Down
45 changes: 39 additions & 6 deletions activestate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ constants:
scripts:
- name: install-deps-dev
language: bash
standalone: true
if: ne .Shell "cmd"
value: |
if ! type "go" &> /dev/null; then
Expand All @@ -73,11 +74,13 @@ scripts:
fi
- name: install-deps-os
language: bash
standalone: true
if: ne .OS.Name "Linux"
description: Install OS specific deps
value: ""
- name: install-deps-ci
language: bash
standalone: true
if: ne .Shell "cmd"
value: |
if { [[ "$GOOS" == "windows" ]] || [[ "$OS" == "Windows_NT" ]]; } && ! type "goversioninfo" &> /dev/null; then
Expand All @@ -86,6 +89,7 @@ scripts:
fi
- name: preprocess
language: bash
standalone: true
description: Generates assets required by the project that aren't just specific to the build
value: |
set -e
Expand All @@ -97,6 +101,7 @@ scripts:
fi
- name: build
language: bash
standalone: true
description: Builds the project with the host OS as the target OS.
value: |
set -e
Expand All @@ -111,6 +116,7 @@ scripts:
go build -tags "$GO_BUILD_TAGS" -o $BUILD_TARGET_DIR/$constants.BUILD_TARGET $constants.CLI_BUILDFLAGS $constants.CLI_PKGS
- name: build-for
language: bash
standalone: true
description: Builds the project with the specified OS as the target OS. (valid values darwin, linux, windows)
value: |
set -e
Expand All @@ -121,6 +127,7 @@ scripts:
go build -tags "internal $GO_BUILD_TAGS" -o ${2} $constants.CLI_BUILDFLAGS $constants.CLI_PKGS
- name: build-svc
language: bash
standalone: true
description: Builds the state-svc daemon
value: |
set -e
Expand All @@ -136,15 +143,16 @@ scripts:
- name: build-exec
description: Builds the State Executor application
language: bash
standalone: true
value: |
set -e
$constants.SET_ENV

go build -tags "$GO_BUILD_TAGS" -o $BUILD_TARGET_DIR/$constants.BUILD_EXEC_TARGET $constants.CLI_BUILDFLAGS $constants.EXECUTOR_PKGS
- name: build-all
description: Builds all our tools
standalone: true
language: bash
standalone: true
value: |
set -e
echo "Building State Tool"
Expand All @@ -159,6 +167,7 @@ scripts:
$scripts.build-exec.path()
- name: build-installer
language: bash
standalone: true
description: Builds the state-installer
value: |
set -e
Expand All @@ -167,26 +176,29 @@ scripts:
go build -tags "$GO_BUILD_TAGS" -o $BUILD_TARGET_DIR/$constants.BUILD_INSTALLER_TARGET $constants.INSTALLER_PKGS
- name: build-remote-installer
language: bash
standalone: true
description: Builds the state-remote-installer
value: |
set -e
$constants.SET_ENV
TARGET=$BUILD_REMOTE_INSTALLER_TARGET
TARGET=$constants.BUILD_REMOTE_INSTALLER_TARGET
if [[ "$GOOS" == "windows" || "$OS" == "Windows_NT" ]]; then
TARGET="${BUILD_REMOTE_INSTALLER_TARGET}.exe"
TARGET="${constants.BUILD_REMOTE_INSTALLER_TARGET}.exe"
fi
GOFLAGS="" go install github.com/josephspurrier/goversioninfo/cmd/[email protected]
cd cmd/state-remote-installer
go generate
go build -tags "$GO_BUILD_TAGS" -o ../../$BUILD_TARGET_DIR/$TARGET .
- name: install
language: bash
standalone: true
description: Installs the current HEAD version into GOBIN
value: |
$constants.SET_ENV
go install $constants.CLI_BUILDFLAGS $CLI_PKGS
- name: deploy-updates
language: bash
standalone: true
description: Deploys update files to S3. This steps is automated by CI and should never be ran manually unless you KNOW WHAT YOU'RE DOING.
value: |
set -e
Expand Down Expand Up @@ -232,17 +244,20 @@ scripts:
cp installers/stop${constants.SCRIPT_EXT} $INSTALLERS_DIR/stop${constants.SCRIPT_EXT}
- name: deploy-installers
language: bash
standalone: true
description: Deploys update files to S3. This steps is automated by CI and should never be ran manually unless you KNOW WHAT YOU'RE DOING.
value: |
go run scripts/ci/s3-deployer/main.go build/installers us-east-1 state-tool update/state
- name: deploy-remote-installer
language: bash
standalone: true
value: |
set -e
$constants.SET_ENV
go run scripts/ci/s3-deployer/main.go $BUILD_TARGET_DIR/remote-installer us-east-1 state-tool remote-installer
- name: build-workflow-assets
language: bash
standalone: true
description: Generates our github workflows
value: |
$scripts.build-for.path() "windows" ./.github/deps/Windows/bin/state.exe
Expand All @@ -254,6 +269,7 @@ scripts:
GOOS=darwin go build -o .github/deps/macOS/bin/parallelize github.com/ActiveState/cli/scripts/ci/parallelize/
- name: update-workflow-assets
language: bash
standalone: true
description: Generates our github workflows
value: |
[ -z "${2}" ] && >&2 echo "Usage: update-workflow-assets [branch] [version]" && exit 1
Expand Down Expand Up @@ -286,12 +302,13 @@ scripts:
rm -Rf $tmpDir
- name: test
language: bash
standalone: true
description: Runs unit tests (not integration tests)
value: |
go test -v `go list ./... | grep -v integration | grep -v automation | grep -v expect | grep -v state-svc | grep -v state-offline` $@
standalone: true
- name: integration-tests
language: bash
standalone: true
description: Runs integration tests.
value: |
unset ACTIVESTATE_ACTIVATED
Expand All @@ -300,35 +317,39 @@ scripts:
go test `go list ./... | grep "${INTEGRATION_TEST_REGEX}"` -v "${@:1}" -timeout 20m
- name: integration-tests-build-check
language: bash
standalone: true
description: Builds integration tests and removes the executable artifact(s).
value: |
out="x.test"
go list ./... | grep "${INTEGRATION_TEST_REGEX}" | xargs -L 1 go test -o $out -c
[ -f $out ] && rm $out
- name: clean
language: bash
standalone: true
description: Cleans out the build dir.
value: |
go clean
rm -Rf build
- name: run
language: bash
standalone: true
description: Builds the State Tool and runs it with `--help`
value: |
$scripts.build.path()
build/state --help
- name: debug
language: bash
description: "Runs a remote debugger that can be hooked into from your IDE. Example usage: `state run debug activate` (will debug `state activate`)"
standalone: true
description: "Runs a remote debugger that can be hooked into from your IDE. Example usage: `state run debug activate` (will debug `state activate`)"
value: dlv debug --headless --listen=:2346 --api-version=2 github.com/ActiveState/cli/cmd/state -- $@
- name: scripted
language: bash
description: "Runs a command via 'go run'"
standalone: true
description: "Runs a command via 'go run'"
value: go run github.com/ActiveState/cli/cmd/state $@
- name: story-cleanup
language: bash
standalone: true
description: "Runs Python script to move old stories from primary project to storage project"
value: |
export PT_API_TOKEN=$secrets.project.PT_API_TOKEN
Expand All @@ -338,12 +359,14 @@ scripts:
python3 ./scripts/story-cleanup/story-cleanup.py
- name: lint
language: bash
standalone: true
description: "Runs linting for untracked and unstaged changes (if any), or staged changes"
value: |
golangci-lint run --new
actionlint
- name: lint-staged
language: bash
standalone: true
description: "Runs linting for staged changes (skipping untracked and unstaged-only files)"
value: |
golangci-lint run \
Expand All @@ -356,12 +379,14 @@ scripts:
actionlint $actionfiles
- name: lint-all
language: bash
standalone: true
description: "Runs linting for all files"
value: |
golangci-lint run --no-config
actionlint
- name: check-format
language: bash
standalone: true
description: "Checks if the code is formatted correctly"
value: |
set -e
Expand Down Expand Up @@ -392,48 +417,55 @@ scripts:
fi
- name: grab-mergecommits
language: bash
standalone: true
value: |
export JIRA_USERNAME=${secrets.user.JIRA_USERNAME}
export JIRA_TOKEN=${secrets.user.JIRA_TOKEN}
export GITHUB_TOKEN=${secrets.user.GITHUB_TOKEN}
go run $project.path()/scripts/grab-mergecommits/main.go $1
- name: target-version-pr
language: bash
standalone: true
value: |
export JIRA_USERNAME=${secrets.user.JIRA_USERNAME}
export JIRA_TOKEN=${secrets.user.JIRA_TOKEN}
export GITHUB_TOKEN=${secrets.user.GITHUB_TOKEN}
go run $project.path()/scripts/ci/target-version-pr/main.go $1
- name: create-version-pr
language: bash
standalone: true
value: |
export JIRA_USERNAME=${secrets.user.JIRA_USERNAME}
export JIRA_TOKEN=${secrets.user.JIRA_TOKEN}
export GITHUB_TOKEN=${secrets.user.GITHUB_TOKEN}
go run $project.path()/scripts/create-version-pr/main.go $1
- name: propagate-pr
language: bash
standalone: true
value: |
export JIRA_USERNAME=${secrets.user.JIRA_USERNAME}
export JIRA_TOKEN=${secrets.user.JIRA_TOKEN}
export GITHUB_TOKEN=${secrets.user.GITHUB_TOKEN}
go run $project.path()/scripts/ci/propagate-pr/main.go $1
- name: verify-pr
language: bash
standalone: true
value: |
export JIRA_USERNAME=${secrets.user.JIRA_USERNAME}
export JIRA_TOKEN=${secrets.user.JIRA_TOKEN}
export GITHUB_TOKEN=${secrets.user.GITHUB_TOKEN}
go run $project.path()/scripts/ci/verify-pr/main.go $1
- name: start-story
language: bash
standalone: true
value: |
export JIRA_USERNAME=${secrets.user.JIRA_USERNAME}
export JIRA_TOKEN=${secrets.user.JIRA_TOKEN}
export GITHUB_TOKEN=${secrets.user.GITHUB_TOKEN}
go run $project.path()/scripts/start-story/main.go "$@"
- name: ghapi
language: bash
standalone: true
value: |
curl \
-H "Accept: application/vnd.github+json" \
Expand All @@ -442,6 +474,7 @@ scripts:
- name: benchmark-exec
if: eq .OS.Name "Linux"
language: bash
standalone: true
description: "Benchmarks executable leveraging highly sensitive/accurate tooling"
value: |
# example usage:
Expand Down
Loading
Loading