Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .circleci/config.continue.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,7 @@ commands:
if [[ "$BRANCH" != "master" ]] && [[ "$BRANCH" != "release/*" ]]; then
# We know that we have checked out the PR merge branch, so the HEAD commit is a merge
# As a backup, if anything goes wrong with the diff, the build will fail
# Get list of changed files directly using git diff-tree to avoid issues with large binary files
CHANGED_FILES=$(git diff-tree --no-commit-id --name-only -r HEAD)
CHANGED_FILES=$(git show HEAD | grep -e "^Merge:" | cut -d ' ' -f 2- | sed 's/ /.../' | xargs git diff --name-only)
# Count the number of matches, and ignore if the grep doesn't match anything
MATCH_COUNT=$(echo "$CHANGED_FILES" | grep -c -E "<< pipeline.parameters.global_pattern >>|<< parameters.pattern >>") || true
if [[ "$MATCH_COUNT" -eq "0" ]]; then
Expand Down
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This test was missed in CI due to the change that this PR is trying to revert. See here for its failures on master.

Original file line number Diff line number Diff line change
Expand Up @@ -475,9 +475,20 @@ abstract class AbstractSparkListenerTest extends AgentTestRunner {
conf.set("spark.openlineage.rootParentJobName", "dag-push-to-s3-spark")
def listener = getTestDatadogSparkListener(conf)

expect:
when:
listener.onApplicationStart(applicationStartEvent(1000L))
assert listener.openLineageSparkConf.get("spark.openlineage.run.tags").contains("13959090542865903119")
listener.onApplicationEnd(new SparkListenerApplicationEnd(2000L))

then:
assertTraces(1) {
trace(1) {
span {
operationName "spark.application"
spanType "spark"
assert span.context.traceId.toString() == "13959090542865903119"
}
}
}
}

def "test lastJobFailed is not set when job is cancelled"() {
Expand Down