Skip to content

Fix LAL rule missing layer property in oapserverconfig e2e test#177

Merged
wu-sheng merged 1 commit intoapache:masterfrom
wu-sheng:fix-oapserverconfig-lal-layer
Feb 27, 2026
Merged

Fix LAL rule missing layer property in oapserverconfig e2e test#177
wu-sheng merged 1 commit intoapache:masterfrom
wu-sheng:fix-oapserverconfig-lal-layer

Conversation

@wu-sheng
Copy link
Copy Markdown
Member

Summary

  • The latest OAP requires a top-level layer: GENERAL property in LAL rules. The oapserverconfig-demo.yaml e2e test file is missing this property, causing the LAL rule to be silently ignored by the latest OAP server.
  • Without it, log_count metrics are never produced and the log_count_info verification fails with all-zero values.

Changes

  • Add layer: GENERAL to the LAL rule in test/e2e/oapserverconfig-demo.yaml

How this was found

The skywalking-helm e2e tests were updated to use the latest OAP images instead of 9.5.0. The oapserverconfig test began failing because the custom LAL rule from this file lacked the layer property required by the latest OAP.

The latest OAP requires a top-level 'layer' property in LAL rules.
Without it, the rule is ignored and log_count metrics are never
produced, causing log_count_info verification to fail.
@wu-sheng wu-sheng merged commit e98e180 into apache:master Feb 27, 2026
15 checks passed
@wu-sheng wu-sheng deleted the fix-oapserverconfig-lal-layer branch February 27, 2026 02:28
wu-sheng added a commit to apache/skywalking-helm that referenced this pull request Feb 27, 2026
Fix SWCK oapserverconfig e2e test for latest OAP compatibility

Two issues prevented the oapserverconfig test from passing with the
latest OAP images:

1. OAPServerConfig spec.version (9.5.0) didn't match OAPServer (latest),
   so the SWCK operator never applied the config and the pod was never
   restarted, causing a timeout.

2. The LAL rule from SWCK v0.9.0 was missing the layer property required
   by the latest OAP, so log_count metrics were never produced and
   log_count_info verification failed with all-zero values. This was
   fixed upstream in apache/skywalking-swck#177.

Switch from SWCK v0.9.0 to the latest commit (e98e180) which includes
the LAL layer fix, and add sed to align the version field.
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