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.48.0-RC1 #3569

Open
wants to merge 665 commits into
base: beta
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
665 commits
Select commit Hold shift + click to select a range
c47a9dc
Merge pull request #3558 from ActiveState/mitchell/dx-3130
mitchell-as Oct 25, 2024
8096ed2
Merge branch version/0-47-0-RC1 to adopt changes from PR #3558
as-builds Oct 25, 2024
20f29c8
Merge pull request #3559 from ActiveState/mitchell/dx-3131
mitchell-as Oct 25, 2024
fe51105
Merge branch version/0-47-0-RC1 to adopt changes from PR #3559
as-builds 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
ae54eda
Merge branch version/0-47-0-RC1 to adopt changes from PR #3561
as-builds Oct 28, 2024
125bb04
Merge pull request #3560 from ActiveState/mitchell/dx-3134
mitchell-as Oct 28, 2024
46c09bf
Merge branch version/0-47-0-RC1 to adopt changes from PR #3560
as-builds 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
82ad09e
Merge branch version/0-47-0-RC1 to adopt changes from PR #3565
as-builds Oct 28, 2024
7aa9e61
Merge pull request #3552 from ActiveState/DX-3115
MDrakos Oct 28, 2024
c2d4663
Merge branch version/0-47-0-RC1 to adopt changes from PR #3552
as-builds Oct 28, 2024
31d8c7b
Merge pull request #3563 from ActiveState/mitchell/dx-3132
mitchell-as Oct 28, 2024
db28382
Merge branch version/0-47-0-RC1 to adopt changes from PR #3563
as-builds Oct 28, 2024
f40316e
Merge pull request #3562 from ActiveState/mitchell/dx-3121
mitchell-as Oct 28, 2024
46a275d
Merge branch version/0-47-0-RC1 to adopt changes from PR #3562
as-builds 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
c683f77
Update version.txt
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
5d0ca03
Merge branch version/0-47-0-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
452e34b
Merge branch 'version/0-47-0-RC1' into version/0-48-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
91ae9f7
Do not log JSON output pipe errors to rollbar.
mitchell-as Oct 29, 2024
ffcf701
Merge pull request #3567 from ActiveState/mitchell/dx-3125
mitchell-as Oct 29, 2024
cae3870
Merge branch version/0-47-0-RC1 to adopt changes from PR #3567
as-builds Oct 29, 2024
f4c94aa
Merge pull request #3572 from ActiveState/DX-3000
MDrakos Oct 29, 2024
7d2b934
Merge branch version/0-47-0-RC1 to adopt changes from PR #3572
as-builds Oct 29, 2024
716f1ee
Use the correct error code.
mitchell-as Oct 30, 2024
b18d59a
Do not report user-facing errors to Rollbar.
mitchell-as Oct 30, 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
d6acb39
Merge branch version/0-47-0-RC1 to adopt changes from PR #3566
as-builds Oct 30, 2024
682a245
Merge pull request #3568 from ActiveState/mitchell/dx-3135
mitchell-as Oct 31, 2024
8282548
Merge pull request #3574 from ActiveState/mitchell/dx-3133
mitchell-as Oct 31, 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
48614a3
Initial support for rendering wrapped, bulleted lists.
mitchell-as Oct 31, 2024
71d8071
Remove unused mutex
Naatan Nov 1, 2024
dae0380
Enable ingredientcall integration test
Naatan Nov 1, 2024
df7ebad
Handle pannics in the poller
MDrakos Nov 1, 2024
675c46e
Handle potential panics in messages
MDrakos Nov 1, 2024
4546624
More test cases and support windows paths
Naatan Nov 1, 2024
6c49aed
Remove panic check on New resolver
MDrakos Nov 1, 2024
5e42cff
Nil check recovered
MDrakos Nov 1, 2024
7e2ba42
Clean up parent node logic
Naatan Nov 1, 2024
55a07c0
Do not colorize wrapping continuation characters.
mitchell-as 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
c79740e
Merge branch version/0-47-0-RC1 to adopt changes from PR #3578
as-builds Nov 4, 2024
bdd8b3c
Implement user-facing errors for environment setup commands.
mitchell-as Nov 4, 2024
406f790
Update graphQL response handling
MDrakos Nov 5, 2024
bbfb2fa
Apply suggestions from code review
MDrakos Nov 5, 2024
fe8713a
Move panic handling
MDrakos Nov 5, 2024
e190d88
Fix JWT response
MDrakos Nov 5, 2024
e30cf43
Update remaining service gql responses
MDrakos Nov 5, 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
9eb410e
Merge pull request #3577 from ActiveState/DX-3136
MDrakos Nov 5, 2024
7a8ba61
Do not depend on environment variables
MDrakos Nov 5, 2024
7088da3
Debug script
MDrakos Nov 5, 2024
9f7a82e
More debugging
MDrakos Nov 6, 2024
837c4b3
More debugging
MDrakos Nov 6, 2024
5b391b6
Try to reconcile shallow clone
MDrakos Nov 6, 2024
cdef753
Fix syntax error
MDrakos Nov 6, 2024
416aa32
Clean up script
MDrakos Nov 6, 2024
3db6eb7
Refactor wrapping, support multiple tags after continuations, and add…
mitchell-as Nov 5, 2024
fe25e87
Use struct for bullet list bullets, added tests, and use String() met…
mitchell-as Nov 6, 2024
7ff9681
Cleanup script
MDrakos Nov 6, 2024
85a8031
Don't check if target branch is master
MDrakos Nov 6, 2024
5112a8c
Put back
MDrakos Nov 6, 2024
329c412
Add back git fetch
MDrakos Nov 6, 2024
96baec2
Also handle requirements in solve_legacy
Naatan Nov 6, 2024
d2a7df3
Add back empty response check
MDrakos Nov 6, 2024
fb1c600
Merge pull request #3576 from ActiveState/mitchell/dx-2829-2
mitchell-as Nov 6, 2024
0100fab
Merge pull request #3581 from ActiveState/DX-3077
MDrakos Nov 6, 2024
7a38b44
Merge branch 'version/0-48-0-RC1' into DX-3101
MDrakos 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
18ce970
Remove unused interface
MDrakos Nov 6, 2024
110c0db
CVE report should include changed requirements.
mitchell-as Nov 7, 2024
4e15f20
Merge pull request #3582 from ActiveState/mitchell/dx-3150
mitchell-as Nov 7, 2024
3c0d5fc
`state commit` should not poll for build result.
mitchell-as Nov 7, 2024
9132b74
Merge pull request #3582 from ActiveState/mitchell/dx-3150
mitchell-as Nov 7, 2024
747e0c9
Merge pull request #3584 from ActiveState/mitchell/dx-3144
mitchell-as Nov 7, 2024
67c2110
Ensure filepaths are using forward slash
Naatan Nov 7, 2024
6c38c9e
Drop redundant calls
Naatan Nov 7, 2024
d4caca7
Fix failing tests.
mitchell-as Nov 7, 2024
f380d3d
Use relative paths for archives
Naatan Nov 7, 2024
b1c6086
`state commit`, `state push`, and `state reset` should not fail if th…
mitchell-as Nov 7, 2024
19f39ce
Merge pull request #3585 from ActiveState/mitchell/dx-3114
mitchell-as Nov 7, 2024
3b1998b
Remove path inference and use length
MDrakos Nov 7, 2024
d27b162
Merge branch 'version/0-48-0-RC1' into DX-3101
MDrakos Nov 7, 2024
4a9f51c
Merge pull request #3584 from ActiveState/mitchell/dx-3144
mitchell-as Nov 7, 2024
04f1308
Cleanup
MDrakos Nov 8, 2024
57b3a7b
Merge branch 'DX-3101' of github.com:ActiveState/cli into DX-3101
MDrakos Nov 8, 2024
c5e9ec6
Merge pull request #3586 from ActiveState/mitchell/dx-3143
mitchell-as Nov 8, 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
ac407b6
Merge branch version/0-47-0-RC1 to adopt changes from PR #3579
as-builds Nov 8, 2024
be89fa8
Declining the security prompt should cancel `state commit`.
mitchell-as Nov 8, 2024
d0c984f
Merge pull request #3580 from ActiveState/DX-3101
MDrakos Nov 8, 2024
09dcb48
Target & Verify action should append to Jira labels, not overwrite.
mitchell-as Nov 8, 2024
d092e16
Log retries
MDrakos Nov 8, 2024
f8618f6
Merge pull request #3587 from ActiveState/mitchell/dx-3154
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
e1a5947
Added dashboard build progress details URL.
mitchell-as Nov 12, 2024
48b1d05
Merge pull request #3588 from ActiveState/mitchell/dx-3152
mitchell-as Nov 12, 2024
5d70309
Fix unit test
Naatan Nov 12, 2024
41062d2
Fix TestRealWorld
Naatan Nov 12, 2024
2379b9c
Merge pull request #3589 from ActiveState/DX-3156
MDrakos Nov 13, 2024
fbf7ca2
Merge pull request #3575 from ActiveState/DX-3105
Naatan Nov 13, 2024
2bf0030
Debug test
MDrakos Nov 13, 2024
6a243fa
Add a bit of lag to the JWT renewal time.
mitchell-as Nov 13, 2024
8ef7da7
Apply same unmarshalling to gqlclient
MDrakos Nov 13, 2024
9f1af8e
Remove debug code
MDrakos Nov 13, 2024
8e47470
Merge branch 'version/0-47-0-RC1' into version/0-48-0-RC1
Naatan Nov 13, 2024
2ecd5c7
Add comment
MDrakos Nov 14, 2024
72c594e
Merge pull request #3590 from ActiveState/mitchell/dx-3155
mitchell-as Nov 14, 2024
e862c58
Reduce JWT lifetime instead.
mitchell-as Nov 14, 2024
bc92b12
Merge pull request #3592 from ActiveState/mitchell/dx-3151
mitchell-as Nov 14, 2024
b97540c
Merge pull request #3591 from ActiveState/DX-3160
MDrakos Nov 14, 2024
b5451fc
Initial support for enabling prompts to react to `--force` flag.
mitchell-as Nov 15, 2024
1fdc129
Use prompt accessors instead of Confirm return values.
mitchell-as Nov 15, 2024
918a41c
Updated prompt.Confirm callers outside state tool.
mitchell-as Nov 15, 2024
c795a06
Fixed failing integration test.
mitchell-as Nov 18, 2024
568a074
Remove mock.
mitchell-as Nov 18, 2024
7d88e59
Merge pull request #3596 from ActiveState/mitchell/dx-3169
mitchell-as Nov 18, 2024
4113b3e
Updated integration tests with non-interactive and force notices.
mitchell-as Nov 18, 2024
3eb0e78
Fixed interline diffs.
mitchell-as Nov 18, 2024
8321e42
Reorganize error handling
MDrakos Nov 18, 2024
2ccc89d
Simplify sub errors
MDrakos Nov 18, 2024
759d1a9
More error cleanup
MDrakos Nov 19, 2024
0a5c961
Merge pull request #3597 from ActiveState/mitchell/dx-3165
mitchell-as Nov 19, 2024
d33a4d0
Handle recursive links in runtime sources.
mitchell-as Nov 18, 2024
84b42c2
Add date recognition to messages
MDrakos Nov 19, 2024
975776b
Remove debug logs
MDrakos Nov 19, 2024
1412ea3
Rename tests
MDrakos Nov 19, 2024
574ff6b
Added "--portable" flag to `state checkout` for copying runtime files…
mitchell-as Nov 19, 2024
fac37eb
Merge pull request #3601 from ActiveState/DX-3161
MDrakos Nov 19, 2024
7ba048c
Merge graphQL client code
MDrakos Nov 20, 2024
b3a22a5
Remove RemediableError type
MDrakos Nov 20, 2024
5f2e02e
Minor cleanup
MDrakos Nov 20, 2024
fbec1ec
Rename messages to notifications
MDrakos Nov 21, 2024
3dfbe58
Update tag
MDrakos Nov 21, 2024
2d3f53a
Fix tag
MDrakos Nov 21, 2024
ee56104
Added force options for other prompt methods and made `--force` a glo…
mitchell-as Nov 20, 2024
ecffc29
Set prompt interactive and force modes immediately upon parsing flags.
mitchell-as Nov 21, 2024
a6b2d52
Consolidate non-interactive mode setting and detection.
mitchell-as Nov 21, 2024
bf58cd5
Use correct state tool
MDrakos Nov 21, 2024
06643af
Revert config change
MDrakos Nov 21, 2024
6a801e8
Change constant
MDrakos Nov 21, 2024
e091792
Convert remaining
MDrakos Nov 21, 2024
da5fee5
Recurse into recursively linked directories not more than once.
mitchell-as Nov 21, 2024
acaa7e1
Make changes backwards compatible
MDrakos Nov 21, 2024
254108a
Rename to gqlclient
MDrakos Nov 21, 2024
f50e832
Rename files
MDrakos Nov 21, 2024
fa5bc02
Update localizations for non-interactive and force flags.
mitchell-as Nov 21, 2024
40b37ba
Use a constant error for prompts that do not have forced values.
mitchell-as Nov 21, 2024
7bc14c0
Merge pull request #3599 from ActiveState/DX-3127
MDrakos Nov 21, 2024
2da0aa9
Merge pull request #3604 from ActiveState/DX-3163
MDrakos Nov 21, 2024
d2ec9cd
Merge pull request #3595 from ActiveState/mitchell/dx-3166
mitchell-as Nov 21, 2024
8b4a5af
Do not require custom runtime path for portable projects.
mitchell-as Nov 22, 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
97d2beb
Installing in non-interactive mode on Windows with admin should bypas…
mitchell-as Nov 22, 2024
d523079
Merge pull request #3602 from ActiveState/mitchell/dx-3159
mitchell-as Nov 22, 2024
c10ecc4
Merge pull request #3605 from ActiveState/mitchell/dx-3174
mitchell-as Nov 22, 2024
878565b
Show prompts, even if running in non-interactive or force mode.
mitchell-as Nov 22, 2024
bcc739d
Merge pull request #3606 from ActiveState/mitchell/dx-3166-3
mitchell-as Nov 22, 2024
b75482b
When deploying via link, deploy symlinks directly instead of resolvin…
mitchell-as Nov 22, 2024
2243c42
Merge pull request #3603 from ActiveState/DX-3162
MDrakos Nov 26, 2024
cef990a
Update remote installer expectations.
mitchell-as Nov 26, 2024
4e9a671
Merge pull request #3607 from ActiveState/mitchell/dx-3173
mitchell-as Nov 26, 2024
fdb87b0
`state pull` should use the already-merged commit's build script inst…
mitchell-as Nov 26, 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
cf26542
Merge branch version/0-47-0-RC1 to adopt changes from PR #3600
as-builds Nov 27, 2024
e554f37
Merge pull request #3608 from ActiveState/mitchell/dx-3175
mitchell-as Dec 2, 2024
4d46d28
Stop creating new users.
mitchell-as Dec 13, 2024
5f636e5
Disable test.
mitchell-as Dec 13, 2024
65777bc
Added tests for projects that utilize solver V2 and solver V3.
mitchell-as Dec 13, 2024
a83eff3
Remediate CVE in golang.org/x/crypto.
mitchell-as Dec 16, 2024
63973c6
Assert installing as admin prompt happens on Windows.
mitchell-as Dec 16, 2024
f70957b
Force prompt option should override non-interactive option.
mitchell-as Dec 16, 2024
43b2860
Merge pull request #3615 from ActiveState/mitchell/dx-3191
mitchell-as Dec 17, 2024
3654714
Merge branch 'version/0-48-0-RC1' into mitchell/dx-3189
mitchell-as Dec 17, 2024
58d3a60
Merge branch 'version/0-48-0-RC1' into mitchell/cp-129
mitchell-as Dec 17, 2024
c72f478
Merge branch 'version/0-48-0-RC1' into mitchell/dx-3193
mitchell-as Dec 17, 2024
1bc3c37
Merge pull request #3613 from ActiveState/mitchell/dx-3189
mitchell-as Dec 17, 2024
370782b
Merge pull request #3616 from ActiveState/mitchell/dx-3193
mitchell-as Dec 17, 2024
86fb843
Installers should not default to non-interactive.
mitchell-as Dec 18, 2024
9d57da8
Fixed remote installer accepting TOS in non-interactive mode.
mitchell-as Dec 18, 2024
7eaa7e1
Merge pull request #3617 from ActiveState/mitchell/dx-3193-2
mitchell-as Dec 19, 2024
edfa0c1
Bump golang-jwt version to address CVE.
mitchell-as Dec 23, 2024
9d8eed8
Bump golang.org/net/x to fix CVE.
mitchell-as Dec 23, 2024
bf1753e
Merge pull request #3619 from ActiveState/mitchell/dx-3196
mitchell-as Dec 23, 2024
faafb4c
Merge branch 'version/0-48-0-RC1' into mitchell/dx-3181
mitchell-as Dec 23, 2024
41e44c1
Merge pull request #3618 from ActiveState/mitchell/dx-3181
mitchell-as Dec 23, 2024
ae09c37
Added missing localization.
mitchell-as Dec 23, 2024
058c68c
Warn when writing colored output fails.
mitchell-as Dec 23, 2024
df6a059
Generalized `state install` CVE report.
mitchell-as Dec 24, 2024
65599ef
Turn on non-interactive mode for structured output.
mitchell-as Dec 24, 2024
0eac6e3
Merge pull request #3620 from ActiveState/mitchell/dx-3180
mitchell-as Dec 27, 2024
1315735
Merge pull request #3623 from ActiveState/mitchell/dx-3179
mitchell-as Dec 27, 2024
c210e20
Merge pull request #3625 from ActiveState/mitchell/dx-3176
mitchell-as Dec 27, 2024
245e064
Merge pull request #3624 from ActiveState/mitchell/dx-3186
mitchell-as Jan 2, 2025
deecfc5
Remediate CVE in go-git.
mitchell-as Jan 6, 2025
419e056
Merge pull request #3614 from ActiveState/mitchell/cp-129
Naatan Jan 7, 2025
496aa2b
Merge pull request #3626 from ActiveState/mitchell/dx-3199
mitchell-as Jan 8, 2025
988832b
Solver V3 for Ruby now works on the Platform.
mitchell-as Jan 10, 2025
7663aa3
Merge pull request #3628 from ActiveState/mitchell/dx-3192
mitchell-as Jan 10, 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/trivy-action@0.20.0
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/gqlgen@v0.17.46
set -e
go install github.com/99designs/gqlgen@v0.17.48
cd ./cmd/state-svc && gqlgen --verbose
- name: generate-test-update
language: bash
Expand Down
50 changes: 44 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/goversioninfo@v1.4.0
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 All @@ -371,6 +396,11 @@ scripts:
TARGET_BRANCH="master"
fi

if [ "$TARGET_BRANCH" == "master" ]; then
echo "Target branch is master, not checking for newlines"
exit 0
fi

git fetch --quiet origin $TARGET_BRANCH:refs/remotes/origin/$TARGET_BRANCH

CHANGED=$(git diff --name-only origin/$TARGET_BRANCH | grep -v testdata | grep -v vendor)
Expand All @@ -392,48 +422,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 +479,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
6 changes: 6 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 0.46.1

### Fixed

* Fixed regression in `state refresh` where it would exit with a non-zero code when there were no changes.

## 0.46.0

### Added
Expand Down
Loading
Loading