Skip to content

Various CI adjustments #9

Description

@sgarg00
  • Address warnings related to the use of the def keyword: Example- Did you forget the def keyword? WorkflowScript seems to be setting a field named AMF (to a value of type Integer) which could lead to memory leaks or other issues.

  • Replace pullFromSelfix and other variables/functions containing Selfix with more generic names.

  • Update the common-ci submodule to include Various CI adjustments oai-cn5g-common-ci#3, including the CLA checks.

  • Fix existing bugs and improve logging and undeployment handling.

  • Reduce repetitive commands by reusing existing helper functions wherever possible.

  • Check filters for Ethernet PDU session; Logs are too big: example

  • If possible, split Robot tests into separate Jenkins stages. For example, instead of running all tests in a single stage as shown here, use separate stages such as:

    • Stage 1: Test.All NFs
    • Stage 2: Test.eBPF Tests
    • Stage 3: Test.QoS Tests
    • ...
  • Fix the PR comment error when replaying a pipeline:

Below error happened when replaying a PR pipeline:

Error when executing success post condition:
Also:   org.jenkinsci.plugins.workflow.actions.ErrorAction$ErrorId: fafbd746-b68a-4ada-a292-e413816f9eea
hudson.AbortException: Can't get cause from run/build

On script console:

OAI-CN5G-FED #169
   org.jenkinsci.plugins.github.pullrequest.GitHubPRCause
      GitHub PR #10: Commit changed
   GitHubPRCause present : true

OAI-CN5G-FED #170
   hudson.model.Cause$UserIdCause
      Started by user Sagar Arora
   org.jenkinsci.plugins.workflow.cps.replay.ReplayCause
      Replayed #169
   GitHubPRCause present : false

Result: [OAI-CN5G-FED #169, OAI-CN5G-FED #170]

githubPRComment → GitHubPRCause is for identifying a PR-triggered build. The thing to watch is that a Replay/manual build may not retain that cause, even though the build is still logically associated with a PR.
Maybe add it in try-catch block or check other workarounds.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions