Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert to the gradle-check alias logic rather than querying -* gradle check indices #510

Merged
merged 1 commit into from
Oct 1, 2024

Conversation

prudhvigodithi
Copy link
Collaborator

Description

The curl with -* is converted to %2A. Hence updated the logic to look for the gradle-check alias and the new index are created with gradle-check alias.

Issues Resolved

#493

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Prudhvi Godithi <pgodithi@amazon.com>
@prudhvigodithi
Copy link
Collaborator Author

prudhvigodithi commented Oct 1, 2024

PUT /abctest/_alias
{
  "mappings": {
    "properties": {
      "build_duration": {
        "type": "float"
      },
      "build_number": {
        "type": "integer"
      },
      "build_result": {
        "type": "keyword"
      },
      "build_start_time": {
        "type": "date"
      },
      "git_reference": {
        "type": "text",
        "fields": {
          "keyword": {
            "type": "keyword",
            "ignore_above": 256
          }
        }
      },
      "invoke_type": {
        "type": "text",
        "fields": {
          "keyword": {
            "type": "keyword",
            "ignore_above": 256
          }
        }
      },
      "pull_request": {
        "type": "keyword"
      },
      "pull_request_owner": {
        "type": "text",
        "fields": {
          "keyword": {
            "type": "keyword",
            "ignore_above": 256
          }
        }
      },
      "pull_request_title": {
        "type": "text",
        "fields": {
          "keyword": {
            "type": "keyword",
            "ignore_above": 256
          }
        }
      },
      "test_class": {
        "type": "keyword"
      },
      "test_fail_count": {
        "type": "integer"
      },
      "test_name": {
        "type": "keyword"
      },
      "test_passed_count": {
        "type": "integer"
      },
      "test_skipped_count": {
        "type": "integer"
      },
      "test_status": {
        "type": "keyword"
      }
    }
  },
  "aliases": {
    "gradle-check": {}
  }
}

GET /abctest/_alias

Output is

{
  "abctest": {
    "aliases": {
      "gradle-check": {}
    }
  }
}

@prudhvigodithi prudhvigodithi changed the title Debug Revert to the gradle-check alias logic rather than querying -* gradle check indices Oct 1, 2024
Copy link

codecov bot commented Oct 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.32%. Comparing base (2f05fd8) to head (d6cb865).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main     #510   +/-   ##
=========================================
  Coverage     84.32%   84.32%           
  Complexity       80       80           
=========================================
  Files           108      108           
  Lines           523      523           
  Branches         61       61           
=========================================
  Hits            441      441           
  Misses           26       26           
  Partials         56       56           

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

@prudhvigodithi prudhvigodithi merged commit 5e17480 into opensearch-project:main Oct 1, 2024
10 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Oct 1, 2024
…adle check indices (#510)

Signed-off-by: Prudhvi Godithi <pgodithi@amazon.com>
(cherry picked from commit 5e17480)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

2 participants