Skip to content

Add migration to track invalid ABM token state#48560

Draft
andymFleet wants to merge 5 commits into
mainfrom
47698-add-abm-token-invalid-column
Draft

Add migration to track invalid ABM token state#48560
andymFleet wants to merge 5 commits into
mainfrom
47698-add-abm-token-invalid-column

Conversation

@andymFleet

@andymFleet andymFleet commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Related issue: Resolves #47698

Checklist for submitter

If some of the following don't apply, delete the relevant line.

Testing

  • Added/updated automated tests

  • QA'd all new/changed functionality manually

Database migrations

  • Checked schema for all modified table for columns that will auto-update timestamps during migration.
  • Confirmed that updating the timestamps is acceptable, and will not cause unwanted side effects.

Summary by CodeRabbit

  • New Features

    • Added support for marking ABM tokens as invalid with a new default-enabled status field.
    • Existing token records are now initialized with a valid default state during the update.
  • Tests

    • Added coverage to verify the new token status field is created correctly and backfilled for existing records.

@andymFleet andymFleet requested a review from a team as a code owner July 1, 2026 14:36
Copilot AI review requested due to automatic review settings July 1, 2026 14:36

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review to trigger a review and subscribe this PR to future pushes, or @claude review once for a one-time review.

Tip: disable this comment in your organization's Code Review settings.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a MySQL table migration to track whether an ABM token has been marked invalid, supporting ABM error handling/state tracking in the server datastore.

Changes:

  • Add token_invalid column to abm_tokens with a NOT NULL default of 0.
  • Add a migration test that verifies the column exists and has the expected schema/default.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
server/datastore/mysql/migrations/tables/20260701135344_AddTokenInvalidToABMTokens.go Adds the token_invalid column to abm_tokens.
server/datastore/mysql/migrations/tables/20260701135344_AddTokenInvalidToABMTokens_test.go Migration test validating the new column’s presence and default.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@coderabbitai

coderabbitai Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 4afe62a8-92fb-4324-9d86-31b88d623d86

📥 Commits

Reviewing files that changed from the base of the PR and between b6990fa and 8ffb382.

📒 Files selected for processing (3)
  • server/datastore/mysql/migrations/tables/20260701152227_AddTokenInvalidToABMTokens.go
  • server/datastore/mysql/migrations/tables/20260701152227_AddTokenInvalidToABMTokens_test.go
  • server/datastore/mysql/schema.sql
✅ Files skipped from review due to trivial changes (1)
  • server/datastore/mysql/migrations/tables/20260701152227_AddTokenInvalidToABMTokens_test.go

Walkthrough

This pull request adds a new MySQL migration that introduces a token_invalid column to the abm_tokens table, defined as TINYINT(1) NOT NULL DEFAULT 0. It includes a corresponding test verifying the column's schema metadata and default backfilled value. The generated schema.sql file is updated to reflect the new column and includes an additional migration status entry with incremented auto-increment value.

Changes

Area Changes
Migration New Up/Down migration adding token_invalid column to abm_tokens table; Down is a no-op
Test New test verifying column schema (name, type, nullability, default) and backfill of existing rows
Schema schema.sql updated with new column definition and migration status seed data

Sequence Diagram(s)

sequenceDiagram
  participant TestUp_20260701152227
  participant Up_20260701152227
  participant abm_tokens_table

  TestUp_20260701152227->>Up_20260701152227: run migration
  Up_20260701152227->>abm_tokens_table: ALTER TABLE ADD COLUMN token_invalid
  TestUp_20260701152227->>abm_tokens_table: query information_schema.COLUMNS
  abm_tokens_table-->>TestUp_20260701152227: column metadata and default
  TestUp_20260701152227->>abm_tokens_table: query token_invalid for existing row
  abm_tokens_table-->>TestUp_20260701152227: 0
Loading

Related issues: #47698 (adds the required migration for the token_invalid column tracking ABM token errors)

Suggested labels: orbit, datastore, migration

Suggested reviewers: getvictor, lucasmrod

🐰 A column hops into the table's row,
token_invalid, zero, ready to grow,
tests confirm the schema's true,
migration done, nothing left to do.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly matches the main change: adding a migration for invalid ABM token tracking.
Description check ✅ Passed The description includes the related issue, testing, and database migration notes required by the template.
Linked Issues check ✅ Passed The PR adds the requested abm_tokens migration with token_invalid TINYINT(1) NOT NULL DEFAULT '0'.
Out of Scope Changes check ✅ Passed The schema.sql and test updates support the migration and do not appear unrelated to the issue.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch 47698-add-abm-token-invalid-column

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In
`@server/datastore/mysql/migrations/tables/20260701135344_AddTokenInvalidToABMTokens_test.go`:
- Around line 14-19: The default-value check in the abm_tokens migration test is
being skipped because no row exists before the SELECT in the test. Update the
test around the QueryRow/assertion block to first insert a valid abm_tokens
record (using the required columns for the schema at this migration point), then
query that row and assert token_invalid is 0. Keep the fix localized to the
existing test function so the default is actually exercised.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 36bb3223-bbec-4d6c-829b-873dc7fc3581

📥 Commits

Reviewing files that changed from the base of the PR and between 7d85528 and 254a9cd.

📒 Files selected for processing (2)
  • server/datastore/mysql/migrations/tables/20260701135344_AddTokenInvalidToABMTokens.go
  • server/datastore/mysql/migrations/tables/20260701135344_AddTokenInvalidToABMTokens_test.go

@codecov

codecov Bot commented Jul 1, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 71.42857% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 68.02%. Comparing base (ad0a39e) to head (9225beb).

Files with missing lines Patch % Lines
...ables/20260701152227_AddTokenInvalidToABMTokens.go 71.42% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #48560      +/-   ##
==========================================
+ Coverage   67.99%   68.02%   +0.03%     
==========================================
  Files        3678     3679       +1     
  Lines      233791   233794       +3     
  Branches    12305    12453     +148     
==========================================
+ Hits       158968   159046      +78     
+ Misses      60496    60438      -58     
+ Partials    14327    14310      -17     
Flag Coverage Δ
backend 69.68% <71.42%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@andymFleet andymFleet marked this pull request as draft July 1, 2026 17:16
@qodo-free-for-open-source-projects

Copy link
Copy Markdown

CI Feedback 🧐

A test triggered by this PR failed. Here is an AI-generated analysis of the failure:

Action: test-go (fleetctl, mysql:8.0.44) / test

Failed stage: Run Go Tests [❌]

Failed test name: TestGitOpsFullGlobal

Failure summary:

The action failed because Go tests for ./cmd/fleetctl/... exited non-zero after TestGitOpsFullGlobal
failed in both subtests:
- TestGitOpsFullGlobal/useDeprecatedKeys=false and
TestGitOpsFullGlobal/useDeprecatedKeys=true failed at /cmd/fleetctl/fleetctl/gitops_test.go:2244
(assertion triggered from /cmd/fleetctl/fleetctl/testing_utils_test.go:20).
- Failure cause: the
test tried applying MDM custom settings and the API call POST /api/latest/fleet/mdm/profiles/batch
returned 422 Validation Failed with the message cannot set custom settings: Windows MDM isn't turned
on.
- This caused make .run-go-tests to fail (Makefile:302), which then caused the overall job to
fail (make test-go, exit code 2).

Relevant error logs:
1:  Runner name: 'ubuntu-8core-1000967516'
2:  Runner group name: 'default larger runners'
...

965:  �[36;1mattempt=1�[0m
966:  �[36;1m�[0m
967:  �[36;1mwhile [ $attempt -le $max_attempts ]; do�[0m
968:  �[36;1m  echo "Attempt $attempt of $max_attempts"�[0m
969:  �[36;1m�[0m
970:  �[36;1m  # Try to connect to MySQL�[0m
971:  �[36;1m  if wait_for_mysql "mysql_test"; then�[0m
972:  �[36;1m    # If MySQL is ready, try to connect to MySQL replica�[0m
973:  �[36;1m    if wait_for_mysql "mysql_replica_test"; then�[0m
974:  �[36;1m      # Both are ready, we're done�[0m
975:  �[36;1m      echo "All MySQL connections successful"�[0m
976:  �[36;1m      exit 0�[0m
977:  �[36;1m    fi�[0m
978:  �[36;1m  fi�[0m
979:  �[36;1m�[0m
980:  �[36;1m  # If we get here, at least one connection failed�[0m
981:  �[36;1m  echo "Failed to connect to MySQL on attempt $attempt"�[0m
982:  �[36;1m�[0m
983:  �[36;1m  if [ $attempt -lt $max_attempts ]; then�[0m
984:  �[36;1m    echo "Restarting containers and trying again..."�[0m
985:  �[36;1m    restart_containers�[0m
986:  �[36;1m  else�[0m
987:  �[36;1m    echo "Maximum attempts reached. Failing the job."�[0m
988:  �[36;1m    exit 1�[0m
...

1145:  ARTIFACT_PREFIX: fleetctl-mysql8.0.44
1146:  GOTOOLCHAIN: local
1147:  FLEET_PREVIEW_TAG: dev
1148:  ##[endgroup]
1149:  make .run-go-tests PKG_TO_TEST="./cmd/fleetctl/..."
1150:  make[1]: Entering directory '/home/runner/work/fleet/fleet'
1151:  Running Go tests with gotestsum:
1152:  gotestsum --format=testdox --jsonfile=/tmp/test-output.json -- -tags full,fts5,netgo -run=  -v -race=false -timeout=20m  -parallel 8 -coverprofile=coverage.txt -covermode=atomic -coverpkg=github.com/fleetdm/fleet/v4/... ././cmd/fleetctl/... 
1153:  github.com/fleetdm/fleet/v4/cmd/fleetctl:
1154:  github.com/fleetdm/fleet/v4/cmd/fleetctl/fleetctl/fleetctltest:
1155:  github.com/fleetdm/fleet/v4/cmd/fleetctl/integrationtest:
1156:  github.com/fleetdm/fleet/v4/cmd/fleetctl/fleetctl/testing_utils:
1157:  github.com/fleetdm/fleet/v4/cmd/fleetctl/fleetctl/goquerycmd:
1158:  github.com/fleetdm/fleet/v4/cmd/fleetctl/integrationtest/preview:
1159:  �[32m✓�[0m Integrations preview (50.94s)
1160:  �[32m✓�[0m Preview fails on invalid license key (0.00s)
1161:  github.com/fleetdm/fleet/v4/cmd/fleetctl/integrationtest/package:
...

1272:  �[32m✓�[0m Apply specs deprecated keys app config windows updates.grace period days not a number (0.39s)
1273:  �[32m✓�[0m Apply specs deprecated keys app config windows updates.grace period days out of range (0.47s)
1274:  �[32m✓�[0m Apply specs deprecated keys config with FIM values for agent options (#869 9) (0.47s)
1275:  �[32m✓�[0m Apply specs deprecated keys config with blank required org name (0.34s)
1276:  �[32m✓�[0m Apply specs deprecated keys config with blank required server url (0.35s)
1277:  �[32m✓�[0m Apply specs deprecated keys config with invalid agent options command-line flags (0.49s)
1278:  �[32m✓�[0m Apply specs deprecated keys config with invalid agent options data type in dry-run (0.43s)
1279:  �[32m✓�[0m Apply specs deprecated keys config with invalid agent options data type with force (0.38s)
1280:  �[32m✓�[0m Apply specs deprecated keys config with invalid agent options in dry-run (0.42s)
1281:  �[32m✓�[0m Apply specs deprecated keys config with invalid key type (0.53s)
1282:  �[32m✓�[0m Apply specs deprecated keys config with invalid value for agent options command-line flags (0.47s)
1283:  �[32m✓�[0m Apply specs deprecated keys config with unknown key (0.56s)
1284:  �[32m✓�[0m Apply specs deprecated keys config with valid agent options command-line flags (0.45s)
1285:  �[32m✓�[0m Apply specs deprecated keys dry-run set with unsupported spec (0.41s)
1286:  �[32m✓�[0m Apply specs deprecated keys dry-run set with various specs, appconfig warning for legacy (0.52s)
1287:  �[32m✓�[0m Apply specs deprecated keys dry-run set with various specs, no errors (0.41s)
1288:  �[32m✓�[0m Apply specs deprecated keys empty config (0.40s)
...

1291:  �[32m✓�[0m Apply specs deprecated keys invalid agent options dry-run (0.40s)
1292:  �[32m✓�[0m Apply specs deprecated keys invalid agent options field type (0.46s)
1293:  �[32m✓�[0m Apply specs deprecated keys invalid agent options field type in overrides (0.50s)
1294:  �[32m✓�[0m Apply specs deprecated keys invalid agent options for existing team (0.44s)
1295:  �[32m✓�[0m Apply specs deprecated keys invalid agent options for new team (0.63s)
1296:  �[32m✓�[0m Apply specs deprecated keys invalid agent options force (0.59s)
1297:  �[32m✓�[0m Apply specs deprecated keys invalid known key's value type for team cannot be forced (0.53s)
1298:  �[32m✓�[0m Apply specs deprecated keys invalid team agent options command-line flag (0.47s)
1299:  �[32m✓�[0m Apply specs deprecated keys invalid top-level key for team (0.58s)
1300:  �[32m✓�[0m Apply specs deprecated keys macos updates deadline set but minimum version empty (0.42s)
1301:  �[32m✓�[0m Apply specs deprecated keys macos updates minimum version set but deadline empty (0.41s)
1302:  �[32m✓�[0m Apply specs deprecated keys macos updates.deadline with incomplete date (0.47s)
1303:  �[32m✓�[0m Apply specs deprecated keys macos updates.deadline with invalid date (0.44s)
1304:  �[32m✓�[0m Apply specs deprecated keys macos updates.deadline with timestamp (0.47s)
1305:  �[32m✓�[0m Apply specs deprecated keys macos updates.minimum version with build version (0.49s)
1306:  �[32m✓�[0m Apply specs deprecated keys missing required failing policies destination url (0.44s)
1307:  �[32m✓�[0m Apply specs deprecated keys missing required host status days count (0.53s)
...

1315:  �[32m✓�[0m Apply specs deprecated keys team config macos settings.enable disk encryption true (0.48s)
1316:  �[32m✓�[0m Apply specs deprecated keys team config macos settings.enable disk encryption with invalid value type (0.48s)
1317:  �[32m✓�[0m Apply specs deprecated keys team config macos settings.enable disk encryption without a value (0.47s)
1318:  �[32m✓�[0m Apply specs deprecated keys unknown key for team can be forced (0.41s)
1319:  �[32m✓�[0m Apply specs deprecated keys valid team agent options command-line flag (0.56s)
1320:  �[32m✓�[0m Apply specs deprecated keys windows updates unset valid (0.42s)
1321:  �[32m✓�[0m Apply specs deprecated keys windows updates valid (0.60s)
1322:  �[32m✓�[0m Apply specs deprecated keys windows updates.deadline days but grace period empty (0.42s)
1323:  �[32m✓�[0m Apply specs deprecated keys windows updates.deadline days not a number (0.39s)
1324:  �[32m✓�[0m Apply specs deprecated keys windows updates.deadline days out of range (0.50s)
1325:  �[32m✓�[0m Apply specs deprecated keys windows updates.grace period days but deadline empty (0.42s)
1326:  �[32m✓�[0m Apply specs deprecated keys windows updates.grace period days not a number (0.53s)
1327:  �[32m✓�[0m Apply specs deprecated keys windows updates.grace period days out of range (0.40s)
1328:  �[32m✓�[0m Apply specs dry-run set with unsupported spec (0.35s)
1329:  �[32m✓�[0m Apply specs dry-run set with various specs, appconfig warning for legacy (0.49s)
1330:  �[32m✓�[0m Apply specs dry-run set with various specs, no errors (0.54s)
1331:  �[32m✓�[0m Apply specs empty config (0.46s)
...

1334:  �[32m✓�[0m Apply specs invalid agent options dry-run (0.36s)
1335:  �[32m✓�[0m Apply specs invalid agent options field type (0.41s)
1336:  �[32m✓�[0m Apply specs invalid agent options field type in overrides (0.52s)
1337:  �[32m✓�[0m Apply specs invalid agent options for existing team (0.41s)
1338:  �[32m✓�[0m Apply specs invalid agent options for new team (0.34s)
1339:  �[32m✓�[0m Apply specs invalid agent options force (0.50s)
1340:  �[32m✓�[0m Apply specs invalid known key's value type for team cannot be forced (0.41s)
1341:  �[32m✓�[0m Apply specs invalid team agent options command-line flag (0.36s)
1342:  �[32m✓�[0m Apply specs invalid top-level key for team (0.40s)
1343:  �[32m✓�[0m Apply specs macos updates deadline set but minimum version empty (0.42s)
1344:  �[32m✓�[0m Apply specs macos updates minimum version set but deadline empty (0.50s)
1345:  �[32m✓�[0m Apply specs macos updates.deadline with incomplete date (0.52s)
1346:  �[32m✓�[0m Apply specs macos updates.deadline with invalid date (0.45s)
1347:  �[32m✓�[0m Apply specs macos updates.deadline with timestamp (0.46s)
1348:  �[32m✓�[0m Apply specs macos updates.minimum version with build version (0.41s)
1349:  �[32m✓�[0m Apply specs missing required failing policies destination url (0.33s)
1350:  �[32m✓�[0m Apply specs missing required host status days count (0.37s)
...

1369:  �[32m✓�[0m Apply specs windows updates.grace period days not a number (0.38s)
1370:  �[32m✓�[0m Apply specs windows updates.grace period days out of range (0.47s)
1371:  �[32m✓�[0m Apply team specs (0.52s)
1372:  �[32m✓�[0m Apply user roles (0.58s)
1373:  �[32m✓�[0m Apply user roles deprecated (0.68s)
1374:  �[32m✓�[0m Apply windows updates (0.37s)
1375:  �[32m✓�[0m Apply windows updates field omitted (0.00s)
1376:  �[32m✓�[0m Apply windows updates with null values (0.00s)
1377:  �[32m✓�[0m Apply windows updates with values (0.00s)
1378:  �[32m✓�[0m Can apply intervals in nanoseconds (0.35s)
1379:  �[32m✓�[0m Can apply intervals using durations (0.37s)
1380:  �[32m✓�[0m Clean status code err (0.00s)
1381:  �[32m✓�[0m Clean status code err bare wrapped status code err (0.00s)
1382:  �[32m✓�[0m Clean status code err nil (0.00s)
1383:  �[32m✓�[0m Clean status code err outer-wrapped status code err (0.00s)
1384:  �[32m✓�[0m Clean status code err plain error untouched (0.00s)
1385:  �[32m✓�[0m Compute label changes (0.00s)
...

1441:  �[32m✓�[0m Filename functions (0.00s)
1442:  �[32m✓�[0m Filename functions outfile name builds a file name using the name provided + current time (0.00s)
1443:  �[32m✓�[0m Filename functions outfile name with ext builds a file name using the name and extension provided + current time (0.00s)
1444:  �[32m✓�[0m FleetctlUpgradePacks empty packs (0.34s)
1445:  �[32m✓�[0m FleetctlUpgradePacks no pack (0.41s)
1446:  �[32m✓�[0m FleetctlUpgradePacks non empty (0.39s)
1447:  �[32m✓�[0m FleetctlUpgradePacks not admin (0.36s)
1448:  �[32m✓�[0m Format XML (0.00s)
1449:  �[32m✓�[0m Format XML XML with attributes (0.00s)
1450:  �[32m✓�[0m Format XML basic XML (0.00s)
1451:  �[32m✓�[0m Format XML empty XML (0.00s)
1452:  �[32m✓�[0m Format XML invalid XML (0.00s)
1453:  �[32m✓�[0m Format XML nested XML (0.00s)
1454:  �[32m✓�[0m Generate MDM apple (0.79s)
1455:  �[32m✓�[0m Generate MDM apple BM (0.37s)
1456:  �[32m✓�[0m Generate MDM apple CSR API call fails (0.37s)
1457:  �[32m✓�[0m Generate MDM apple successful run (0.43s)
1458:  �[32m✓�[0m Generate MDMVPP tokens (0.00s)
1459:  �[32m✓�[0m Generate MDMVPP tokens get VPP tokens error (0.00s)
1460:  �[32m✓�[0m Generate MDMVPP tokens multiple tokens with different teams (0.00s)
...

1478:  �[32m✓�[0m Generate org settings masked google workspace api key (0.00s)
1479:  �[32m✓�[0m Generate policies (0.00s)
1480:  �[32m✓�[0m Generate policies patch policy orphaned from fleet maintained app (0.00s)
1481:  �[32m✓�[0m Generate queries (0.00s)
1482:  �[32m✓�[0m Generate software (0.00s)
1483:  �[32m✓�[0m Generate software auto update schedule (0.00s)
1484:  �[32m✓�[0m Generate software script packages (0.00s)
1485:  �[32m✓�[0m Generate team settings (0.00s)
1486:  �[32m✓�[0m Generate team settings insecure (0.00s)
1487:  �[32m✓�[0m Generated org settings no SSO (0.00s)
1488:  �[32m✓�[0m Generated org settings okta conditional access not included (0.00s)
1489:  �[32m✓�[0m Get MDM command results (0.42s)
1490:  �[32m✓�[0m Get MDM command results command flag required (0.00s)
1491:  �[32m✓�[0m Get MDM command results command not found (0.01s)
1492:  �[32m✓�[0m Get MDM command results command results empty (0.01s)
1493:  �[32m✓�[0m Get MDM command results command results error (0.01s)
1494:  �[32m✓�[0m Get MDM command results darwin command results (0.00s)
1495:  �[32m✓�[0m Get MDM command results host specific results (0.01s)
1496:  �[32m✓�[0m Get MDM command results windows command results (0.00s)
1497:  �[32m✓�[0m Get MDM commands (0.49s)
1498:  �[32m✓�[0m Get apple BM (1.70s)
1499:  �[32m✓�[0m Get apple BM free license (0.35s)
1500:  �[32m✓�[0m Get apple BM premium license, multiple tokens (0.56s)
1501:  �[32m✓�[0m Get apple BM premium license, no token (0.38s)
1502:  �[32m✓�[0m Get apple BM premium license, single token (0.41s)
1503:  �[32m✓�[0m Get apple MDM (0.37s)
1504:  �[32m✓�[0m Get carve (0.37s)
1505:  �[32m✓�[0m Get carve with error (0.40s)
1506:  �[32m✓�[0m Get carves (0.41s)
...

1520:  �[32m✓�[0m Get hosts MDM get hosts - -mdm - -mdm-pending - (0.00s)
1521:  �[32m✓�[0m Get hosts MDM get hosts - -mdm-pending - -yaml - expected list hosts yaml.yml (0.01s)
1522:  �[32m✓�[0m Get hosts get hosts - -json - -remove-deprecated-keys (0.00s)
1523:  �[32m✓�[0m Get hosts get hosts - -json - expected list hosts json.json (0.00s)
1524:  �[32m✓�[0m Get hosts get hosts - -json test host - expected host detail response json.json (0.00s)
1525:  �[32m✓�[0m Get hosts get hosts - -yaml - expected list hosts yaml.yml (0.00s)
1526:  �[32m✓�[0m Get hosts get hosts - -yaml test host - expected host detail response yaml.yml (0.00s)
1527:  �[32m✓�[0m Get label (0.34s)
1528:  �[32m✓�[0m Get label usage include and exclude allowed (0.00s)
1529:  �[32m✓�[0m Get label usage include and exclude allowed macos (0.00s)
1530:  �[32m✓�[0m Get label usage include and exclude allowed macos# 01 (0.00s)
1531:  �[32m✓�[0m Get label usage include and exclude allowed macos# 02 (0.00s)
1532:  �[32m✓�[0m Get label usage include and exclude allowed windows (0.00s)
1533:  �[32m✓�[0m Get label usage include and exclude allowed windows# 01 (0.00s)
1534:  �[32m✓�[0m Get label usage include and exclude allowed windows# 02 (0.00s)
1535:  �[32m✓�[0m Get label usage include exclude overlap error (0.00s)
1536:  �[32m✓�[0m Get label usage include exclude overlap error macos (0.00s)
1537:  �[32m✓�[0m Get label usage include exclude overlap error macos# 01 (0.00s)
1538:  �[32m✓�[0m Get label usage include exclude overlap error macos# 02 (0.00s)
1539:  �[32m✓�[0m Get label usage include exclude overlap error windows (0.00s)
1540:  �[32m✓�[0m Get label usage include exclude overlap error windows# 01 (0.00s)
1541:  �[32m✓�[0m Get label usage include exclude overlap error windows# 02 (0.00s)
1542:  �[32m✓�[0m Get label usage multiple label keys error (0.00s)
1543:  �[32m✓�[0m Get label usage multiple label keys error macos (0.00s)
1544:  �[32m✓�[0m Get label usage multiple label keys error windows (0.00s)
1545:  �[32m✓�[0m Get label usage policy scopes (0.00s)
...

1561:  �[32m✓�[0m Get queries as observer team observer (0.01s)
1562:  �[32m✓�[0m Get query (0.41s)
1563:  �[32m✓�[0m Get query labels include all (0.32s)
1564:  �[32m✓�[0m Get reports labels include all (0.41s)
1565:  �[32m✓�[0m Get software titles (0.36s)
1566:  �[32m✓�[0m Get software versions (0.42s)
1567:  �[32m✓�[0m Get teams (0.83s)
1568:  �[32m✓�[0m Get teams YAML and apply (0.43s)
1569:  �[32m✓�[0m Get teams by name (0.36s)
1570:  �[32m✓�[0m Get teams expired license (0.37s)
1571:  �[32m✓�[0m Get teams not expired license (0.46s)
1572:  �[32m✓�[0m Get teams software from source of truth (0.40s)
1573:  �[32m✓�[0m Get user roles (0.33s)
1574:  �[32m✓�[0m Git ops ABM (5.65s)
1575:  �[32m✓�[0m Git ops ABM backwards compat (0.51s)
1576:  �[32m✓�[0m Git ops ABM both keys errors (0.38s)
1577:  �[32m✓�[0m Git ops ABM deprecated config with two tokens in the db fails (0.42s)
1578:  �[32m✓�[0m Git ops ABM new key all valid (0.75s)
1579:  �[32m✓�[0m Git ops ABM new key multiple elements (0.84s)
1580:  �[32m✓�[0m Git ops ABM no team is supported (0.51s)
1581:  �[32m✓�[0m Git ops ABM non existent org name fails (0.47s)
1582:  �[32m✓�[0m Git ops ABM not provided teams defaults to no team (0.54s)
1583:  �[32m✓�[0m Git ops ABM renamed new key all valid (0.67s)
1584:  �[32m✓�[0m Git ops ABM using an undefined team errors (0.54s)
1585:  �[32m✓�[0m Git ops EULA setting (4.02s)
...

1588:  �[32m✓�[0m Git ops EULA setting not a PDF file (0.47s)
1589:  �[32m✓�[0m Git ops EULA setting relative path to working dir to pdf file (no existing EULA uploaded) (0.54s)
1590:  �[32m✓�[0m Git ops EULA setting relative path to yaml file to pdf file (no existing EULA uploaded) (0.47s)
1591:  �[32m✓�[0m Git ops EULA setting uploading the same EULA again (0.56s)
1592:  �[32m✓�[0m Git ops EULA setting valid new pdf file (different EULA already uploaded) (0.55s)
1593:  �[32m✓�[0m Git ops EULA setting valid pdf file (no existing EULA uploaded) (0.49s)
1594:  �[32m✓�[0m Git ops MDM auth settings (0.66s)
1595:  �[32m✓�[0m Git ops SMTP settings (0.57s)
1596:  �[32m✓�[0m Git ops SSO server URL (0.52s)
1597:  �[32m✓�[0m Git ops SSO settings (0.42s)
1598:  �[32m✓�[0m Git ops android certificates add (0.65s)
1599:  �[32m✓�[0m Git ops android certificates change (0.70s)
1600:  �[32m✓�[0m Git ops android certificates delete all (0.52s)
1601:  �[32m✓�[0m Git ops android certificates delete one (0.54s)
1602:  �[32m✓�[0m Git ops app store app auto update (0.43s)
1603:  �[32m✓�[0m Git ops app store app auto update invalid auto-update window triggers error and does not call update software title auto update config (0.01s)
1604:  �[32m✓�[0m Git ops app store app auto update no auto update settings and no existing schedule does not call update software title auto update config (0.02s)
1605:  �[32m✓�[0m Git ops app store app auto update update software title auto update config is applied for i OS VPP apps (0.02s)
1606:  �[32m✓�[0m Git ops app store app auto update update software title auto update config is not called when no VPP apps provided (0.02s)
1607:  �[32m✓�[0m Git ops apple OS updates (0.62s)
1608:  �[32m✓�[0m Git ops apple OS updates ios updates (0.01s)
1609:  �[32m✓�[0m Git ops apple OS updates ios updates os updated when existing OS update declaration (0.01s)
1610:  �[32m✓�[0m Git ops apple OS updates ipados updates (0.01s)
1611:  �[32m✓�[0m Git ops apple OS updates ipados updates os updated when existing OS update declaration (0.01s)
1612:  �[32m✓�[0m Git ops apple OS updates macos updates (0.01s)
1613:  �[32m✓�[0m Git ops apple OS updates macos updates os updated when existing OS update declaration (0.01s)
1614:  �[32m✓�[0m Git ops basic global and no team (0.56s)
1615:  �[32m✓�[0m Git ops basic global and no team basic global and no-team.yml (0.05s)
1616:  �[32m✓�[0m Git ops basic global and no team both global and no-team.yml define controls -- should fail (0.01s)
1617:  �[32m✓�[0m Git ops basic global and no team controls only defined in no-team.yml (0.05s)
1618:  �[32m✓�[0m Git ops basic global and no team global DOES NOT define controls -- should fail (0.01s)
1619:  �[32m✓�[0m Git ops basic global and no team global and no-team.yml DO NOT define controls -- should fail (0.01s)
1620:  �[32m✓�[0m Git ops basic global and no team global defines software -- should fail (0.01s)
1621:  �[32m✓�[0m Git ops basic global and no team no-team provided without global -- should fail (0.01s)
1622:  �[32m✓�[0m Git ops basic global and no team no-team.yml defines policy with calendar events enabled -- should fail (0.01s)
1623:  �[32m✓�[0m Git ops basic global and no team unassigned provided without global -- should fail (0.01s)
1624:  �[32m✓�[0m Git ops basic global and team (0.60s)
...

1630:  �[32m✓�[0m Git ops custom settings global macos windows custom settings valid.yml (0.49s)
1631:  �[32m✓�[0m Git ops custom settings global windows custom settings invalid label mix 2 .yml (0.44s)
1632:  �[32m✓�[0m Git ops custom settings global windows custom settings invalid label mix.yml (0.54s)
1633:  �[32m✓�[0m Git ops custom settings global windows custom settings unknown label.yml (0.44s)
1634:  �[32m✓�[0m Git ops custom settings team macos custom settings valid deprecated.yml (0.79s)
1635:  �[32m✓�[0m Git ops custom settings team macos windows custom settings invalid labels mix 2 .yml (0.44s)
1636:  �[32m✓�[0m Git ops custom settings team macos windows custom settings invalid labels mix.yml (0.38s)
1637:  �[32m✓�[0m Git ops custom settings team macos windows custom settings unknown label.yml (0.51s)
1638:  �[32m✓�[0m Git ops custom settings team macos windows custom settings valid.yml (0.46s)
1639:  �[32m✓�[0m Git ops dry run rejects invalid label platform (0.32s)
1640:  �[32m✓�[0m Git ops exception enforcement (0.38s)
1641:  �[32m✓�[0m Git ops exception enforcement free tier (0.40s)
1642:  �[32m✓�[0m Git ops exceptions preserve omitted keys (0.52s)
1643:  �[32m✓�[0m Git ops features (0.60s)
1644:  �[32m✓�[0m Git ops filename validation (0.00s)
1645:  �[32m✓�[0m Git ops fleet failing policies webhook policy IDs (0.40s)
1646:  �[32m✓�[0m Git ops fleet webhooks and tickets enabled (0.53s)
...

1803:  �[32m✓�[0m New basic file structure has expected files (0.00s)
1804:  �[32m✓�[0m New basic file structure replaces and escapes org name template var (0.00s)
1805:  �[32m✓�[0m New basic file structure strips .template. from output filenames (0.00s)
1806:  �[32m✓�[0m New dir flag (0.01s)
1807:  �[32m✓�[0m New existing dir with force (0.01s)
1808:  �[32m✓�[0m New existing dir without force (0.00s)
1809:  �[32m✓�[0m New org name YAML quoting (0.01s)
1810:  �[32m✓�[0m New org name validation (0.01s)
1811:  �[32m✓�[0m New org name validation at max length (0.01s)
1812:  �[32m✓�[0m New org name validation control characters stripped (0.01s)
1813:  �[32m✓�[0m New org name validation only control characters (0.00s)
1814:  �[32m✓�[0m New org name validation only whitespace (0.00s)
1815:  �[32m✓�[0m New org name validation too long (0.00s)
1816:  �[32m✓�[0m New output messages (0.01s)
1817:  �[32m✓�[0m New template stripping (0.01s)
1818:  �[32m✓�[0m Print auth error (0.44s)
1819:  �[32m✓�[0m Print auth error SSO disabled shows default login message (0.00s)
1820:  �[32m✓�[0m Print auth error SSO enabled shows SSO instructions (0.00s)
1821:  �[32m✓�[0m Render template (0.00s)
...

1841:  �[32m✓�[0m Run api command get scripts full path missing (0.00s)
1842:  �[32m✓�[0m Run api command get scripts team (0.00s)
1843:  �[32m✓�[0m Run api command get scripts team no cache (0.00s)
1844:  �[32m✓�[0m Run api command get typo (0.00s)
1845:  �[32m✓�[0m Run api command upload script (0.00s)
1846:  �[32m✓�[0m Run script command (0.51s)
1847:  �[32m✓�[0m Run script command disabled scripts globally (0.00s)
1848:  �[32m✓�[0m Run script command host not found (0.01s)
1849:  �[32m✓�[0m Run script command invalid file type (0.00s)
1850:  �[32m✓�[0m Run script command invalid hashbang (0.01s)
1851:  �[32m✓�[0m Run script command invalid utf 8 (0.00s)
1852:  �[32m✓�[0m Run script command missing one of script-path and script-nqme (0.00s)
1853:  �[32m✓�[0m Run script command output truncated (0.01s)
1854:  �[32m✓�[0m Run script command posix shell hashbang (0.01s)
1855:  �[32m✓�[0m Run script command script empty (0.00s)
1856:  �[32m✓�[0m Run script command script failed (0.01s)
1857:  �[32m✓�[0m Run script command script killed (0.01s)
...

1912:  �[32m✓�[0m Validate git ops group EUA global-only run degrades id p but the team's in-run file disables EU A: accepted (0.00s)
1913:  �[32m✓�[0m Validate git ops group EUA global-only run degrades id p while a stored team keeps EUA on: rejected (#4337 1) (0.00s)
1914:  �[32m✓�[0m Validate git ops group EUA no EUA enabled anywhere is accepted (0.00s)
1915:  �[32m✓�[0m Validate git ops group EUA team enables EU A, global file adds complete id P: accepted (0.00s)
1916:  �[32m✓�[0m Validate git ops group EUA team enables EU A, global file adds id p missing entity id: rejected (0.00s)
1917:  �[32m✓�[0m Validate git ops group EUA team enables EU A, global file omits id P, stored has id P: rejected (overwrite clears) (0.00s)
1918:  �[32m✓�[0m Validate git ops group EUA team enables EU A, stored has id P, no global file: accepted (0.00s)
1919:  �[32m✓�[0m Validate git ops group EUA team enables EU A, stored has no id P, no global file: rejected (0.00s)
1920:  github.com/fleetdm/fleet/v4/cmd/fleetctl/integrationtest/gitops:
1921:  �[32m✓�[0m Git ops VPP (4.80s)
1922:  �[32m✓�[0m Git ops VPP all fleets is supported (0.63s)
1923:  �[32m✓�[0m Git ops VPP all teams is supported (0.61s)
1924:  �[32m✓�[0m Git ops VPP new key all valid (0.63s)
1925:  �[32m✓�[0m Git ops VPP new key multiple elements (0.73s)
1926:  �[32m✓�[0m Git ops VPP no team is supported (0.59s)
1927:  �[32m✓�[0m Git ops VPP non existent location fails (0.47s)
1928:  �[32m✓�[0m Git ops VPP not provided teams defaults to no team (0.62s)
1929:  �[32m✓�[0m Git ops VPP using an undefined team errors (0.52s)
1930:  �[32m✓�[0m Git ops existing team VPP apps with missing team (0.78s)
...

2023:  �[32m✓�[0m Git ops team software installers team software installer with display name.yml (1.53s)
2024:  �[32m✓�[0m Integrations enterprise gitops (318.58s)
2025:  �[32m✓�[0m Integrations enterprise gitops test CA integrations (4.13s)
2026:  �[32m✓�[0m Integrations enterprise gitops test FMA labels include all (6.02s)
2027:  �[32m✓�[0m Integrations enterprise gitops test IPA software installers (10.53s)
2028:  �[32m✓�[0m Integrations enterprise gitops test JSON configuration profile escaping (1.29s)
2029:  �[32m✓�[0m Integrations enterprise gitops test add manual labels (1.51s)
2030:  �[32m✓�[0m Integrations enterprise gitops test configuration profile escaping (1.36s)
2031:  �[32m✓�[0m Integrations enterprise gitops test delete CA with certificate templates (5.92s)
2032:  �[32m✓�[0m Integrations enterprise gitops test delete mac OS setup (5.06s)
2033:  �[32m✓�[0m Integrations enterprise gitops test deleting no team YAML (2.67s)
2034:  �[32m✓�[0m Integrations enterprise gitops test disallow software setup experience (123.74s)
2035:  �[32m✓�[0m Integrations enterprise gitops test disallow software setup experience all VPP with setup experience (1.25s)
2036:  �[32m✓�[0m Integrations enterprise gitops test disallow software setup experience no team VPP (1.14s)
2037:  �[32m✓�[0m Integrations enterprise gitops test disallow software setup experience no team installers (60.53s)
2038:  �[32m✓�[0m Integrations enterprise gitops test disallow software setup experience packages fail (60.65s)
2039:  �[32m✓�[0m Integrations enterprise gitops test dry run mac OS setup script with manual agent install conflict (0.41s)
...

2069:  �[32m✓�[0m Integrations enterprise gitops test omitted top level keys global (2.46s)
2070:  �[32m✓�[0m Integrations enterprise gitops test remove custom settings from default YAML (2.56s)
2071:  �[32m✓�[0m Integrations enterprise gitops test special case teams VPP apps (3.82s)
2072:  �[32m✓�[0m Integrations enterprise gitops test special case teams VPP apps all teams (2.41s)
2073:  �[32m✓�[0m Integrations enterprise gitops test special case teams VPP apps no team (1.25s)
2074:  �[32m✓�[0m Integrations enterprise gitops test unset configuration profile labels (4.93s)
2075:  �[32m✓�[0m Integrations enterprise gitops test unset software installer labels (12.37s)
2076:  �[32m✓�[0m Integrations enterprise starter library (4.95s)
2077:  �[32m✓�[0m Integrations enterprise starter library test apply starter library premium (3.53s)
2078:  �[32m✓�[0m Integrations gitops (2.46s)
2079:  �[32m✓�[0m Integrations gitops test fleet gitops (0.61s)
2080:  �[32m✓�[0m Integrations gitops test fleet gitops DDM fleet vars requires premium (0.11s)
2081:  �[32m✓�[0m Integrations gitops test fleet gitops with fleet secrets (0.24s)
2082:  �[32m✓�[0m Integrations starter library (1.56s)
2083:  �[32m✓�[0m Integrations starter library test apply starter library free (0.18s)
2084:  === �[31mFailed�[0m
2085:  === �[31mFAIL�[0m: cmd/fleetctl/fleetctl TestGitOpsFullGlobal/useDeprecatedKeys=false (0.04s)
2086:  time=level=INFO msg="request error" path=/api/latest/fleet/setup_experience/eula/metadata took=115.868µs uuid=f26ed2a0-82d9-495a-b026-03dfe25f7034 err="not found"
2087:  [-] would've deleted report Query to delete
2088:  time=level=INFO msg="request error" path=/api/latest/fleet/setup_experience/eula/metadata took=105.718µs uuid=37413eca-82a5-40bc-9268-536c7aa7d711 err="not found"
2089:  testing_utils_test.go:20: 
2090:  Error Trace:	/home/runner/work/fleet/fleet/cmd/fleetctl/fleetctl/testing_utils_test.go:20
2091:  /home/runner/work/fleet/fleet/cmd/fleetctl/fleetctl/gitops_test.go:2244
2092:  Error:      	Received unexpected error:
2093:  applying custom settings: POST /api/latest/fleet/mdm/profiles/batch received status 422 Validation Failed: cannot set custom settings: Windows MDM isn't turned on. For more information about setting up MDM, please visit https://fleetdm.com/learn-more-about/windows-mdm (API time: 1ms)
2094:  Test:       	TestGitOpsFullGlobal/useDeprecatedKeys=false
2095:  --- FAIL: TestGitOpsFullGlobal/useDeprecatedKeys=false (0.04s)
2096:  === �[31mFAIL�[0m: cmd/fleetctl/fleetctl TestGitOpsFullGlobal/useDeprecatedKeys=true (0.04s)
2097:  time=level=INFO msg="request error" path=/api/latest/fleet/setup_experience/eula/metadata took=117.39µs uuid=d56170ed-e8cd-47d4-a46c-7d537d916568 err="not found"
2098:  [-] would've deleted report Query to delete
2099:  time=level=INFO msg="request error" path=/api/latest/fleet/setup_experience/eula/metadata took=114.876µs uuid=336da4c4-2a6a-4fa9-a768-c9e4fc4df8fa err="not found"
2100:  testing_utils_test.go:20: 
2101:  Error Trace:	/home/runner/work/fleet/fleet/cmd/fleetctl/fleetctl/testing_utils_test.go:20
2102:  /home/runner/work/fleet/fleet/cmd/fleetctl/fleetctl/gitops_test.go:2244
2103:  Error:      	Received unexpected error:
2104:  applying custom settings: POST /api/latest/fleet/mdm/profiles/batch received status 422 Validation Failed: cannot set custom settings: Windows MDM isn't turned on. For more information about setting up MDM, please visit https://fleetdm.com/learn-more-about/windows-mdm (API time: 1ms)
2105:  Test:       	TestGitOpsFullGlobal/useDeprecatedKeys=true
2106:  --- FAIL: TestGitOpsFullGlobal/useDeprecatedKeys=true (0.04s)
2107:  === �[31mFAIL�[0m: cmd/fleetctl/fleetctl TestGitOpsFullGlobal (0.48s)
2108:  DONE 921 tests, 3 failures in 649.037s
2109:  make[1]: *** [Makefile:302: .run-go-tests] Error 1
2110:  make[1]: Leaving directory '/home/runner/work/fleet/fleet'
2111:  make: *** [Makefile:417: test-go] Error 2
2112:  ##[error]Process completed with exit code 2.
2113:  Node 20 is being deprecated. This workflow is running with Node 24 by default. If you need to temporarily use Node 20, you can set the ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true environment variable. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
2114:  ##[group]Run actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a
2115:  with:
2116:  name: fleetctl-mysql8.0.44-coverage
2117:  path: ./coverage.txt
2118:  if-no-files-found: error
2119:  compression-level: 6
...

2122:  RACE_ENABLED: false
2123:  GO_TEST_TIMEOUT: 20m
2124:  DOCKER_COMMAND: docker compose -f docker-compose.yml -f docker-compose-redis-cluster.yml up -d mysql_test mysql_replica_test redis redis-cluster-1 redis-cluster-2 redis-cluster-3 redis-cluster-4 redis-cluster-5 redis-cluster-6 redis-cluster-setup s3 saml_idp mailhog mailpit smtp4dev_test
2125:  RUN_TESTS_ARG: 
2126:  CI_TEST_PKG: fleetctl
2127:  NEED_DOCKER: 1
2128:  ARTIFACT_PREFIX: fleetctl-mysql8.0.44
2129:  GOTOOLCHAIN: local
2130:  ##[endgroup]
2131:  (node:49045) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
2132:  (Use `node --trace-deprecation ...` to show where the warning was created)
2133:  With the provided path, there will be 1 file uploaded
2134:  Artifact name is valid!
2135:  Root directory input is valid!
2136:  Beginning upload of artifact content to blob storage
2137:  (node:49045) [DEP0169] DeprecationWarning: `url.parse()` behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for `url.parse()` vulnerabilities.
2138:  Uploaded bytes 2308854
2139:  Finished uploading artifact content to blob storage!
2140:  SHA256 hash of uploaded artifact zip is 8d94faa0897af4a7d5eb6a13fc89da064d3aeb5b5b599ee8d11dac4ecfd724ed
2141:  Finalizing artifact upload
2142:  Artifact fleetctl-mysql8.0.44-coverage.zip successfully finalized. Artifact ID 8042628666
2143:  Artifact fleetctl-mysql8.0.44-coverage has been successfully uploaded! Final size is 2308854 bytes. Artifact ID is 8042628666
2144:  Artifact download URL: https://github.com/fleetdm/fleet/actions/runs/28598362227/artifacts/8042628666
2145:  ##[group]Run c1grep() { grep "$@" || test $? = 1; }
2146:  �[36;1mc1grep() { grep "$@" || test $? = 1; }�[0m
2147:  �[36;1mc1grep -oP 'FAIL: .*$' /tmp/gotest.log > /tmp/summary.txt�[0m
2148:  �[36;1mc1grep 'test timed out after' /tmp/gotest.log >> /tmp/summary.txt�[0m
2149:  �[36;1mc1grep 'fatal error:' /tmp/gotest.log >> /tmp/summary.txt�[0m
2150:  �[36;1mc1grep -A 10 'panic: runtime error: ' /tmp/gotest.log >> /tmp/summary.txt�[0m
2151:  �[36;1mc1grep ' FAIL\t' /tmp/gotest.log >> /tmp/summary.txt�[0m
2152:  �[36;1mGO_FAIL_SUMMARY=$(head -n 5 /tmp/summary.txt | sed ':a;N;$!ba;s/\n/\\n/g')�[0m
2153:  �[36;1mecho "GO_FAIL_SUMMARY=$GO_FAIL_SUMMARY"�[0m
2154:  �[36;1mif [[ -z "$GO_FAIL_SUMMARY" ]]; then�[0m
2155:  �[36;1m  GO_FAIL_SUMMARY="unknown, please check the build URL"�[0m
2156:  �[36;1mfi�[0m
2157:  �[36;1mGO_FAIL_SUMMARY=$GO_FAIL_SUMMARY envsubst < .github/workflows/config/slack_payload_template.json > ./payload.json�[0m
2158:  shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
2159:  env:
2160:  RACE_ENABLED: false
2161:  GO_TEST_TIMEOUT: 20m
2162:  DOCKER_COMMAND: docker compose -f docker-compose.yml -f docker-compose-redis-cluster.yml up -d mysql_test mysql_replica_test redis redis-cluster-1 redis-cluster-2 redis-cluster-3 redis-cluster-4 redis-cluster-5 redis-cluster-6 redis-cluster-setup s3 saml_idp mailhog mailpit smtp4dev_test
2163:  RUN_TESTS_ARG: 
2164:  CI_TEST_PKG: fleetctl
2165:  NEED_DOCKER: 1
2166:  ARTIFACT_PREFIX: fleetctl-mysql8.0.44
2167:  GOTOOLCHAIN: local
2168:  ##[endgroup]
2169:  GO_FAIL_SUMMARY=FAIL: TestGitOpsFullGlobal/useDeprecatedKeys=false (0.04s)\nFAIL: TestGitOpsFullGlobal/useDeprecatedKeys=true (0.04s)
2170:  Node 20 is being deprecated. This workflow is running with Node 24 by default. If you need to temporarily use Node 20, you can set the ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true environment variable. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
2171:  ##[group]Run actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a
2172:  with:
2173:  name: fleetctl-mysql8.0.44-test-log
2174:  path: /tmp/gotest.log
2175:  if-no-files-found: error
2176:  compression-level: 6
...

2179:  RACE_ENABLED: false
2180:  GO_TEST_TIMEOUT: 20m
2181:  DOCKER_COMMAND: docker compose -f docker-compose.yml -f docker-compose-redis-cluster.yml up -d mysql_test mysql_replica_test redis redis-cluster-1 redis-cluster-2 redis-cluster-3 redis-cluster-4 redis-cluster-5 redis-cluster-6 redis-cluster-setup s3 saml_idp mailhog mailpit smtp4dev_test
2182:  RUN_TESTS_ARG: 
2183:  CI_TEST_PKG: fleetctl
2184:  NEED_DOCKER: 1
2185:  ARTIFACT_PREFIX: fleetctl-mysql8.0.44
2186:  GOTOOLCHAIN: local
2187:  ##[endgroup]
2188:  (node:49067) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
2189:  (Use `node --trace-deprecation ...` to show where the warning was created)
2190:  With the provided path, there will be 1 file uploaded
2191:  Artifact name is valid!
2192:  Root directory input is valid!
2193:  Beginning upload of artifact content to blob storage
2194:  (node:49067) [DEP0169] DeprecationWarning: `url.parse()` behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for `url.parse()` vulnerabilities.
2195:  Uploaded bytes 10989
...

2211:  RACE_ENABLED: false
2212:  GO_TEST_TIMEOUT: 20m
2213:  DOCKER_COMMAND: docker compose -f docker-compose.yml -f docker-compose-redis-cluster.yml up -d mysql_test mysql_replica_test redis redis-cluster-1 redis-cluster-2 redis-cluster-3 redis-cluster-4 redis-cluster-5 redis-cluster-6 redis-cluster-setup s3 saml_idp mailhog mailpit smtp4dev_test
2214:  RUN_TESTS_ARG: 
2215:  CI_TEST_PKG: fleetctl
2216:  NEED_DOCKER: 1
2217:  ARTIFACT_PREFIX: fleetctl-mysql8.0.44
2218:  GOTOOLCHAIN: local
2219:  ##[endgroup]
2220:  (node:49102) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
2221:  (Use `node --trace-deprecation ...` to show where the warning was created)
2222:  With the provided path, there will be 1 file uploaded
2223:  Artifact name is valid!
2224:  Root directory input is valid!
2225:  Beginning upload of artifact content to blob storage
2226:  (node:49102) [DEP0169] DeprecationWarning: `url.parse()` behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for `url.parse()` vulnerabilities.
2227:  Uploaded bytes 205
...

2243:  RACE_ENABLED: false
2244:  GO_TEST_TIMEOUT: 20m
2245:  DOCKER_COMMAND: docker compose -f docker-compose.yml -f docker-compose-redis-cluster.yml up -d mysql_test mysql_replica_test redis redis-cluster-1 redis-cluster-2 redis-cluster-3 redis-cluster-4 redis-cluster-5 redis-cluster-6 redis-cluster-setup s3 saml_idp mailhog mailpit smtp4dev_test
2246:  RUN_TESTS_ARG: 
2247:  CI_TEST_PKG: fleetctl
2248:  NEED_DOCKER: 1
2249:  ARTIFACT_PREFIX: fleetctl-mysql8.0.44
2250:  GOTOOLCHAIN: local
2251:  ##[endgroup]
2252:  (node:49114) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
2253:  (Use `node --trace-deprecation ...` to show where the warning was created)
2254:  With the provided path, there will be 1 file uploaded
2255:  Artifact name is valid!
2256:  Root directory input is valid!
2257:  Beginning upload of artifact content to blob storage
2258:  (node:49114) [DEP0169] DeprecationWarning: `url.parse()` behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for `url.parse()` vulnerabilities.
2259:  Uploaded bytes 104908
...

2292:  RACE_ENABLED: false
2293:  GO_TEST_TIMEOUT: 20m
2294:  DOCKER_COMMAND: docker compose -f docker-compose.yml -f docker-compose-redis-cluster.yml up -d mysql_test mysql_replica_test redis redis-cluster-1 redis-cluster-2 redis-cluster-3 redis-cluster-4 redis-cluster-5 redis-cluster-6 redis-cluster-setup s3 saml_idp mailhog mailpit smtp4dev_test
2295:  RUN_TESTS_ARG: 
2296:  CI_TEST_PKG: fleetctl
2297:  NEED_DOCKER: 1
2298:  ARTIFACT_PREFIX: fleetctl-mysql8.0.44
2299:  GOTOOLCHAIN: local
2300:  ##[endgroup]
2301:  (node:49127) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
2302:  (Use `node --trace-deprecation ...` to show where the warning was created)
2303:  With the provided path, there will be 1 file uploaded
2304:  Artifact name is valid!
2305:  Root directory input is valid!
2306:  Beginning upload of artifact content to blob storage
2307:  (node:49127) [DEP0169] DeprecationWarning: `url.parse()` behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for `url.parse()` vulnerabilities.
2308:  Uploaded bytes 133

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ABM errors: migration

2 participants