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

Version 0.47.0-RC1 #3464

Open
wants to merge 938 commits into
base: beta
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
938 commits
Select commit Hold shift + click to select a range
76eb665
Move hash library
MDrakos Sep 12, 2024
608b55e
Revert yaml changes
MDrakos Sep 12, 2024
b960131
Defer file closure
MDrakos Sep 12, 2024
b78adce
Clean cache every 24 hours
MDrakos Sep 12, 2024
99c348a
Add comment
MDrakos Sep 12, 2024
0021f03
Add back auto wildcarding
Naatan Sep 12, 2024
e12c615
Reduce API requests
Naatan Sep 12, 2024
465a7e8
Add back newline
MDrakos Sep 12, 2024
74e7e6a
Remove unused var
Naatan Sep 12, 2024
6d344d9
Fix assertion
Naatan Sep 13, 2024
2520098
Mark input errors
Naatan Sep 13, 2024
02ba527
Increase search timeout
Naatan Sep 13, 2024
a8a0bc0
Apply suggestions from code review
MDrakos Sep 13, 2024
201fd9a
Fix nightly failures due to CVE database update.
mitchell-as Sep 12, 2024
4f56d4c
Increase test timeout for --ts=now.
mitchell-as Sep 13, 2024
39fdf53
Add back return value names
MDrakos Sep 13, 2024
11c75f8
Merge pull request #3489 from ActiveState/mitchell/dx-3046
mitchell-as Sep 13, 2024
5729b0e
Merge branch 'version/0-47-0-RC1' into DX-3032
MDrakos Sep 13, 2024
e28c63b
Use blank identifier
MDrakos Sep 13, 2024
d43b31a
Add comment explaining async config condition
Naatan Sep 13, 2024
0fa03bf
Drop badly worded but also useless comments
Naatan Sep 13, 2024
9d7a94a
Add comment for `SpawnDebuggerWithOpts`
Naatan Sep 13, 2024
b4ada37
Remove unused function
Naatan Sep 13, 2024
70a6f30
Rename method to be consistent
Naatan Sep 13, 2024
60bc059
Expectation can use full word
Naatan Sep 13, 2024
1ee70c9
Differentiate between solving and sourcing runtime timeouts
Naatan Sep 13, 2024
2f767aa
Retaining dirs is by definition something we ought to only do for deb…
Naatan Sep 13, 2024
6dc93a5
Merge remote-tracking branch 'origin/version/0-47-0-RC1' into DX-1897
Naatan Sep 13, 2024
05e069c
Add increased timeout
Naatan Sep 13, 2024
46bf5c6
Merge pull request #3484 from ActiveState/DX-3032
MDrakos Sep 13, 2024
78732f0
Revert "Filter artifacts for reporting"
Naatan Sep 16, 2024
07fa246
Do not validate commit ID from within projectfile.
mitchell-as Sep 16, 2024
56a1cb4
Merge pull request #3490 from ActiveState/mitchell/dx-3050
mitchell-as Sep 16, 2024
1373a50
Merge branch version/0-46-0-RC1 to adopt changes from PR #3490
as-builds Sep 16, 2024
067dd4c
Remove shell PS1/prompt modifications.
mitchell-as Sep 17, 2024
55d90ba
Added test that verifies a bare `state` is not making any API calls.
mitchell-as Sep 17, 2024
d893ec6
Added `ACTIVESTATE_CLI_IGNORE_ENV` for ignoring env vars during runti…
mitchell-as Sep 17, 2024
7bc2caa
Merge pull request #3491 from ActiveState/mitchell/dx-3020
mitchell-as Sep 17, 2024
42309b3
Merge pull request #3492 from ActiveState/mitchell/dx-2897
mitchell-as Sep 17, 2024
a630247
Allow config options to be an enum.
mitchell-as Sep 17, 2024
5488c3f
Merge branch 'version/0-47-0-RC1' into mitchell/dx-2927
mitchell-as Sep 17, 2024
a9c1c8d
Add ability for runners to ignore async runtimes.
mitchell-as Sep 17, 2024
01d8fc4
Address all commands as per DX-2738
Naatan Sep 18, 2024
6c14a81
Fix test timeout
Naatan Sep 18, 2024
929f31e
Sort slices in buildplans so we always have a consistent format to wo…
Naatan Sep 18, 2024
2db48ce
Ensure dependencies returned don't contain duplicates
Naatan Sep 18, 2024
db48964
Only relate ingredients that connect directly to an artifact
Naatan Sep 18, 2024
e8283ce
Fix common dependency calculation
Naatan Sep 18, 2024
816f34c
Test to ensure we only relate ingredients to artifacts that are direc…
Naatan Sep 18, 2024
4343122
Show sub-dependencies if top level ingredient is also a common depend…
Naatan Sep 18, 2024
73390a5
Add `state export deptree` commands
Naatan Sep 18, 2024
46c9ba6
Merge remote-tracking branch 'origin/master' into DX-3056
Naatan Sep 18, 2024
d2a3519
Merge pull request #3495 from ActiveState/mitchell/dx-3054
Naatan Sep 18, 2024
a350786
Merge branch version/0-46-0-RC1 to adopt changes from PR #3495
as-builds Sep 18, 2024
56e713f
Add FilterOutIngredients
Naatan Sep 18, 2024
a8dbb26
Drop FilterOutIngredients; meant for other PR
Naatan Sep 18, 2024
070ee59
Add new argument
Naatan Sep 18, 2024
7bb259f
Drop testing code
Naatan Sep 18, 2024
7cf6a23
Add FilterOutIngredients
Naatan Sep 18, 2024
7f47fb8
Skip test that has its own issues
Naatan Sep 18, 2024
1abf130
Fix import cycle
Naatan Sep 18, 2024
b2342b7
Merge pull request #3498 from ActiveState/DX-3054
Naatan Sep 18, 2024
03d5dc6
Merge branch 'version/0-46-0-RC1' into version/0-47-0-RC1
Naatan Sep 18, 2024
7a0c29d
Fix test; not guaranteed to return django
Naatan Sep 19, 2024
ed949e5
Satisfy newline checker which is apparently bugged cause I didn't tou…
Naatan Sep 19, 2024
4b0cca8
Fix unit test using removed function
Naatan Sep 19, 2024
2ae56e0
Give more time for double solve
Naatan Sep 19, 2024
97030ae
Rename cleanup to sanitize and move sorting logic there
Naatan Sep 19, 2024
da1e745
Rename cleanup to sanitize and move sorting logic there
Naatan Sep 19, 2024
7a6ccc1
Remove unused mimetypes
Naatan Sep 19, 2024
948ebeb
Merge pull request #3496 from ActiveState/nathan/DX-3039
Naatan Sep 20, 2024
4794f41
Merge branch version/0-46-0-RC1 to adopt changes from PR #3481
as-builds Sep 20, 2024
bbf5f68
Merge remote-tracking branch 'origin/version/0-47-0-RC1' into DX-3056
Naatan Sep 20, 2024
d627c74
Merge branch 'version/0-46-0-RC1' into version/0-47-0-RC1
Naatan Sep 20, 2024
d41d398
Merge branch 'version/0-47-0-RC1' into DX-3056
Naatan Sep 20, 2024
4729ae5
Update gqlgen - old version has checksum mismatch
Naatan Sep 20, 2024
38c559a
Drop code that doesn't work with latest version of gqlgen and doesn't…
Naatan Sep 20, 2024
852955c
Added GetCache/SetCache secret-svc resolvers
Naatan Sep 20, 2024
f0fcb98
Buildplanner model now depends on svcModel
Naatan Sep 20, 2024
abb6c8e
Slight refactor of `state manifest` to take advantage of caching by d…
Naatan Sep 20, 2024
3e54242
Fix BuildResponse cannot unmarshal and re-marshal
Naatan Sep 20, 2024
f056737
Implement caching of buildscripts/commits
Naatan Sep 20, 2024
8eabdcf
Catch programming error.
mitchell-as Sep 23, 2024
58e1176
Merge pull request #3494 from ActiveState/mitchell/dx-2927
mitchell-as Sep 23, 2024
7768e1b
Fixed failing integration test.
mitchell-as Sep 23, 2024
cf96bd8
Increase test timeout.
mitchell-as Sep 23, 2024
fd95129
Merge pull request #3487 from ActiveState/DX-1897
Naatan Sep 23, 2024
b80f157
Ignore environment variables at load-time instead of at post-process …
mitchell-as Sep 23, 2024
62f16e6
Merge pull request #3501 from ActiveState/mitchell/dx-3062
mitchell-as Sep 23, 2024
fa1ce5f
Merge pull request #3500 from ActiveState/mitchell/dx-3067
mitchell-as Sep 23, 2024
e593ad0
Merge branch 'version/0-47-0-RC1' into mitchell/dx-3011
mitchell-as Sep 23, 2024
75fd51c
Use `sliceutils.Filter()` for removing ignored env vars.
mitchell-as Sep 23, 2024
255d3f9
Test for hardlink support on Windows before doing it.
mitchell-as Sep 23, 2024
84273fa
Cleanup hard link checking.
mitchell-as Sep 23, 2024
5515ef4
Merge pull request #3493 from ActiveState/mitchell/dx-3011
mitchell-as Sep 23, 2024
8277978
Add test
Naatan Sep 23, 2024
62e5be0
Merge remote-tracking branch 'origin/version/0-47-0-RC1' into DX-3029
Naatan Sep 23, 2024
ff7c569
Fixed failing integration tests.
mitchell-as Sep 24, 2024
03f30b1
Setup is responsible for knowing if the depot supports hard links or …
mitchell-as Sep 24, 2024
2219141
Fix nil pointer panic
Naatan Sep 24, 2024
1a55921
Revert "Slight refactor of `state manifest` to take advantage of cach…
Naatan Sep 24, 2024
03c9a28
Add svcmodel calls
Naatan Sep 24, 2024
44d3237
Merge pull request #3503 from ActiveState/mitchell/dx-3075
mitchell-as Sep 24, 2024
bfedd74
Satisfy check-format
Naatan Sep 24, 2024
4087d13
Setup is responsible for determining hardlink support, not the depot.
mitchell-as Sep 24, 2024
34c0421
Drop debugging code and redundant code caused by bad merge
Naatan Sep 24, 2024
0f4e5e7
Add language to script
MDrakos Sep 24, 2024
404ace9
Merge pull request #3497 from ActiveState/DX-3056
Naatan Sep 24, 2024
bc4f65c
Delete requirements.go - accidentally added back through bad merge
Naatan Sep 24, 2024
bc69a84
Merge pull request #3504 from ActiveState/DX-3072
Naatan Sep 24, 2024
2deb608
Merge branch version/0-46-0-RC1 to adopt changes from PR #3504
as-builds Sep 24, 2024
a93e6a1
If buildscripts are enabled, `state refresh` without a buildscript sh…
mitchell-as Sep 24, 2024
fdcf750
Merge branch 'version/0-46-0-RC1' into mitchell/dx-2943
mitchell-as Sep 24, 2024
f9f94b5
Merge branch 'version/0-46-0-RC1' into mitchell/dx-3073
mitchell-as Sep 24, 2024
fac08a8
Fix panic
MDrakos Sep 24, 2024
2a2d4d7
Move hard link detection into constructor so it's only done once.
mitchell-as Sep 24, 2024
cc53ca4
The only commands that should ignore async runtimes are `refresh`, `d…
mitchell-as Sep 24, 2024
71e9128
Apply PR feedback suggestions.
mitchell-as Sep 24, 2024
847e40a
Requirements aren't guaranteed to resolve
Naatan Sep 24, 2024
1d79eb6
Merge pull request #3506 from ActiveState/DX-3069
MDrakos Sep 24, 2024
99fd378
Don't enforce artifact <-> ingredient relation as artifacts produced …
Naatan Sep 24, 2024
b4c35a8
Skip integration test
MDrakos Sep 24, 2024
d4008ea
Apply more PR feedback.
mitchell-as Sep 25, 2024
8550d6b
Merge pull request #3507 from ActiveState/mitchell/dx-3073
mitchell-as Sep 25, 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
899fa42
Support identifying source behind python wheel
Naatan Sep 25, 2024
6a9f844
Drop unused code
Naatan Sep 25, 2024
51af785
Merge pull request #3502 from ActiveState/mitchell/dx-2943
mitchell-as 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
70dc6a4
Don't enforce zero ingredient check
Naatan 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
e69e7b9
Fix artifacts being filtered out just because they have no ingredient
Naatan Sep 25, 2024
4999497
Fix panic on simultaneous map write
Naatan 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
2bca991
Add comment
Naatan Sep 25, 2024
b7b933f
Fix test
Naatan Sep 25, 2024
64d3b2a
Merge pull request #3508 from ActiveState/DX-3066
Naatan Sep 26, 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
6aefa97
Added changelog for v0.46.0
Naatan Oct 4, 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
3854aab
Update version.txt
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
89d6af3
Added v0.45.1 changelog entry
Naatan Jul 31, 2024
4436e4d
Merge branch 'version/0-46-0-RC1' into version/0-46-0-RC2
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
e18b1b7
Marshal BuildPlan and not BuildExpression
MDrakos Oct 11, 2024
eebc58f
Update test
MDrakos Oct 11, 2024
3ea813f
Add missing newline
MDrakos Oct 11, 2024
5522e48
Update test
MDrakos 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
4d6af39
Fix repeated output
MDrakos Oct 15, 2024
c85719e
Update command and expect
MDrakos Oct 15, 2024
824c198
Add newline
MDrakos Oct 15, 2024
041b4c6
Use --version
MDrakos Oct 15, 2024
6d7a124
Add comment
MDrakos Oct 15, 2024
f521629
Remove debug log
MDrakos Oct 15, 2024
c1105c2
Add back expect
MDrakos Oct 15, 2024
eabb513
Merge pull request #3540 from ActiveState/DX-3103
MDrakos Oct 15, 2024
794ab10
Merge branch version/0-46-0-RC2 to adopt changes from PR #3540
as-builds Oct 15, 2024
b051962
Merge pull request #3541 from ActiveState/DX-3102
MDrakos 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
f600a1d
Merge pull request #3537 from ActiveState/DX-3023
Naatan Oct 16, 2024
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
  •  
  •  
  •  
42 changes: 32 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ jobs:
runs-on: ${{ matrix.sys.os }}
env:
ACTIVESTATE_CI: true
ACTIVESTATE_CLI_DISABLE_RUNTIME: true
SHELL: bash
GITHUB_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_SHA_OVERRIDE: ${{ github.event.pull_request.head.sha || github.sha }}
Expand All @@ -69,7 +68,7 @@ jobs:

- # === Install Go ===
name: Install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}

Expand Down Expand Up @@ -393,20 +392,42 @@ jobs:

- # === Upload Session Artifacts ===
name: Upload Session Artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: session-build-${{ matrix.sys.os }}
path: build/

scan:
name: Scan
needs:
- os_specific
runs-on: ubuntu-latest
steps:
- name: Download All Build Session Artifacts
uses: actions/download-artifact@v4
with:
path: build/
merge-multiple: true

- name: Scan for CVEs
if: runner.os == 'Linux'
uses: aquasecurity/[email protected]
with:
scan-type: rootfs
scan-ref: build
list-all-pkgs: true
ignore-unfixed: true
format: table
exit-code: 1

# === Deploy job (runs once with combined artifacts from OS specific job) ===
deploy:
name: Deploy
needs:
- os_specific
- scan
runs-on: ubuntu-20.04
env:
ACTIVESTATE_CI: true
ACTIVESTATE_CLI_DISABLE_RUNTIME: true
SHELL: bash
GITHUB_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_SHA_OVERRIDE: ${{ github.event.pull_request.head.sha || github.sha }}
Expand All @@ -424,19 +445,20 @@ jobs:

- # === Install Go ===
name: Install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
go-version: 1.22.x

- # === Install State Tool ===
name: Install State Tool
uses: ActiveState/setup-state-tool@v1

- # === Download All Build Session Artifacts ===
name: Download All Build Session Artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
path: build/
merge-multiple: true

- # === Sanitize All Session Artifacts ===
name: Sanitize All Session Artifacts
Expand Down Expand Up @@ -481,7 +503,7 @@ jobs:

- # === Cleanup Session Artifacts ===
name: Cleanup Session Artifacts
uses: geekyeggo/delete-artifact@v1
uses: geekyeggo/delete-artifact@v5
with:
name: |
session-build-ubuntu-20.04
Expand All @@ -490,7 +512,7 @@ jobs:

- # === Upload Artifacts ===
name: Upload Artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: build
path: build/
4 changes: 2 additions & 2 deletions .github/workflows/propagate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ jobs:

- # === Checkout code ===
name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GH_AUTOMATION_TOKEN }}

- # === Install Go ===
name: Install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: '1.22.x'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
steps:
- # Checkout Code
name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v5

- # === Install Go ===
name: Install Go
Expand Down
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
2 changes: 1 addition & 1 deletion .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:

- # === Install Go ===
name: Install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: '1.22.x'

Expand Down
1 change: 0 additions & 1 deletion .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ linters-settings:
- (*github.com/ActiveState/cli/internal/testhelpers/e2e.SpawnedCmd).Wait
- (*github.com/ActiveState/cli/internal/testhelpers/e2e.Session).ClearCache
- (*github.com/ActiveState/cli/internal/testhelpers/e2e.Dirs).Close
- (*github.com/ActiveState/cli/pkg/platform/runtime/artifactcache.testArtifactCache).Store
- github.com/ActiveState/cli/internal/testhelpers/osutil.RemoveConfigFile
- (*github.com/ActiveState/cli/internal/logging.standardHandler).Emit
- (*github.com/ActiveState/cli/internal/logging.fileHandler).Emit
Expand Down
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
Loading
Loading