Skip to content

Commit

Permalink
Agent release 2.2.17 (#1303)
Browse files Browse the repository at this point in the history
Co-authored-by: Jenkins Automation <jenkins@scalyr.com>
alesnovak-s1 and Jenkins Automation authored Oct 17, 2024
1 parent a5d0a15 commit c189190
Showing 8 changed files with 54 additions and 6 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/check_changelog.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Check Changelog Format

on:
push:
paths:
- 'CHANGELOG.md'

jobs:
check-changelog:
name: Check Changelog
runs-on: ubuntu-20.04

defaults:
run:
shell: bash

steps:
- name: Checkout Repository
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4

- name: install python and requirements
uses: ./.github/actions/install_python_and_requirements
with:
python_version: '3.10'

- name: Check Changelog
run: |
python3 build_package_new.py parse-changelog
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
Scalyr Agent 2 Changes By Release
=================================

## 2.2.17 "Sinthia" - Sep 17, 2024
<!---
Packaged by Ales Novak <ales.novak@sentinelone.com> on Sep 17, 2024 00:00 -0800
--->

Changes:
* Several packages were upgraded to mitigate vulnerabilities - orjson==3.10.7, PyMySQL==1.1.1
* Unused root CA file scalyr_agent_ca_root was removed
* Alpine base image upgraded to 2.19.4

Fixes:
* Added safety check when handling pending addEvents task to handle the following error: `AttributeError: 'AddEventsTask' object has no attribute '_CopyingManagerWorkerSession__receive_response_status'`
* Added missing zstandard library to alpine image


## 2.2.16 "Lenny" - May 29, 2024
<!---
Packaged by Ales Novak <ales.novak@sentinelone.com> on May 29, 2024 00:00 -0800
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.2.16
2.2.17
7 changes: 6 additions & 1 deletion build_package_new.py
Original file line number Diff line number Diff line change
@@ -27,6 +27,7 @@
import argparse
import sys
import pathlib as pl
from agent_build_refactored.prepare_agent_filesystem import parse_change_log

if sys.version_info < (3, 8, 0):
raise ValueError("This script requires Python 3.8 or above")
@@ -169,12 +170,16 @@ def _add_package_parsers():

subparsers = parser.add_subparsers(dest="command", required=True)

subparsers.add_parser("parse-changelog")
_add_image_parsers()
_add_package_parsers()

args = parser.parse_args()

if args.command == "image":
if args.command == "parse-changelog":
print("Checking changelog")
parse_change_log()
elif args.command == "image":
image_builder_cls = ALL_CONTAINERISED_AGENT_BUILDERS[args.builder_name]

builder = image_builder_cls(base_image=args.base_image)
2 changes: 1 addition & 1 deletion k8s/default-namespace/scalyr-agent-2.yaml
Original file line number Diff line number Diff line change
@@ -50,7 +50,7 @@ spec:
envFrom:
- configMapRef:
name: scalyr-config
image: scalyr/scalyr-k8s-agent:2.2.16
image: scalyr/scalyr-k8s-agent:2.2.17
imagePullPolicy: Always
name: scalyr-agent
securityContext:
2 changes: 1 addition & 1 deletion k8s/no-kustomize/scalyr-agent-2.yaml
Original file line number Diff line number Diff line change
@@ -50,7 +50,7 @@ spec:
envFrom:
- configMapRef:
name: scalyr-config
image: scalyr/scalyr-k8s-agent:2.2.16
image: scalyr/scalyr-k8s-agent:2.2.17
imagePullPolicy: Always
name: scalyr-agent
securityContext:
2 changes: 1 addition & 1 deletion k8s/scalyr-agent-2-envfrom.yaml
Original file line number Diff line number Diff line change
@@ -49,7 +49,7 @@ spec:
envFrom:
- configMapRef:
name: scalyr-config
image: scalyr/scalyr-k8s-agent:2.2.16
image: scalyr/scalyr-k8s-agent:2.2.17
imagePullPolicy: Always
name: scalyr-agent
securityContext:
2 changes: 1 addition & 1 deletion k8s/scalyr-agent-2.yaml
Original file line number Diff line number Diff line change
@@ -49,7 +49,7 @@ spec:
envFrom:
- configMapRef:
name: scalyr-config
image: scalyr/scalyr-k8s-agent:2.2.16
image: scalyr/scalyr-k8s-agent:2.2.17
imagePullPolicy: Always
name: scalyr-agent
securityContext:

0 comments on commit c189190

Please sign in to comment.