Skip to content

Bump migration timestamps after 4.88 cherry-pick#48617

Open
georgekarrv wants to merge 1 commit into
mainfrom
georgekarrv/bump-migrations-after-4.88-cherrypick
Open

Bump migration timestamps after 4.88 cherry-pick#48617
georgekarrv wants to merge 1 commit into
mainfrom
georgekarrv/bump-migrations-after-4.88-cherrypick

Conversation

@georgekarrv

@georgekarrv georgekarrv commented Jul 2, 2026

Copy link
Copy Markdown
Member

Related issue: Resolves NA (release hygiene — migration ordering)

What & why

The 4.88.0 patch cherry-picked two migrations, 20260624210253_AddHostMDMAppleEnrollmentPermissions and 20260624210311_RenamePersonalEnrollmentStatus. Eight migrations on main were not cherry-picked into 4.88 but had earlier timestamps than those two:

Old timestamp Migration
20260611202649 AddWindowsMDMConfigProfilesPendingDelete
20260615135619 AddSetupExperienceSoftwareInstallers
20260617172853 CreateSoftwareTitleTeamPins
20260617194413 AddAndroidProfileVariableTracking
20260622124714 AddPolicyGateToSetupExperienceResults
20260622124734 AddBYODFleetAndADUEEnrollment
20260623140135 AddSupportSoftwareCategory
20260624152755 AddCertAndAndroidAppVariableTracking

This violates the rule in docs/Contributing/workflows/releasing-fleet.md:

Any migrations that are not cherry-picked in a patch must have a later timestamp than migrations that were cherry-picked.

Left as-is, a customer on 4.88.0 (who applied migrations through 20260624210311) upgrading to 4.89.0 would hit these 8 as out-of-order/missing migrations older than their highest-applied version.

Fix

Bumped the 8 non-cherry-picked migrations to new timestamps (2026070201305520260702013102) using tools/bump-migration, preserving their relative order, so they now sort after the cherry-picked migrations and 20260626120000_CompressWindowsMDMResponsesColumn. Regenerated schema.sql.

Verified 20260626120000_CompressWindowsMDMResponsesColumn (the only other non-cherry-picked migration, already correctly ordered) touches only windows_mdm_responses — none of the 8 moved migrations touch that table, so no dependency inversion is introduced by the reorder. None of these 10 migrations shipped in 4.87.1, so no released database is affected.

rc-patch-fleet-v4.88.0 needs no change. This lands on main and should be reflected on rc-minor-fleet-v4.89.0.

Checklist for submitter

Database migrations

  • Migration files renamed via tools/bump-migration; function names updated to match new timestamps.
  • Regenerated schema.sql via make dump-test-schema; migrations apply cleanly in the new order.
  • No schema/content changes to the migrations themselves — timestamp renumber only.

Testing

  • go build ./server/datastore/mysql/migrations/... and go vet pass; schema regeneration ran all migrations successfully in order.

Summary by CodeRabbit

  • New Features

    • Added support for additional device/profile tracking across Android, Apple, Windows, certificates, and apps.
    • Added new setup and software management records, including support software categories and team pins.
    • Added a policy-gating flag for setup experience results.
  • Bug Fixes

    • Improved database consistency with stronger uniqueness and cascade-delete behavior.
    • Updated schema tracking so migrations apply cleanly with the latest database state.

The 4.88.0 patch cherry-picked migrations 20260624210253
(AddHostMDMAppleEnrollmentPermissions) and 20260624210311
(RenamePersonalEnrollmentStatus). Eight migrations on main were NOT
cherry-picked into 4.88 but had earlier timestamps, which violates the
release rule (docs/Contributing/workflows/releasing-fleet.md): migrations
not cherry-picked in a patch must have a later timestamp than those that
were. This would break the 4.88.0 -> 4.89.0 upgrade path (out-of-order
migrations).

Bump the 8 non-cherry-picked migrations to timestamps after the
cherry-picked ones, preserving their relative order, and regenerate
schema.sql.
Copilot AI review requested due to automatic review settings July 2, 2026 13:30
@georgekarrv georgekarrv requested a review from a team as a code owner July 2, 2026 13:30

@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

Adjusts database migration ordering on main to prevent out-of-order / missing-migration errors when upgrading customers from 4.88.0 (which included two later-timestamp migrations via cherry-pick) to 4.89.0+. This PR renames eight previously-earlier main migrations to new timestamps while preserving their relative order, and regenerates schema.sql accordingly.

Changes:

  • Bumped timestamps (and corresponding Up_*/Down_* function names + test names) for 8 non-cherry-picked migrations so they sort after the 4.88.0 cherry-picked migrations.
  • Updated generated server/datastore/mysql/schema.sql migration list to reflect the new versions.
  • Removed all references to the old migration versions (confirmed no remaining Up_/Down_ symbol references or old-timestamp files).

Reviewed changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated no comments.

Show a summary per file
File Description
server/datastore/mysql/schema.sql Regenerated schema to reflect the updated migration versions/order.
server/datastore/mysql/migrations/tables/20260702013102_AddCertAndAndroidAppVariableTracking.go Renamed migration registration and Up_/Down_ functions to new timestamp.
server/datastore/mysql/migrations/tables/20260702013102_AddCertAndAndroidAppVariableTracking_test.go Updated migration test name to match new timestamp (drives test harness version detection).
server/datastore/mysql/migrations/tables/20260702013101_AddSupportSoftwareCategory.go Renamed migration registration and Up_/Down_ functions to new timestamp.
server/datastore/mysql/migrations/tables/20260702013101_AddSupportSoftwareCategory_test.go Updated migration test name to match new timestamp.
server/datastore/mysql/migrations/tables/20260702013100_AddBYODFleetAndADUEEnrollment.go Renamed migration registration and Up_/Down_ functions to new timestamp.
server/datastore/mysql/migrations/tables/20260702013100_AddBYODFleetAndADUEEnrollment_test.go Updated migration test name to match new timestamp.
server/datastore/mysql/migrations/tables/20260702013059_AddPolicyGateToSetupExperienceResults.go Renamed migration registration and Up_/Down_ functions to new timestamp.
server/datastore/mysql/migrations/tables/20260702013058_AddAndroidProfileVariableTracking.go Renamed migration registration and Up_/Down_ functions to new timestamp.
server/datastore/mysql/migrations/tables/20260702013058_AddAndroidProfileVariableTracking_test.go Updated migration test name to match new timestamp.
server/datastore/mysql/migrations/tables/20260702013057_CreateSoftwareTitleTeamPins.go Renamed migration registration and Up_/Down_ functions to new timestamp.
server/datastore/mysql/migrations/tables/20260702013057_CreateSoftwareTitleTeamPins_test.go Updated migration test name to match new timestamp.
server/datastore/mysql/migrations/tables/20260702013056_AddSetupExperienceSoftwareInstallers.go Renamed migration registration and Up_/Down_ functions to new timestamp.
server/datastore/mysql/migrations/tables/20260702013056_AddSetupExperienceSoftwareInstallers_test.go Updated migration test name to match new timestamp.
server/datastore/mysql/migrations/tables/20260702013055_AddWindowsMDMConfigProfilesPendingDelete.go Renamed migration registration and Up_/Down_ functions to new timestamp.

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

@coderabbitai

coderabbitai Bot commented Jul 2, 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: 4b634556-eff0-48de-866a-041c49c7b78a

📥 Commits

Reviewing files that changed from the base of the PR and between 7023c5b and 6b1ecff.

📒 Files selected for processing (15)
  • server/datastore/mysql/migrations/tables/20260702013055_AddWindowsMDMConfigProfilesPendingDelete.go
  • server/datastore/mysql/migrations/tables/20260702013056_AddSetupExperienceSoftwareInstallers.go
  • server/datastore/mysql/migrations/tables/20260702013056_AddSetupExperienceSoftwareInstallers_test.go
  • server/datastore/mysql/migrations/tables/20260702013057_CreateSoftwareTitleTeamPins.go
  • server/datastore/mysql/migrations/tables/20260702013057_CreateSoftwareTitleTeamPins_test.go
  • server/datastore/mysql/migrations/tables/20260702013058_AddAndroidProfileVariableTracking.go
  • server/datastore/mysql/migrations/tables/20260702013058_AddAndroidProfileVariableTracking_test.go
  • server/datastore/mysql/migrations/tables/20260702013059_AddPolicyGateToSetupExperienceResults.go
  • server/datastore/mysql/migrations/tables/20260702013100_AddBYODFleetAndADUEEnrollment.go
  • server/datastore/mysql/migrations/tables/20260702013100_AddBYODFleetAndADUEEnrollment_test.go
  • server/datastore/mysql/migrations/tables/20260702013101_AddSupportSoftwareCategory.go
  • server/datastore/mysql/migrations/tables/20260702013101_AddSupportSoftwareCategory_test.go
  • server/datastore/mysql/migrations/tables/20260702013102_AddCertAndAndroidAppVariableTracking.go
  • server/datastore/mysql/migrations/tables/20260702013102_AddCertAndAndroidAppVariableTracking_test.go
  • server/datastore/mysql/schema.sql

Walkthrough

This PR renames nine existing MySQL migration files' Up/Down functions and their init() registrations from older timestamps to new 20260702 timestamps, updates the corresponding test function names, and refreshes the migration_status_tables seed data in schema.sql to reflect the new final applied version (20260702013102). Migration logic and test bodies remain functionally unchanged aside from renaming.

Possibly related PRs

  • fleetdm/fleet#47750: Introduces the same android_profile_uuid column/unique key/FK/check constraint logic being renamed here in the AddAndroidProfileVariableTracking migration.
  • fleetdm/fleet#47778: Directly matches the CreateSoftwareTitleTeamPins migration rename from 20260617172853 to 20260702013057.
  • fleetdm/fleet#48278: Matches the certificate_template_id/android_app_configuration_id variable tracking migration renamed in this PR.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly states the main change: renaming migration timestamps to bump them after the 4.88 cherry-pick.
Description check ✅ Passed The description covers the required sections with the migration-ordering rationale, fix, database-migration notes, and testing details.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ 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 georgekarrv/bump-migrations-after-4.88-cherrypick

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.

@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 in ./cmd/fleetctl/... returned a non-zero exit code due to
failing GitOps integration tests.
- Failing tests: TestGitOpsFullGlobal/useDeprecatedKeys=false and
TestGitOpsFullGlobal/useDeprecatedKeys=true (reported from
cmd/fleetctl/fleetctl/gitops_test.go:2244, via helper
cmd/fleetctl/fleetctl/testing_utils_test.go:20).
- Root cause: the test expected GitOps to apply
custom settings successfully, but the API call to apply MDM custom settings failed:
- POST
/api/latest/fleet/mdm/profiles/batch returned 422 Validation Failed
- Error message: cannot set
custom settings: Windows MDM isn't turned on
This caused make .run-go-tests to fail (Makefile:302),
which then failed the overall make test-go target (Makefile:417) and the job exited with code 2.

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

976:  �[36;1mattempt=1�[0m
977:  �[36;1m�[0m
978:  �[36;1mwhile [ $attempt -le $max_attempts ]; do�[0m
979:  �[36;1m  echo "Attempt $attempt of $max_attempts"�[0m
980:  �[36;1m�[0m
981:  �[36;1m  # Try to connect to MySQL�[0m
982:  �[36;1m  if wait_for_mysql "mysql_test"; then�[0m
983:  �[36;1m    # If MySQL is ready, try to connect to MySQL replica�[0m
984:  �[36;1m    if wait_for_mysql "mysql_replica_test"; then�[0m
985:  �[36;1m      # Both are ready, we're done�[0m
986:  �[36;1m      echo "All MySQL connections successful"�[0m
987:  �[36;1m      exit 0�[0m
988:  �[36;1m    fi�[0m
989:  �[36;1m  fi�[0m
990:  �[36;1m�[0m
991:  �[36;1m  # If we get here, at least one connection failed�[0m
992:  �[36;1m  echo "Failed to connect to MySQL on attempt $attempt"�[0m
993:  �[36;1m�[0m
994:  �[36;1m  if [ $attempt -lt $max_attempts ]; then�[0m
995:  �[36;1m    echo "Restarting containers and trying again..."�[0m
996:  �[36;1m    restart_containers�[0m
997:  �[36;1m  else�[0m
998:  �[36;1m    echo "Maximum attempts reached. Failing the job."�[0m
999:  �[36;1m    exit 1�[0m
...

1148:  ARTIFACT_PREFIX: fleetctl-mysql8.0.44
1149:  GOTOOLCHAIN: local
1150:  FLEET_PREVIEW_TAG: dev
1151:  ##[endgroup]
1152:  make .run-go-tests PKG_TO_TEST="./cmd/fleetctl/..."
1153:  make[1]: Entering directory '/home/runner/work/fleet/fleet'
1154:  Running Go tests with gotestsum:
1155:  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/... 
1156:  github.com/fleetdm/fleet/v4/cmd/fleetctl:
1157:  github.com/fleetdm/fleet/v4/cmd/fleetctl/integrationtest:
1158:  github.com/fleetdm/fleet/v4/cmd/fleetctl/fleetctl/goquerycmd:
1159:  github.com/fleetdm/fleet/v4/cmd/fleetctl/fleetctl/fleetctltest:
1160:  github.com/fleetdm/fleet/v4/cmd/fleetctl/fleetctl/testing_utils:
1161:  github.com/fleetdm/fleet/v4/cmd/fleetctl/integrationtest/preview:
1162:  �[32m✓�[0m Integrations preview (51.50s)
1163:  �[32m✓�[0m Preview fails on invalid license key (0.00s)
1164:  github.com/fleetdm/fleet/v4/cmd/fleetctl/integrationtest/package:
...

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

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

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

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

1372:  �[32m✓�[0m Apply specs windows updates.grace period days not a number (0.45s)
1373:  �[32m✓�[0m Apply specs windows updates.grace period days out of range (0.60s)
1374:  �[32m✓�[0m Apply team specs (0.61s)
1375:  �[32m✓�[0m Apply user roles (0.49s)
1376:  �[32m✓�[0m Apply user roles deprecated (0.54s)
1377:  �[32m✓�[0m Apply windows updates (0.35s)
1378:  �[32m✓�[0m Apply windows updates field omitted (0.00s)
1379:  �[32m✓�[0m Apply windows updates with null values (0.00s)
1380:  �[32m✓�[0m Apply windows updates with values (0.00s)
1381:  �[32m✓�[0m Can apply intervals in nanoseconds (0.40s)
1382:  �[32m✓�[0m Can apply intervals using durations (0.40s)
1383:  �[32m✓�[0m Clean status code err (0.00s)
1384:  �[32m✓�[0m Clean status code err bare wrapped status code err (0.00s)
1385:  �[32m✓�[0m Clean status code err nil (0.00s)
1386:  �[32m✓�[0m Clean status code err outer-wrapped status code err (0.00s)
1387:  �[32m✓�[0m Clean status code err plain error untouched (0.00s)
1388:  �[32m✓�[0m Compute label changes (0.00s)
...

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

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

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

1564:  �[32m✓�[0m Get queries as observer team observer (0.01s)
1565:  �[32m✓�[0m Get query (0.43s)
1566:  �[32m✓�[0m Get query labels include all (0.57s)
1567:  �[32m✓�[0m Get reports labels include all (0.39s)
1568:  �[32m✓�[0m Get software titles (0.41s)
1569:  �[32m✓�[0m Get software versions (0.36s)
1570:  �[32m✓�[0m Get teams (0.98s)
1571:  �[32m✓�[0m Get teams YAML and apply (0.55s)
1572:  �[32m✓�[0m Get teams by name (0.49s)
1573:  �[32m✓�[0m Get teams expired license (0.43s)
1574:  �[32m✓�[0m Get teams not expired license (0.55s)
1575:  �[32m✓�[0m Get teams software from source of truth (0.41s)
1576:  �[32m✓�[0m Get user roles (0.42s)
1577:  �[32m✓�[0m Git ops ABM (5.60s)
1578:  �[32m✓�[0m Git ops ABM backwards compat (0.56s)
1579:  �[32m✓�[0m Git ops ABM both keys errors (0.51s)
1580:  �[32m✓�[0m Git ops ABM deprecated config with two tokens in the db fails (0.55s)
1581:  �[32m✓�[0m Git ops ABM new key all valid (0.69s)
1582:  �[32m✓�[0m Git ops ABM new key multiple elements (0.64s)
1583:  �[32m✓�[0m Git ops ABM no team is supported (0.54s)
1584:  �[32m✓�[0m Git ops ABM non existent org name fails (0.49s)
1585:  �[32m✓�[0m Git ops ABM not provided teams defaults to no team (0.49s)
1586:  �[32m✓�[0m Git ops ABM renamed new key all valid (0.65s)
1587:  �[32m✓�[0m Git ops ABM using an undefined team errors (0.48s)
1588:  �[32m✓�[0m Git ops EULA setting (4.27s)
...

1591:  �[32m✓�[0m Git ops EULA setting not a PDF file (0.48s)
1592:  �[32m✓�[0m Git ops EULA setting relative path to working dir to pdf file (no existing EULA uploaded) (0.51s)
1593:  �[32m✓�[0m Git ops EULA setting relative path to yaml file to pdf file (no existing EULA uploaded) (0.57s)
1594:  �[32m✓�[0m Git ops EULA setting uploading the same EULA again (0.58s)
1595:  �[32m✓�[0m Git ops EULA setting valid new pdf file (different EULA already uploaded) (0.48s)
1596:  �[32m✓�[0m Git ops EULA setting valid pdf file (no existing EULA uploaded) (0.49s)
1597:  �[32m✓�[0m Git ops MDM auth settings (0.52s)
1598:  �[32m✓�[0m Git ops SMTP settings (0.60s)
1599:  �[32m✓�[0m Git ops SSO server URL (0.49s)
1600:  �[32m✓�[0m Git ops SSO settings (0.54s)
1601:  �[32m✓�[0m Git ops android certificates add (0.87s)
1602:  �[32m✓�[0m Git ops android certificates change (0.60s)
1603:  �[32m✓�[0m Git ops android certificates delete all (0.54s)
1604:  �[32m✓�[0m Git ops android certificates delete one (0.49s)
1605:  �[32m✓�[0m Git ops app store app auto update (0.46s)
1606:  �[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)
1607:  �[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)
1608:  �[32m✓�[0m Git ops app store app auto update update software title auto update config is applied for i OS VPP apps (0.02s)
1609:  �[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)
1610:  �[32m✓�[0m Git ops apple OS updates (0.41s)
1611:  �[32m✓�[0m Git ops apple OS updates ios updates (0.01s)
1612:  �[32m✓�[0m Git ops apple OS updates ios updates os updated when existing OS update declaration (0.01s)
1613:  �[32m✓�[0m Git ops apple OS updates ipados updates (0.01s)
1614:  �[32m✓�[0m Git ops apple OS updates ipados updates os updated when existing OS update declaration (0.01s)
1615:  �[32m✓�[0m Git ops apple OS updates macos updates (0.01s)
1616:  �[32m✓�[0m Git ops apple OS updates macos updates os updated when existing OS update declaration (0.01s)
1617:  �[32m✓�[0m Git ops basic global and no team (0.68s)
1618:  �[32m✓�[0m Git ops basic global and no team basic global and no-team.yml (0.05s)
1619:  �[32m✓�[0m Git ops basic global and no team both global and no-team.yml define controls -- should fail (0.01s)
1620:  �[32m✓�[0m Git ops basic global and no team controls only defined in no-team.yml (0.05s)
1621:  �[32m✓�[0m Git ops basic global and no team global DOES NOT define controls -- should fail (0.01s)
1622:  �[32m✓�[0m Git ops basic global and no team global and no-team.yml DO NOT define controls -- should fail (0.01s)
1623:  �[32m✓�[0m Git ops basic global and no team global defines software -- should fail (0.01s)
1624:  �[32m✓�[0m Git ops basic global and no team no-team provided without global -- should fail (0.01s)
1625:  �[32m✓�[0m Git ops basic global and no team no-team.yml defines policy with calendar events enabled -- should fail (0.01s)
1626:  �[32m✓�[0m Git ops basic global and no team unassigned provided without global -- should fail (0.01s)
1627:  �[32m✓�[0m Git ops basic global and team (0.66s)
...

1633:  �[32m✓�[0m Git ops custom settings global macos windows custom settings valid.yml (0.43s)
1634:  �[32m✓�[0m Git ops custom settings global windows custom settings invalid label mix 2 .yml (0.51s)
1635:  �[32m✓�[0m Git ops custom settings global windows custom settings invalid label mix.yml (0.45s)
1636:  �[32m✓�[0m Git ops custom settings global windows custom settings unknown label.yml (0.52s)
1637:  �[32m✓�[0m Git ops custom settings team macos custom settings valid deprecated.yml (0.48s)
1638:  �[32m✓�[0m Git ops custom settings team macos windows custom settings invalid labels mix 2 .yml (0.53s)
1639:  �[32m✓�[0m Git ops custom settings team macos windows custom settings invalid labels mix.yml (0.49s)
1640:  �[32m✓�[0m Git ops custom settings team macos windows custom settings unknown label.yml (0.47s)
1641:  �[32m✓�[0m Git ops custom settings team macos windows custom settings valid.yml (0.46s)
1642:  �[32m✓�[0m Git ops dry run rejects invalid label platform (0.33s)
1643:  �[32m✓�[0m Git ops exception enforcement (0.46s)
1644:  �[32m✓�[0m Git ops exception enforcement free tier (0.44s)
1645:  �[32m✓�[0m Git ops exceptions preserve omitted keys (0.41s)
1646:  �[32m✓�[0m Git ops features (0.68s)
1647:  �[32m✓�[0m Git ops filename validation (0.00s)
1648:  �[32m✓�[0m Git ops fleet failing policies webhook policy IDs (0.67s)
1649:  �[32m✓�[0m Git ops fleet webhooks and tickets enabled (0.63s)
...

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

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

1915:  �[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)
1916:  �[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)
1917:  �[32m✓�[0m Validate git ops group EUA no EUA enabled anywhere is accepted (0.00s)
1918:  �[32m✓�[0m Validate git ops group EUA team enables EU A, global file adds complete id P: accepted (0.00s)
1919:  �[32m✓�[0m Validate git ops group EUA team enables EU A, global file adds id p missing entity id: rejected (0.00s)
1920:  �[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)
1921:  �[32m✓�[0m Validate git ops group EUA team enables EU A, stored has id P, no global file: accepted (0.00s)
1922:  �[32m✓�[0m Validate git ops group EUA team enables EU A, stored has no id P, no global file: rejected (0.00s)
1923:  github.com/fleetdm/fleet/v4/cmd/fleetctl/integrationtest/gitops:
1924:  �[32m✓�[0m Git ops VPP (4.97s)
1925:  �[32m✓�[0m Git ops VPP all fleets is supported (0.56s)
1926:  �[32m✓�[0m Git ops VPP all teams is supported (0.59s)
1927:  �[32m✓�[0m Git ops VPP new key all valid (0.70s)
1928:  �[32m✓�[0m Git ops VPP new key multiple elements (0.72s)
1929:  �[32m✓�[0m Git ops VPP no team is supported (0.60s)
1930:  �[32m✓�[0m Git ops VPP non existent location fails (0.58s)
1931:  �[32m✓�[0m Git ops VPP not provided teams defaults to no team (0.62s)
1932:  �[32m✓�[0m Git ops VPP using an undefined team errors (0.59s)
1933:  �[32m✓�[0m Git ops existing team VPP apps with missing team (0.48s)
...

2026:  �[32m✓�[0m Git ops team software installers team software installer with display name.yml (1.51s)
2027:  �[32m✓�[0m Integrations enterprise gitops (319.52s)
2028:  �[32m✓�[0m Integrations enterprise gitops test CA integrations (4.04s)
2029:  �[32m✓�[0m Integrations enterprise gitops test FMA labels include all (6.11s)
2030:  �[32m✓�[0m Integrations enterprise gitops test IPA software installers (10.56s)
2031:  �[32m✓�[0m Integrations enterprise gitops test JSON configuration profile escaping (1.29s)
2032:  �[32m✓�[0m Integrations enterprise gitops test add manual labels (1.66s)
2033:  �[32m✓�[0m Integrations enterprise gitops test configuration profile escaping (1.37s)
2034:  �[32m✓�[0m Integrations enterprise gitops test delete CA with certificate templates (6.05s)
2035:  �[32m✓�[0m Integrations enterprise gitops test delete mac OS setup (5.09s)
2036:  �[32m✓�[0m Integrations enterprise gitops test deleting no team YAML (2.66s)
2037:  �[32m✓�[0m Integrations enterprise gitops test disallow software setup experience (123.83s)
2038:  �[32m✓�[0m Integrations enterprise gitops test disallow software setup experience all VPP with setup experience (1.25s)
2039:  �[32m✓�[0m Integrations enterprise gitops test disallow software setup experience no team VPP (1.16s)
2040:  �[32m✓�[0m Integrations enterprise gitops test disallow software setup experience no team installers (60.59s)
2041:  �[32m✓�[0m Integrations enterprise gitops test disallow software setup experience packages fail (60.67s)
2042:  �[32m✓�[0m Integrations enterprise gitops test dry run mac OS setup script with manual agent install conflict (0.44s)
...

2072:  �[32m✓�[0m Integrations enterprise gitops test omitted top level keys global (2.46s)
2073:  �[32m✓�[0m Integrations enterprise gitops test remove custom settings from default YAML (2.57s)
2074:  �[32m✓�[0m Integrations enterprise gitops test special case teams VPP apps (3.81s)
2075:  �[32m✓�[0m Integrations enterprise gitops test special case teams VPP apps all teams (2.41s)
2076:  �[32m✓�[0m Integrations enterprise gitops test special case teams VPP apps no team (1.25s)
2077:  �[32m✓�[0m Integrations enterprise gitops test unset configuration profile labels (4.95s)
2078:  �[32m✓�[0m Integrations enterprise gitops test unset software installer labels (12.41s)
2079:  �[32m✓�[0m Integrations enterprise starter library (5.04s)
2080:  �[32m✓�[0m Integrations enterprise starter library test apply starter library premium (3.56s)
2081:  �[32m✓�[0m Integrations gitops (2.24s)
2082:  �[32m✓�[0m Integrations gitops test fleet gitops (0.44s)
2083:  �[32m✓�[0m Integrations gitops test fleet gitops DDM fleet vars requires premium (0.11s)
2084:  �[32m✓�[0m Integrations gitops test fleet gitops with fleet secrets (0.23s)
2085:  �[32m✓�[0m Integrations starter library (1.65s)
2086:  �[32m✓�[0m Integrations starter library test apply starter library free (0.19s)
2087:  === �[31mFailed�[0m
2088:  === �[31mFAIL�[0m: cmd/fleetctl/fleetctl TestGitOpsFullGlobal/useDeprecatedKeys=false (0.04s)
2089:  time=level=INFO msg="request error" path=/api/latest/fleet/setup_experience/eula/metadata took=135.081µs uuid=3619784f-9ec7-43ce-96ab-3838a3b1e3bc err="not found"
2090:  [-] would've deleted report Query to delete
2091:  time=level=INFO msg="request error" path=/api/latest/fleet/setup_experience/eula/metadata took=110.236µs uuid=dd0868f8-68a3-4034-8590-ddb8eb3680fe err="not found"
2092:  testing_utils_test.go:20: 
2093:  Error Trace:	/home/runner/work/fleet/fleet/cmd/fleetctl/fleetctl/testing_utils_test.go:20
2094:  /home/runner/work/fleet/fleet/cmd/fleetctl/fleetctl/gitops_test.go:2244
2095:  Error:      	Received unexpected error:
2096:  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)
2097:  Test:       	TestGitOpsFullGlobal/useDeprecatedKeys=false
2098:  --- FAIL: TestGitOpsFullGlobal/useDeprecatedKeys=false (0.04s)
2099:  === �[31mFAIL�[0m: cmd/fleetctl/fleetctl TestGitOpsFullGlobal/useDeprecatedKeys=true (0.04s)
2100:  time=level=INFO msg="request error" path=/api/latest/fleet/setup_experience/eula/metadata took=281.405µs uuid=6c200297-3b10-4628-8c90-a8be6f6c9815 err="not found"
2101:  [-] would've deleted report Query to delete
2102:  time=level=INFO msg="request error" path=/api/latest/fleet/setup_experience/eula/metadata took=114.673µs uuid=7e84b21e-284c-453e-b04a-1c88259b8b66 err="not found"
2103:  testing_utils_test.go:20: 
2104:  Error Trace:	/home/runner/work/fleet/fleet/cmd/fleetctl/fleetctl/testing_utils_test.go:20
2105:  /home/runner/work/fleet/fleet/cmd/fleetctl/fleetctl/gitops_test.go:2244
2106:  Error:      	Received unexpected error:
2107:  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)
2108:  Test:       	TestGitOpsFullGlobal/useDeprecatedKeys=true
2109:  --- FAIL: TestGitOpsFullGlobal/useDeprecatedKeys=true (0.04s)
2110:  === �[31mFAIL�[0m: cmd/fleetctl/fleetctl TestGitOpsFullGlobal (0.95s)
2111:  DONE 921 tests, 3 failures in 650.159s
2112:  make[1]: *** [Makefile:302: .run-go-tests] Error 1
2113:  make[1]: Leaving directory '/home/runner/work/fleet/fleet'
2114:  make: *** [Makefile:417: test-go] Error 2
2115:  ##[error]Process completed with exit code 2.
2116:  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/
2117:  ##[group]Run actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a
2118:  with:
2119:  name: fleetctl-mysql8.0.44-coverage
2120:  path: ./coverage.txt
2121:  if-no-files-found: error
2122:  compression-level: 6
...

2125:  RACE_ENABLED: false
2126:  GO_TEST_TIMEOUT: 20m
2127:  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
2128:  RUN_TESTS_ARG: 
2129:  CI_TEST_PKG: fleetctl
2130:  NEED_DOCKER: 1
2131:  ARTIFACT_PREFIX: fleetctl-mysql8.0.44
2132:  GOTOOLCHAIN: local
2133:  ##[endgroup]
2134:  (node:49133) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
2135:  (Use `node --trace-deprecation ...` to show where the warning was created)
2136:  With the provided path, there will be 1 file uploaded
2137:  Artifact name is valid!
2138:  Root directory input is valid!
2139:  Beginning upload of artifact content to blob storage
2140:  (node:49133) [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.
2141:  Uploaded bytes 2308630
2142:  Finished uploading artifact content to blob storage!
2143:  SHA256 hash of uploaded artifact zip is 95ab539883208aa90e371a84962a90418c99791cdecc58ab06b8c8302a213a5d
2144:  Finalizing artifact upload
2145:  Artifact fleetctl-mysql8.0.44-coverage.zip successfully finalized. Artifact ID 8040766290
2146:  Artifact fleetctl-mysql8.0.44-coverage has been successfully uploaded! Final size is 2308630 bytes. Artifact ID is 8040766290
2147:  Artifact download URL: https://github.com/fleetdm/fleet/actions/runs/28593925042/artifacts/8040766290
2148:  ##[group]Run c1grep() { grep "$@" || test $? = 1; }
2149:  �[36;1mc1grep() { grep "$@" || test $? = 1; }�[0m
2150:  �[36;1mc1grep -oP 'FAIL: .*$' /tmp/gotest.log > /tmp/summary.txt�[0m
2151:  �[36;1mc1grep 'test timed out after' /tmp/gotest.log >> /tmp/summary.txt�[0m
2152:  �[36;1mc1grep 'fatal error:' /tmp/gotest.log >> /tmp/summary.txt�[0m
2153:  �[36;1mc1grep -A 10 'panic: runtime error: ' /tmp/gotest.log >> /tmp/summary.txt�[0m
2154:  �[36;1mc1grep ' FAIL\t' /tmp/gotest.log >> /tmp/summary.txt�[0m
2155:  �[36;1mGO_FAIL_SUMMARY=$(head -n 5 /tmp/summary.txt | sed ':a;N;$!ba;s/\n/\\n/g')�[0m
2156:  �[36;1mecho "GO_FAIL_SUMMARY=$GO_FAIL_SUMMARY"�[0m
2157:  �[36;1mif [[ -z "$GO_FAIL_SUMMARY" ]]; then�[0m
2158:  �[36;1m  GO_FAIL_SUMMARY="unknown, please check the build URL"�[0m
2159:  �[36;1mfi�[0m
2160:  �[36;1mGO_FAIL_SUMMARY=$GO_FAIL_SUMMARY envsubst < .github/workflows/config/slack_payload_template.json > ./payload.json�[0m
2161:  shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
2162:  env:
2163:  RACE_ENABLED: false
2164:  GO_TEST_TIMEOUT: 20m
2165:  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
2166:  RUN_TESTS_ARG: 
2167:  CI_TEST_PKG: fleetctl
2168:  NEED_DOCKER: 1
2169:  ARTIFACT_PREFIX: fleetctl-mysql8.0.44
2170:  GOTOOLCHAIN: local
2171:  ##[endgroup]
2172:  GO_FAIL_SUMMARY=FAIL: TestGitOpsFullGlobal/useDeprecatedKeys=false (0.04s)\nFAIL: TestGitOpsFullGlobal/useDeprecatedKeys=true (0.04s)
2173:  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/
2174:  ##[group]Run actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a
2175:  with:
2176:  name: fleetctl-mysql8.0.44-test-log
2177:  path: /tmp/gotest.log
2178:  if-no-files-found: error
2179:  compression-level: 6
...

2182:  RACE_ENABLED: false
2183:  GO_TEST_TIMEOUT: 20m
2184:  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
2185:  RUN_TESTS_ARG: 
2186:  CI_TEST_PKG: fleetctl
2187:  NEED_DOCKER: 1
2188:  ARTIFACT_PREFIX: fleetctl-mysql8.0.44
2189:  GOTOOLCHAIN: local
2190:  ##[endgroup]
2191:  (node:49155) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
2192:  (Use `node --trace-deprecation ...` to show where the warning was created)
2193:  With the provided path, there will be 1 file uploaded
2194:  Artifact name is valid!
2195:  Root directory input is valid!
2196:  Beginning upload of artifact content to blob storage
2197:  (node:49155) [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.
2198:  Uploaded bytes 11003
...

2214:  RACE_ENABLED: false
2215:  GO_TEST_TIMEOUT: 20m
2216:  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
2217:  RUN_TESTS_ARG: 
2218:  CI_TEST_PKG: fleetctl
2219:  NEED_DOCKER: 1
2220:  ARTIFACT_PREFIX: fleetctl-mysql8.0.44
2221:  GOTOOLCHAIN: local
2222:  ##[endgroup]
2223:  (node:49167) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
2224:  (Use `node --trace-deprecation ...` to show where the warning was created)
2225:  With the provided path, there will be 1 file uploaded
2226:  Artifact name is valid!
2227:  Root directory input is valid!
2228:  Beginning upload of artifact content to blob storage
2229:  (node:49167) [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.
2230:  Uploaded bytes 205
...

2246:  RACE_ENABLED: false
2247:  GO_TEST_TIMEOUT: 20m
2248:  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
2249:  RUN_TESTS_ARG: 
2250:  CI_TEST_PKG: fleetctl
2251:  NEED_DOCKER: 1
2252:  ARTIFACT_PREFIX: fleetctl-mysql8.0.44
2253:  GOTOOLCHAIN: local
2254:  ##[endgroup]
2255:  (node:49179) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
2256:  (Use `node --trace-deprecation ...` to show where the warning was created)
2257:  With the provided path, there will be 1 file uploaded
2258:  Artifact name is valid!
2259:  Root directory input is valid!
2260:  Beginning upload of artifact content to blob storage
2261:  (node:49179) [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.
2262:  Uploaded bytes 105038
...

2295:  RACE_ENABLED: false
2296:  GO_TEST_TIMEOUT: 20m
2297:  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
2298:  RUN_TESTS_ARG: 
2299:  CI_TEST_PKG: fleetctl
2300:  NEED_DOCKER: 1
2301:  ARTIFACT_PREFIX: fleetctl-mysql8.0.44
2302:  GOTOOLCHAIN: local
2303:  ##[endgroup]
2304:  (node:49192) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
2305:  (Use `node --trace-deprecation ...` to show where the warning was created)
2306:  With the provided path, there will be 1 file uploaded
2307:  Artifact name is valid!
2308:  Root directory input is valid!
2309:  Beginning upload of artifact content to blob storage
2310:  (node:49192) [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.
2311:  Uploaded bytes 133

@codecov

codecov Bot commented Jul 2, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 66.66667% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 68.03%. Comparing base (6223af8) to head (6b1ecff).
⚠️ Report is 21 commits behind head on main.

Files with missing lines Patch % Lines
...013055_AddWindowsMDMConfigProfilesPendingDelete.go 66.66% 1 Missing ⚠️
...0702013056_AddSetupExperienceSoftwareInstallers.go 66.66% 1 Missing ⚠️
...bles/20260702013057_CreateSoftwareTitleTeamPins.go 66.66% 1 Missing ⚠️
...0260702013058_AddAndroidProfileVariableTracking.go 66.66% 1 Missing ⚠️
...702013059_AddPolicyGateToSetupExperienceResults.go 66.66% 1 Missing ⚠️
...es/20260702013100_AddBYODFleetAndADUEEnrollment.go 66.66% 1 Missing ⚠️
...ables/20260702013101_AddSupportSoftwareCategory.go 66.66% 1 Missing ⚠️
...0702013102_AddCertAndAndroidAppVariableTracking.go 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #48617      +/-   ##
==========================================
+ Coverage   67.99%   68.03%   +0.03%     
==========================================
  Files        3678     3678              
  Lines      233668   233785     +117     
  Branches    12413    12413              
==========================================
+ Hits       158894   159048     +154     
+ Misses      60471    60433      -38     
- Partials    14303    14304       +1     
Flag Coverage Δ
backend 69.68% <66.66%> (+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.

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.

2 participants