Skip to content

Commit

Permalink
Merge branch 'master' into refactor.scheduler-cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
achettyiitr committed Oct 30, 2023
2 parents c0d3ef2 + f014c01 commit 75cc9f2
Show file tree
Hide file tree
Showing 44 changed files with 82 additions and 64 deletions.
2 changes: 1 addition & 1 deletion .github/tools/matrixchecker/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"log"
"os"
"path/filepath"
"slices"

"golang.org/x/exp/slices"
"gopkg.in/yaml.v2"
)

Expand Down
7 changes: 4 additions & 3 deletions enterprise/reporting/reporting.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,18 @@ import (
"fmt"
"io"
"net/http"
"slices"
"strconv"
"strings"
"sync"
"time"

"go.uber.org/atomic"
"golang.org/x/sync/errgroup"

"github.com/cenkalti/backoff/v4"
"github.com/lib/pq"
"github.com/samber/lo"
"go.uber.org/atomic"
"golang.org/x/exp/slices"
"golang.org/x/sync/errgroup"

"github.com/rudderlabs/rudder-go-kit/config"
"github.com/rudderlabs/rudder-go-kit/logger"
Expand Down
2 changes: 1 addition & 1 deletion gateway/webhook/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"mime/multipart"
"net/http"
"net/url"
"slices"
"strconv"
"strings"
"sync"
Expand All @@ -17,7 +18,6 @@ import (

"github.com/hashicorp/go-retryablehttp"
"github.com/samber/lo"
"golang.org/x/exp/slices"

"github.com/rudderlabs/rudder-go-kit/logger"
"github.com/rudderlabs/rudder-go-kit/stats"
Expand Down
2 changes: 1 addition & 1 deletion jobsdb/internal/cache/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ package cache

import (
"fmt"
"slices"
"sync"
"time"

"github.com/google/uuid"
"github.com/samber/lo"
"golang.org/x/exp/slices"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion jobsdb/jobsdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ import (
"encoding/json"
"errors"
"fmt"
"slices"
"sort"
"strconv"
"strings"
"sync"
"time"
"unicode/utf8"

"golang.org/x/exp/slices"
"golang.org/x/sync/errgroup"

"github.com/samber/lo"
Expand Down
3 changes: 1 addition & 2 deletions processor/eventfilter/eventfilter.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
package eventfilter

import (
"slices"
"strings"

"golang.org/x/exp/slices"

"github.com/rudderlabs/rudder-go-kit/logger"
backendconfig "github.com/rudderlabs/rudder-server/backend-config"
"github.com/rudderlabs/rudder-server/processor/transformer"
Expand Down
2 changes: 1 addition & 1 deletion processor/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ import (
"io"
"net/http"
"runtime/trace"
"slices"
"strconv"
"strings"
"sync"
"time"

"golang.org/x/exp/slices"
"golang.org/x/sync/errgroup"

jsoniter "github.com/json-iterator/go"
Expand Down
3 changes: 1 addition & 2 deletions processor/transformer/transformer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"net/http/httptest"
"net/url"
"os"
"slices"
"strconv"
"sync/atomic"
"testing"
Expand All @@ -17,8 +18,6 @@ import (

warehouseutils "github.com/rudderlabs/rudder-server/warehouse/utils"

"golang.org/x/exp/slices"

"github.com/rudderlabs/rudder-server/utils/misc"
"github.com/rudderlabs/rudder-server/utils/types"

Expand Down
2 changes: 1 addition & 1 deletion router/batchrouter/handle.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"net/http"
"os"
"path/filepath"
"slices"
"sort"
"strconv"
"strings"
Expand All @@ -20,7 +21,6 @@ import (
"github.com/samber/lo"
"github.com/tidwall/gjson"
"github.com/tidwall/sjson"
"golang.org/x/exp/slices"

"github.com/rudderlabs/rudder-go-kit/config"
"github.com/rudderlabs/rudder-go-kit/filemanager"
Expand Down
2 changes: 1 addition & 1 deletion router/batchrouter/handle_async.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ import (
"net/http"
"os"
"path/filepath"
"slices"
"strconv"
"time"

"github.com/google/uuid"
"github.com/tidwall/gjson"
"golang.org/x/exp/slices"

"github.com/rudderlabs/rudder-server/jobsdb"
"github.com/rudderlabs/rudder-server/router/batchrouter/asyncdestinationmanager"
Expand Down
5 changes: 3 additions & 2 deletions router/batchrouter/handle_lifecycle.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@ import (
"net/http"
"os"
"path/filepath"
"slices"
"strings"
"sync"
"time"

"golang.org/x/sync/errgroup"

"github.com/google/uuid"
"github.com/tidwall/gjson"
"golang.org/x/exp/slices"
"golang.org/x/sync/errgroup"

"github.com/rudderlabs/rudder-go-kit/bytesize"
"github.com/rudderlabs/rudder-go-kit/config"
Expand Down
3 changes: 1 addition & 2 deletions router/batchrouter/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@ package batchrouter
import (
"context"
"fmt"
"slices"
"strings"
"sync"
"time"

"golang.org/x/exp/slices"

"github.com/rudderlabs/rudder-go-kit/config"
"github.com/rudderlabs/rudder-go-kit/filemanager"
"github.com/rudderlabs/rudder-go-kit/logger"
Expand Down
2 changes: 1 addition & 1 deletion router/batchrouter/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ package batchrouter
import (
"context"
"fmt"
"slices"
"strings"
"sync"
"time"

"github.com/samber/lo"
"github.com/tidwall/gjson"
"golang.org/x/exp/slices"

"github.com/rudderlabs/rudder-go-kit/logger"
"github.com/rudderlabs/rudder-go-kit/stats"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import (
"errors"
"fmt"
"reflect"
"slices"
"sync"
"time"

"github.com/sony/gobreaker"
"golang.org/x/exp/slices"

"github.com/rudderlabs/rudder-go-kit/config"
"github.com/rudderlabs/rudder-go-kit/logger"
Expand Down
2 changes: 1 addition & 1 deletion router/internal/partition/stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ package partition

import (
"math"
"slices"
"sync"
"time"

"github.com/samber/lo"
"golang.org/x/exp/slices"

"github.com/rudderlabs/rudder-go-kit/stats/metric"
)
Expand Down
2 changes: 1 addition & 1 deletion router/manager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package manager
import (
"context"
"fmt"
"slices"

"golang.org/x/exp/slices"
"golang.org/x/sync/errgroup"

"github.com/rudderlabs/rudder-go-kit/logger"
Expand Down
3 changes: 1 addition & 2 deletions router/utils/utils.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
package utils

import (
"slices"
"strings"
"time"

"golang.org/x/exp/slices"

"github.com/tidwall/sjson"

"github.com/rudderlabs/rudder-go-kit/config"
Expand Down
3 changes: 1 addition & 2 deletions router/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@ import (
"encoding/json"
"fmt"
"net/http"
"slices"
"sort"
"strconv"
"strings"
"time"

"golang.org/x/exp/slices"

"github.com/samber/lo"
"github.com/tidwall/gjson"

Expand Down
2 changes: 1 addition & 1 deletion schema-forwarder/internal/forwarder/jobsforwarder.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"context"
"encoding/json"
"fmt"
"slices"
"sync"
"time"

"golang.org/x/exp/slices"
"golang.org/x/sync/errgroup"

pulsarType "github.com/apache/pulsar-client-go/pulsar"
Expand Down
3 changes: 1 addition & 2 deletions services/debugger/source/eventUploader.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ import (
"context"
"encoding/json"
"fmt"
"slices"
"sync"
"time"

"golang.org/x/exp/slices"

"github.com/rudderlabs/rudder-go-kit/config"
"github.com/rudderlabs/rudder-go-kit/logger"
backendconfig "github.com/rudderlabs/rudder-server/backend-config"
Expand Down
2 changes: 1 addition & 1 deletion warehouse/api/grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"fmt"
"net/http"
"os"
"slices"
"strconv"
"sync"
"time"
Expand All @@ -19,7 +20,6 @@ import (

"github.com/samber/lo"

"golang.org/x/exp/slices"
"google.golang.org/genproto/googleapis/rpc/code"
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
Expand Down
2 changes: 1 addition & 1 deletion warehouse/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"errors"
"fmt"
"os"
"slices"
"sync"
"sync/atomic"
"time"
Expand All @@ -26,7 +27,6 @@ import (
"github.com/rudderlabs/rudder-server/warehouse/integrations/middleware/sqlquerywrapper"

"github.com/samber/lo"
"golang.org/x/exp/slices"
"golang.org/x/sync/errgroup"

"github.com/rudderlabs/rudder-go-kit/config"
Expand Down
3 changes: 1 addition & 2 deletions warehouse/integrations/azure-synapse/azure-synapse.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"net"
"net/url"
"os"
"slices"
"strconv"
"strings"
"time"
Expand All @@ -25,8 +26,6 @@ import (
sqlmw "github.com/rudderlabs/rudder-server/warehouse/integrations/middleware/sqlquerywrapper"
"github.com/rudderlabs/rudder-server/warehouse/logfield"

"golang.org/x/exp/slices"

"github.com/rudderlabs/rudder-server/warehouse/internal/service/loadfiles/downloader"

"github.com/rudderlabs/rudder-go-kit/config"
Expand Down
2 changes: 1 addition & 1 deletion warehouse/integrations/bigquery/bigquery.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"errors"
"fmt"
"regexp"
"slices"
"strings"
"time"

Expand All @@ -14,7 +15,6 @@ import (
"github.com/samber/lo"

"cloud.google.com/go/bigquery"
"golang.org/x/exp/slices"
bqService "google.golang.org/api/bigquery/v2"
"google.golang.org/api/googleapi"
"google.golang.org/api/iterator"
Expand Down
3 changes: 1 addition & 2 deletions warehouse/integrations/bigquery/bigquery_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@ import (
"encoding/json"
"fmt"
"os"
"slices"
"strconv"
"strings"
"testing"
"time"

"golang.org/x/exp/slices"

"github.com/golang/mock/gomock"

"github.com/rudderlabs/rudder-go-kit/config"
Expand Down
3 changes: 1 addition & 2 deletions warehouse/integrations/clickhouse/clickhouse.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import (
"os"
"path"
"regexp"
"slices"
"sort"
"strconv"
"strings"
Expand All @@ -29,8 +30,6 @@ import (

"github.com/rudderlabs/rudder-server/warehouse/internal/model"

"golang.org/x/exp/slices"

"github.com/cenkalti/backoff/v4"

"github.com/rudderlabs/rudder-go-kit/stats"
Expand Down
2 changes: 1 addition & 1 deletion warehouse/integrations/deltalake/deltalake.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"errors"
"fmt"
"regexp"
"slices"
"strconv"
"strings"
"time"
Expand All @@ -14,7 +15,6 @@ import (

dbsql "github.com/databricks/databricks-sql-go"
dbsqllog "github.com/databricks/databricks-sql-go/logger"
"golang.org/x/exp/slices"

"github.com/rudderlabs/rudder-go-kit/config"
"github.com/rudderlabs/rudder-go-kit/logger"
Expand Down
Loading

0 comments on commit 75cc9f2

Please sign in to comment.