Skip to content

Add result tag to stage metrics#92

Merged
sarah-witt merged 18 commits into
masterfrom
sarah/result-stage-tag
Jul 29, 2020
Merged

Add result tag to stage metrics#92
sarah-witt merged 18 commits into
masterfrom
sarah/result-stage-tag

Conversation

@sarah-witt

Copy link
Copy Markdown
Collaborator

Requirements for Contributing to this repository

  • Fill out the template below. Any pull request that does not include enough information to be reviewed in a timely manner may be closed at the maintainers' discretion.
  • The pull request must only fix one issue at the time.
  • The pull request must update the test suite to demonstrate the changed functionality.
  • After you create the pull request, all status checks must be pass before a maintainer reviews your contribution. For more details, please see CONTRIBUTING.

What does this PR do?

Add result tag to stage metrics

Description of the Change

Alternate Designs

Possible Drawbacks

Verification Process

Additional Notes

Release Notes

Review checklist (to be filled by reviewers)

  • Feature or bug fix MUST have appropriate tests (unit, integration, etc...)
  • PR title must be written as a CHANGELOG entry (see why)
  • Files changes must correspond to the primary purpose of the PR as described in the title (small unrelated changes should have their own PR)
  • PR must have one changelog/ label attached. If applicable it should have the backward-incompatible label attached.
  • PR should not have do-not-merge/ label attached.
  • If Applicable, issue must have kind/ and severity/ labels attached at least.

@github-actions github-actions Bot added the documentation Documentation related changes label Jul 6, 2020
return 0;
}

String getResultTag(@Nonnull FlowNode endNode) {

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This could potentially live in BuildData and we could check for instance of FlowNode in getResult()

@sarah-witt sarah-witt added the changelog/Fixed Fixed features results into a bug fix version bump label Jul 7, 2020
@sarah-witt
sarah-witt marked this pull request as ready for review July 7, 2020 20:11
stage('Windows-1'){
steps{
sh "echo 'Windows 1'"
exit 1

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.

Why are these steps needed?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

These are needed because the result of this pipeline's stages are inconsistent locally and on the CI. A lot of the stages would fail on the windows images but not the linux images. this makes them fail all the time. There's probably a better way to make the result consistent such as spying that I could look into.

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.

Oh the "sh" step does not exist on windows right?
I think we should be able to replace all sh "echo XX" by simply echo XX which should be cross platform

mgarabed
mgarabed previously approved these changes Jul 9, 2020
BufferedReader br = new BufferedReader(run.getLogReader());
String s;
while ((s = br.readLine()) != null) {
System.out.println(s);

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.

?

"jenkins_url:" + DatadogUtilities.getJenkinsUrl(),
"user_id:anonymous",
"job:pipelineIntegrationSuccess",
"result:UNKNOWN",

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.

This should be SUCCESS right?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yes!

stage('Windows-1'){
steps{
sh "echo 'Windows 1'"
exit 1

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.

Oh the "sh" step does not exist on windows right?
I think we should be able to replace all sh "echo XX" by simply echo XX which should be cross platform

@sarah-witt
sarah-witt requested a review from FlorianVeaux July 20, 2020 20:11
@sarah-witt
sarah-witt merged commit a4a3eb6 into master Jul 29, 2020
@sarah-witt
sarah-witt deleted the sarah/result-stage-tag branch July 29, 2020 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/Fixed Fixed features results into a bug fix version bump documentation Documentation related changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants