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

Merged
merged 1,086 commits into from
Jan 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1086 commits
Select commit Hold shift + click to select a range
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
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
c3b9e85
Update version.txt
Oct 17, 2024
1f41910
Fix env ordering
MDrakos Oct 17, 2024
8bde15e
Increase timeout
MDrakos Oct 17, 2024
aa24624
Only swap path environment variables
MDrakos Oct 18, 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
1fe5107
Promote path
MDrakos Oct 18, 2024
7029a4c
Add comment
MDrakos Oct 18, 2024
97813a8
Move logic
MDrakos Oct 18, 2024
1c7e526
Merge pull request #3548 from ActiveState/DX-3116
MDrakos 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
2f9f352
Add fallback db for trivy
Naatan Oct 28, 2024
c2e0ccd
Merge pull request #3565 from ActiveState/DX-3141
Naatan 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
cff0fe1
Update version.txt
Oct 29, 2024
2dae8ec
`state refresh` should not error if the runtime is up to date.
mitchell-as Oct 29, 2024
7bc6706
Walk process tree
MDrakos Oct 29, 2024
81cc868
Merge pull request #3571 from ActiveState/mitchell/dx-3142
Naatan Oct 29, 2024
69ff60d
Merge branch version/0-46-1-RC1 to adopt changes from PR #3571
as-builds Oct 29, 2024
2bd15f9
Add v0.46.1 changelog entry
Naatan 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
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
  •  
  •  
  •  
51 changes: 34 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,12 @@ 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 }}
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,44 @@ 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]
env:
TRIVY_DB_REPOSITORY: ghcr.io/aquasecurity/trivy-db,public.ecr.aws/aquasecurity/trivy-db
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 +447,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,16 +505,9 @@ 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
session-build-macos-11
session-build-windows-2019

- # === Upload Artifacts ===
name: Upload Artifacts
uses: actions/upload-artifact@v2
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