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 762 commits into
base: beta
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
762 commits
Select commit Hold shift + click to select a range
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
f34443f
Recognize invalid input as a buildplanner error response.
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
fb5432e
Merge branch 'version/0-48-0-RC1' into mitchell/dx-3178-2
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
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
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
7317290
Added changelog for v0.47.0
Naatan Jan 14, 2025
151066a
Merge branch 'version/0-47-0-RC2' into version/0-48-0-RC1
Naatan Jan 14, 2025
4640cc1
Merge branch 'beta' into version/0-47-0-RC2
Naatan Jan 14, 2025
27eb756
Mark invalid input errors for project creation as input errors.
mitchell-as Jan 15, 2025
f2995d6
Merge branch 'version/0-48-0-RC1' into mitchell/dx-3178-2
mitchell-as Jan 15, 2025
4dc43db
Merge pull request #3622 from ActiveState/mitchell/dx-3178-2
mitchell-as Jan 16, 2025
2d271e1
Return a commit even if there's a polling error.
mitchell-as Jan 16, 2025
0213562
Merge pull request #3630 from ActiveState/mitchell/dx-3205
mitchell-as Jan 17, 2025
76a40ba
Do not log invalid namespaces to rollbar.
mitchell-as Jan 20, 2025
8193d1f
Merge pull request #3631 from ActiveState/mitchell/dx-3178-3
mitchell-as Jan 20, 2025
faf044e
Update outdated action.
mitchell-as Jan 22, 2025
5ae7757
Start building on and for ARM.
mitchell-as Jan 22, 2025
9d297c6
Add "arch" param to install script's state-update URLs.
mitchell-as Jan 24, 2025
276641b
Temporarily add step to install ARM64 from local install.sh
mitchell-as Jan 24, 2025
a44f86b
Fixed sysinfo support for arm64.
mitchell-as Jan 24, 2025
f5fa90e
Use arm64 version of parallelize.
mitchell-as Jan 24, 2025
28097d4
Most generator scripts are standalone.
mitchell-as Jan 24, 2025
0862380
Do not force amd64 arch for generating update files.
mitchell-as Jan 24, 2025
4697d9e
Do not use gotestfmt action.
mitchell-as Jan 24, 2025
8272c2d
When checking for updates, include arch param.
mitchell-as Jan 24, 2025
1ca0ac6
Use 'contains' for ARM runner check.
mitchell-as Jan 27, 2025
4c06f0b
Skip running nightly integration tests on ARM.
mitchell-as Jan 27, 2025
2099197
Temporarily skip some install and update integration tests on ARM.
mitchell-as Jan 27, 2025
d540a91
Merge pull request #3632 from ActiveState/mitchell/dx-3211
mitchell-as Jan 28, 2025
2bb10eb
Recognize arm arch coming from the Platform.
mitchell-as Jan 31, 2025
bec5360
Merge pull request #3634 from ActiveState/mitchell/dx-3217
mitchell-as Feb 3, 2025
00428fa
Temporarily disable failing integration test on Linux and macOS.
mitchell-as Feb 5, 2025
2007de6
Merge pull request #3635 from ActiveState/mitchell/dx-3172-2
mitchell-as Feb 5, 2025
0e6b598
Show warning for runtime in use instead of erroring out.
mitchell-as Feb 5, 2025
37c8142
Disable runtime-in-use test on Windows since ^C doesn't work on CI.
mitchell-as Feb 5, 2025
22c9315
Ensure building with Go 1.22.x on CI.
mitchell-as Feb 6, 2025
6fca2e8
Remove vestigal conditional.
mitchell-as Feb 6, 2025
1d72890
Update version.txt
Feb 6, 2025
96eca84
Merge pull request #3636 from ActiveState/mitchell/dx-3209
mitchell-as Feb 6, 2025
19fcc71
Merge pull request #3638 from ActiveState/mitchell/dx-3221
mitchell-as Feb 10, 2025
88714d8
Merge branch version/0-47-0-RC3 to adopt changes from PR #3638
as-builds Feb 10, 2025
bb4d163
Add unique(ish) ID to error messages for easier Rollbar cross-referen…
mitchell-as Feb 10, 2025
79f771f
Update go to 1.22.12
Naatan Feb 10, 2025
7e0fcd1
Merge pull request #3641 from ActiveState/DX-3223
Naatan Feb 11, 2025
6eb18c5
Merge branch 'version/0-47-0-RC3' into version/0-48-0-RC1
Naatan Feb 11, 2025
3e8a5cb
Merge branch 'version/0-48-0-RC1' into mitchell/dx-3210
mitchell-as Feb 11, 2025
7672f4a
List architecture in `state platforms`.
mitchell-as Feb 11, 2025
7a7729f
Raise error if an activestate.yaml script has an empty value.
mitchell-as Feb 11, 2025
971037d
Merge pull request #3643 from ActiveState/mitchell/dx-3216
mitchell-as Feb 12, 2025
a83b45c
Merge pull request #3640 from ActiveState/mitchell/dx-3210
mitchell-as Feb 12, 2025
ff76ae5
Update version.txt
Feb 12, 2025
6f65ee3
Merge pull request #3602 from ActiveState/mitchell/dx-3159
mitchell-as Nov 22, 2024
0847d46
Merge pull request #3646 from ActiveState/mitchell/dx-3225
mitchell-as Feb 13, 2025
67cc9d1
Added integration test for `state checkout --portable`.
mitchell-as Feb 13, 2025
8716707
Add warning when using unstable ARM platform.
mitchell-as Feb 14, 2025
cef79f8
Merge pull request #3647 from ActiveState/mitchell/dx-3227
mitchell-as Feb 18, 2025
e58571d
Recognize build expressions that use `Any()` for a version requirement.
mitchell-as Feb 18, 2025
f5bfad5
Added integration test to handle "Any()" version requirement.
mitchell-as Feb 18, 2025
4c4287c
Added "-f" shorthand for "--force".
mitchell-as Feb 19, 2025
fb78941
Do not use deprecated powershell command.
mitchell-as Feb 19, 2025
5969381
Use local install script instead of setup-state-tool action on Windows.
mitchell-as Feb 19, 2025
f03e217
Placate overzealous linter.
mitchell-as Feb 19, 2025
16b4684
Attempt to fix installing CI deps.
mitchell-as Feb 19, 2025
5b0c39c
Merge pull request #3653 from ActiveState/mitchell/dx-3228
mitchell-as Feb 19, 2025
389e7d1
Merge branch 'version/0-47-1-RC1' into mitchell/dx-3228-4
mitchell-as Feb 19, 2025
e6b121a
Merge pull request #3656 from ActiveState/mitchell/dx-3228-4
Naatan Feb 19, 2025
cadff83
Merge branch 'version/0-48-0-RC1' into mitchell/dx-3219
mitchell-as Feb 19, 2025
1ea57f5
Merge branch 'version/0-48-0-RC1' into mitchell/dx-3214
mitchell-as Feb 19, 2025
77b420e
Merge branch 'version/0-47-1-RC1' into mitchell/dx-3224
mitchell-as Feb 19, 2025
0df4f43
Merge branch 'version/0-48-0-RC1' into mitchell/dx-3219
mitchell-as Feb 19, 2025
a47e6ca
Merge branch 'version/0-48-0-RC1' into mitchell/dx-3203
mitchell-as Feb 19, 2025
2592599
Merge pull request #3644 from ActiveState/mitchell/dx-3219
mitchell-as Feb 19, 2025
133121b
Merge pull request #3649 from ActiveState/mitchell/dx-3214
mitchell-as Feb 19, 2025
156b56b
Merge pull request #3651 from ActiveState/mitchell/dx-3224
mitchell-as Feb 19, 2025
5f9b22f
Merge branch version/0-47-1-RC1 to adopt changes from PR #3651
as-builds Feb 19, 2025
63fdcd2
Merge pull request #3652 from ActiveState/mitchell/dx-3203
mitchell-as Feb 19, 2025
9d00ada
Remove unused events shorthand `-f` that's conflicting with `--force`…
mitchell-as Feb 20, 2025
2136704
Merge pull request #3657 from ActiveState/mitchell/dx-3203-2
mitchell-as Feb 20, 2025
de54086
Disable ingredient function integration test on Windows too.
mitchell-as Feb 20, 2025
ec5f51e
Merge pull request #3658 from ActiveState/mitchell/dx-3232
mitchell-as Feb 20, 2025
145e08d
Allow buildscript functions without arguments.
mitchell-as Feb 20, 2025
cc79a08
Merge pull request #3659 from ActiveState/mitchell/dx-3230
mitchell-as Feb 24, 2025
37709aa
Implement an artifact cache in the depot.
mitchell-as Feb 24, 2025
36462b3
Added runtime sourcing timeout for failing integration test.
mitchell-as Feb 25, 2025
3d17a1c
Changed depot cache test to use `state switch`.
mitchell-as Feb 25, 2025
a6e1485
Merge pull request #3661 from ActiveState/mitchell/dx-3234
mitchell-as Feb 26, 2025
0dfc771
Address PR feedback.
mitchell-as Feb 28, 2025
4f87e5f
Merge pull request #3660 from ActiveState/mitchell/dx-3213
mitchell-as Feb 28, 2025
68a3320
Added changelog vor 0.47.1
Naatan Mar 3, 2025
9dabacc
Merge branch 'version/0-47-1-RC1' into version/0-48-0-RC1
Naatan Mar 3, 2025
6a940d6
Go back to setup-state-tool GitHub Action on Windows.
mitchell-as Mar 3, 2025
58f573e
Merge pull request #3663 from ActiveState/mitchell/dx-3231
mitchell-as Mar 3, 2025
9faa321
Remove `state init` language inference.
mitchell-as Mar 3, 2025
e2d7b3d
Merge pull request #3664 from ActiveState/mitchell/dx-3229
mitchell-as Mar 3, 2025
68b8961
Do not assume all depot artifacts are cached yet.
mitchell-as Mar 5, 2025
59dad38
Merge pull request #3665 from ActiveState/mitchell/dx-3213-2
mitchell-as Mar 5, 2025
58185b2
When deleting cached depot artifacts, ensure ID is set.
mitchell-as Mar 17, 2025
4527842
Merge pull request #3667 from ActiveState/mitchell/dx-3213
mitchell-as Mar 17, 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
  •  
  •  
  •  
Binary file added .github/deps/Linux/arm64/bin/parallelize
Binary file not shown.
42 changes: 25 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,12 @@ jobs:
strategy:
matrix:
go-version:
- 1.22.x
- 1.22.12
sys:
- {os: ubuntu-latest}
- {os: macos-12, shell: zsh}
- {os: macos-13, shell: zsh}
- {os: windows-2019}
- {os: ubuntu-24.04-arm}
fail-fast: false
runs-on: ${{ matrix.sys.os }}
env:
Expand Down Expand Up @@ -74,19 +75,30 @@ jobs:

# === Install gotestfmt ===
- name: Set up gotestfmt
uses: gotesttools/gotestfmt-action@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: go install github.com/gotesttools/gotestfmt/v2/cmd/gotestfmt@latest

- # === Install State Tool ===
name: Install State Tool
uses: ActiveState/setup-state-tool@v1
if: "!contains(matrix.sys.os, 'arm')"

- # === Install State Tool (ARM64) ===
name: Install State Tool (ARM64)
if: contains(matrix.sys.os, 'arm')
shell: bash
run: |
./installers/install.sh -b beta
echo "$HOME/.local/ActiveState/StateTool/beta/bin" >> $GITHUB_PATH
"$HOME/.local/ActiveState/StateTool/beta/bin/state" config set optin.unstable true

- # === Setup ===
name: Setup
shell: bash
run: |
bin=$(pwd)/.github/deps/${{ runner.os }}/bin
arch="amd64"
if [[ ${{ contains(matrix.sys.os, 'arm') }} = true ]]; then arch="arm64"; fi
bin=$(pwd)/.github/deps/${{ runner.os }}/$arch/bin
echo "Adding $bin to PATH"
echo "$bin" >> $GITHUB_PATH

Expand Down Expand Up @@ -125,7 +137,6 @@ jobs:
shell: bash
timeout-minutes: 15
run: |
export PATH="$(pwd)/.github/deps/${{ runner.os }}/bin:$PATH"
parallelize "$(cat <<'EOF'
[
{
Expand Down Expand Up @@ -262,7 +273,7 @@ jobs:

- # === Configure AWS credentials ==
name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
role-session-name: ${{ env.AWS_ROLE_SESSION_NAME }}
Expand Down Expand Up @@ -325,6 +336,10 @@ jobs:
fi
else
TEST_SUITE_TAGS="all"
if [[ ${{ contains(matrix.sys.os, 'arm') }} = true ]]; then
echo "Skipping integration tests on ARM"
exit 0
fi
fi

echo "Running integration tests with tags: $TEST_SUITE_TAGS (empty means every test not specifically tagged)"
Expand Down Expand Up @@ -410,7 +425,6 @@ jobs:
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
Expand Down Expand Up @@ -483,7 +497,7 @@ jobs:

- # === Configure AWS credentials ==
name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
role-session-name: ${{ env.AWS_ROLE_SESSION_NAME }}
Expand Down Expand Up @@ -511,10 +525,4 @@ 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/
session-build-ubuntu-24.04-arm
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
14 changes: 12 additions & 2 deletions activestate.generators.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
scripts:
- name: generate-api-client
language: bash
standalone: true
description: Generates the mono-api client files
value: |
echo "IMPORTANT!!! mono API and inventory API have to be in sync. Consider running state run generate-inventory-client"
Expand All @@ -10,6 +11,7 @@ scripts:
popd
- name: generate-secrets-client
language: bash
standalone: true
description: Generates the secrets-api client files
value: |
WD=$(pwd)
Expand All @@ -18,6 +20,7 @@ scripts:
popd
- name: generate-headchef-client
language: bash
standalone: true
description: Generates the headchef-api client files
value: |
WD=$(pwd)
Expand All @@ -26,6 +29,7 @@ scripts:
popd
- name: generate-logstreamer-client
language: bash
standalone: true
description: Generates the buildlog-streamer client files
value: |
WD=$(pwd)
Expand All @@ -34,6 +38,7 @@ scripts:
popd
- name: generate-inventory-client
language: bash
standalone: true
description: Generates the inventory-api client files
value: |
echo "IMPORTANT!!! mono API and inventory API have to be in sync. Consider running state run generate-api-client"
Expand All @@ -43,6 +48,7 @@ scripts:
popd
- name: generate-clients
language: bash
standalone: true
description: Generates all api clients
value: |
$scripts.generate-api-client.path()
Expand All @@ -55,6 +61,7 @@ scripts:
value: python3 scripts/locale-generator.py
- name: generate-payload
language: bash
standalone: true
description: Generate payload for installer / update archives
value: |
set -e
Expand All @@ -64,10 +71,10 @@ scripts:
go run ./scripts/ci/payload-generator/main.go "$@"
- name: generate-update
language: bash
standalone: true
description: Generate update files
value: |
set -e
export GOARCH=${1:-amd64}
$constants.SET_ENV

$scripts.generate-payload.path()
Expand All @@ -79,12 +86,15 @@ scripts:
go run scripts/ci/update-generator/main.go -o ./build/update
- name: generate-remote-install-deployment
language: bash
standalone: true
value: go run scripts/ci/deploy-generator/remote-installer/main.go "$@"
- name: generate-graph
language: bash
standalone: true
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