Skip to content

Commit

Permalink
Disable native code generation until compiler interface is fixed (#145)
Browse files Browse the repository at this point in the history
this change disables the tests for codegen as well as the config option to be a no-op
  • Loading branch information
kroepke authored and joschi committed Dec 9, 2016
1 parent 3ec6c6f commit de4d062
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ public class PipelineConfig implements PluginConfigBean {
private boolean cachedStageIterators = true;

@Parameter("generate_native_code")
private boolean generateNativeCode = true;
private boolean generateNativeCode = false;
}
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ public ConfigurationStateUpdater(RuleService ruleService,
this.scheduler = scheduler;
this.serverEventBus = serverEventBus;
this.stateFactory = stateFactory;
// from global config
setAllowCodeGeneration(allowCodeGeneration);
// ignore global config, never allow generating code
setAllowCodeGeneration(false);

// listens to cluster wide Rule, Pipeline and pipeline stream connection changes
serverEventBus.register(this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
package org.graylog.plugins.pipelineprocessor.parser;

import org.graylog.plugins.pipelineprocessor.codegen.PipelineClassloader;
import org.junit.Ignore;

@Ignore("code generation disabled")
public class CodegenPipelineRuleParserTest extends PipelineRuleParserTest {

// runs the same tests as in PipelineRuleParserTest but with dynamic code generation turned on.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
import org.graylog2.shared.bindings.providers.MetricRegistryProvider;
import org.graylog2.streams.StreamImpl;
import org.graylog2.streams.StreamService;
import org.junit.Ignore;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand All @@ -59,6 +60,7 @@
import java.util.Map;
import java.util.stream.Collectors;

@Ignore("code generation disabled")
public class ConfigurationStateUpdaterTest {
private static final Logger log = LoggerFactory.getLogger(ConfigurationStateUpdaterTest.class);
private PipelineInterpreter.State reload;
Expand Down

0 comments on commit de4d062

Please sign in to comment.